summaryrefslogtreecommitdiff
path: root/tests/test-string-desc.sh
blob: a4d92792eb4d56fdee6604400db5ddf55d538fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
. "${srcdir=.}/init.sh"; path_prepend_ .

${CHECKER} test-string-desc${EXEEXT} test-string-desc-3.tmp > test-string-desc-1.tmp || Exit 1

printf 'Hello world!The\0quick\0brown\0\0fox\0' > test-string-desc.ok

: "${DIFF=diff}"
${DIFF} test-string-desc.ok test-string-desc-1.tmp || { echo "string_desc_fwrite KO" 1>&2; Exit 1; }
${DIFF} test-string-desc.ok test-string-desc-3.tmp || { echo "string_desc_write KO" 1>&2; Exit 1; }

Exit 0