15 okexit create addfile test db
17 hash=$(zpm addfile $PF test.empty 2>> test.out)
18 okexit add empty file content
19 okstreq "$hash" e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents
21 appid=$(sqlite3 test.db 'pragma application_id')
22 okstreq $appid 1515209794 application id set
24 userv=$(sqlite3 test.db 'pragma user_version')
25 okstreq $userv 1 db version set
28 zpm-addfile $PF test.dir 2>>test.out
29 failsok fail to add directory
32 zpm-addfile $PF /dev/null 2>>test.out
33 failsok fail to device file