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.empty 2>> test.out)
73 okexit add empty file content
74 okstreq $hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents
76 appid=$(sqlite3 test.db 'pragma application_id')
77 okstreq $appid 1515209794 application id set
79 userv=$(sqlite3 test.db 'pragma user_version')
80 okstreq $userv 1 db version set