X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Faddfile.t;h=65188bc8a1c10adcc2138af5d50ced8ece699f6a;hb=2ac486ab18adbbb84563eafc0d67fa8da6ca7822;hp=4a7de4f38405cf686b47e847ce9f09290c87ab7b;hpb=cd4fd08b5433d74d8ac33922a2f6cbf2f5a0c99f;p=zpackage diff --git a/t/addfile.t b/t/addfile.t index 4a7de4f..65188bc 100755 --- a/t/addfile.t +++ b/t/addfile.t @@ -4,17 +4,19 @@ . tap.sh -plan 6 +plan 7 PF=test.db rm -f $PF test.empty touch test.empty -hash=$(zpm-addfile $PF test.empty 2>> test.out) -okexit add empty file content -okstreq $hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents +zpm init $PF +okexit create addfile test db +hash=$(zpm addfile $PF test.empty 2>> test.out) +okexit add empty file content +okstreq "$hash" 0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8 hash contents appid=$(sqlite3 test.db 'pragma application_id') okstreq $appid 1515209794 application id set