9 if [ "$note" != "" ]; then
10 printf '# %s\n' "$note"
22 note=$(printf '# got "%d" expected "%d"' "$1" "0")
25 printf 'ok %d - %s\n' $tn "$*"
31 if [ $? -ne $1 ]; then
33 note=$(printf '# got "%d" expected "%d"' "$1" "$2")
37 printf 'ok %d - %s\n' $tn "$*"
43 if [ "$1" != "$2" ]; then
45 note=$(printf 'got "%s" expected "%s"' "$1" "$2")
50 printf 'ok %d - %s\n' $tn "$*"
56 printf '1..%d\n' $planned
60 if [ $planned -eq 0 ]; then
72 hash=$(./zpm-addfile $PF test.foo 2>> test.out)
75 okexit add foo file content
76 okstreq $hash b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c foo hash contents
80 ./zpm-extract $PF $hash foo
81 okexit extract foo file content
84 okstreq $hash $sha extracted hash matches