Hello list,
Gaetan has reported that "make test" will fail when used after
a compilation that doesn't produce a "s-nail" (as in "SID=
NAIL=mail"):
|behave:s/mime: .. generating test key and certificate ..
|behave:s/mime:sign/verify: ./cc-test.sh: line 315: ./s-nail: \
|No such file or directory
|error: verification failed
The reason is that i'm stupid and simply removed a "have_feat
DEBUG" test to enable S/MIME testing regulary, having long
forgotten that the __behave_smime() function is fixated to
a ./s-nail binary. The fix is attached and on [master].
Sorry!
P.S.: Gaetan has found a creative and neat solution by simply
doing "$ ln -s mail s-nail" before running "make test".
P.P.S.: Packager heroes! Packager heroes!!
Ciao,
--steffen
commit d704599 (refs/heads/master)
Author: Steffen (Daode) Nurpmeso <[email protected]>
Date: 2014-09-29 11:28:24 +0200
cc-test.sh: make "SID= NAIL=mail" work for S/MIME test (Gaetan Bisson)
---
cc-test.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cc-test.sh b/cc-test.sh
index 8181fc6..ee54dd1 100755
--- a/cc-test.sh
+++ b/cc-test.sh
@@ -312,13 +312,13 @@ __behave_smime() { # FIXME add test/ dir, unroll tests therein, regular enable!
printf "behave:s/mime:sign/verify: "
echo bla |
- MAILRC=/dev/null ./s-nail -n# \
+ MAILRC=/dev/null "${SNAIL}" -n# \
-Ssmime-ca-file=./tcert.pem -Ssmime-sign-cert=./tpair.pem \
-Ssmime-sign -Sfrom=test@localhost \
-s 'S/MIME test' ./VERIFY
# TODO CHECK
printf 'verify\nx\n' |
- MAILRC=/dev/null ./s-nail -n# \
+ MAILRC=/dev/null "${SNAIL}" -n# \
-Ssmime-ca-file=./tcert.pem -Ssmime-sign-cert=./tpair.pem \
-Ssmime-sign -Sfrom=test@localhost \
-Sbatch-exit-on-error -R \
@@ -341,7 +341,7 @@ __behave_smime() { # FIXME add test/ dir, unroll tests therein, regular enable!
chmod 0755 ./tsendmail.sh
echo bla |
- MAILRC=/dev/null ./s-nail -n# \
+ MAILRC=/dev/null "${SNAIL}" -n# \
-Ssmime-force-encryption \
[email protected]=./tpair.pem \
-Ssendmail=./tsendmail.sh \
@@ -350,7 +350,7 @@ __behave_smime() { # FIXME add test/ dir, unroll tests therein, regular enable!
-s 'S/MIME test' [email protected]
# TODO CHECK
printf 'decrypt ./DECRYPT\nfi ./DECRYPT\nverify\nx\n' |
- MAILRC=/dev/null ./s-nail -n# \
+ MAILRC=/dev/null "${SNAIL}" -n# \
-Ssmime-force-encryption \
[email protected]=./tpair.pem \
-Ssendmail=./tsendmail.sh \
------------------------------------------------------------------------------
Slashdot TV. Videos for Nerds. Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users