..oh man...

 |>|Side issue: "make test" doesn't pass. Something related was \
 |>|said in a previous
 |>|list message, so maybe it's expected for now.

 |I just push the button... :-D

[master]
Author: Steffen (Daode) Nurpmeso <[email protected]>
Date:   2014-03-13 14:27:02 +0100

    YEAH!  Understood Gaetan and Gavin!  Fix cc-test.sh..
    
    Gaetan tried in vain to make me understand that the test is not
    working.  Having spend almost two days, including installation of
    a Debian VM and other (not such) silly things, i gave up.
    Now Gavin reported it too, and send me back the output of its test
    run.
    
    And now: the sensation.
    
    I've got it!
    
    Haha!
    
    So let's strip the introductional '[-- Message' line and don't
    include it in the checksum generation.
    
    (I am so god damned stupid.)
---
 cc-test.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cc-test.sh b/cc-test.sh
index 68924c4..2565667 100755
--- a/cc-test.sh
+++ b/cc-test.sh
@@ -92,7 +92,8 @@ cksum_test() {
    tid=$1 f=$2 s=$3
    printf "${tid}: "
    csum="`${sed} -e '/^From /d' -e '/^Date: /d' \
-         -e '/^ boundary=/d' -e '/^--=_/d' < \"${f}\" | ${cksum}`";
+         -e '/^ boundary=/d' -e '/^--=_/d' < \"${f}\" \
+         -e '/^\[-- Message/d' | ${cksum}`";
    if [ "${csum}" = "${s}" ]; then
       printf 'ok\n'
    else
@@ -423,7 +424,7 @@ SUB='Äbrä  Kä?dä=brö         Fü?di=bus? '\
    MAILRC=/dev/null "${SNAIL}" -n#Sstealthmua \
       -SPAGER="${cat}" -Spipe-text/plain="${cat}" > "${BODY}"
    ${sed} -e 1d < "${BODY}" > "${MBOX}"
-   cksum_test content:6 "${MBOX}" '3062395510 181'
+   cksum_test content:6 "${MBOX}" '1520300594 138'
 
    ${rm} -f "${BODY}" "${MBOX}"
 }

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
S-nail-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/s-nail-users

Reply via email to