3 $ [ -n "$TEST_BIN_DIR" ] && export PATH="$TEST_BIN_DIR:$PATH"
5 check that base64 is producing expected results:
7 $ valgrind --quiet --leak-check=full test-b64
39 check that b64_encode and b64_decode assert invalid input
41 $ alias check="egrep '(dumped|Assertion)' output.log | sed 's;.*\(b64_.*code\).*\(Assertion.*$\);\1: \2;' | LC_ALL=C sort"
43 $ test-b64_decode 2> output.log; check
45 b64_decode: Assertion `dest && targsize > 0' failed.
47 $ test-b64_encode 2> output.log; check
49 b64_encode: Assertion `dest && targsize > 0' failed.
51 $ test-b64_decode-san 2> output.log; check
53 b64_decode: Assertion `dest && targsize > 0' failed.
55 $ test-b64_encode-san 2> output.log; check
57 b64_encode: Assertion `dest && targsize > 0' failed.