13 printf 'ok %d - %s\n' $tn "$*"
21 printf 'ok %d - %s\n' $tn "$*"
25 if [ $? -ne $1 ]; then
30 printf 'ok %d - %s\n' $tn "$*"
35 if [ "$1" != "$2" ]; then
37 note=$(printf '# got "%s" expected "%s"' "$1" "$2")
42 printf 'ok %d - %s\n' $tn "$*"
43 if [ "$note" != "" ]; then
50 printf '1..%d\n' $planned
54 if [ $planned -eq 0 ]; then
66 hash=$(../zpm-addfile $PF test.empty) >> test.out 2>&1
67 okexit add empty file content
68 okstreq $hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents
70 appid=$(sqlite3 test.db 'pragma application_id')
71 okstreq $appid 1515209794 application id set
73 userv=$(sqlite3 test.db 'pragma user_version')
74 okstreq $userv 1 db version set