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" 0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8 hash contents
20 appid=$(sqlite3 test.db 'pragma application_id')
21 okstreq $appid 1515209794 application id set
23 userv=$(sqlite3 test.db 'pragma user_version')
24 okstreq $userv 1 db version set
27 zpm-addfile $PF test.dir 2>>test.out
28 failsok fail to add directory
31 zpm-addfile $PF /dev/null 2>>test.out
32 failsok fail to device file