X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Faddfile.t;h=4b8e0932c0bce75b517b9de3f5db56e4c173b3e7;hb=be765ec4d3dc14dd27826326e29da8a62d5603f7;hp=a2fe02f63388b0d8fc555624ecff4c5602ae2ef8;hpb=7b53df56cc94695572fa6ea8b075cf7e89b3690c;p=zpackage diff --git a/t/addfile.t b/t/addfile.t index a2fe02f..4b8e093 100755 --- a/t/addfile.t +++ b/t/addfile.t @@ -4,16 +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) +zpm init $PF +okexit create addfile test db + +hash=$(zpm addfile $PF test.empty 2>> test.out) okexit add empty file content -okstreq $hash e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents +okstreq "$hash" e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 hash contents appid=$(sqlite3 test.db 'pragma application_id') okstreq $appid 1515209794 application id set @@ -31,4 +34,4 @@ failsok fail to device file finish -rm -f test.* +rm -f $PF test.empty