X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Fextract.t;h=d526b4cdea31d4805d94e9a0c5a394c31fb19bec;hb=4f1dc01cc1cecac408d90217874e7a2f5caa698a;hp=52a01d3f433785a75da57db8e856445f975c968f;hpb=0187a28d81a65b5b92c6c2dbaacce07d6277ba33;p=zpackage diff --git a/t/extract.t b/t/extract.t index 52a01d3..d526b4c 100755 --- a/t/extract.t +++ b/t/extract.t @@ -1,21 +1,22 @@ #!/bin/sh -# test addfile - . tap.sh -plan 5 +plan 6 PF=test.db rm -f $PF test.foo echo foo > test.foo +zpm init test.db +okexit create extract test db + hash=$(zpm-addfile $PF test.foo 2>> test.out) save=$? okexit add foo file content -okstreq $hash b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c foo hash contents +okstreq "$hash" b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c foo hash contents rm -f foo