X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Fzpmtest.t;fp=t%2Fzpmtest.t;h=89dfe0860d63dab2c131521182b7071bcee81c2a;hb=bd46218e36b09bc89497dd8aa5426d6610cd240c;hp=0000000000000000000000000000000000000000;hpb=e37940bd405aa420af334d03e0b751ee7099dddb;p=zpackage diff --git a/t/zpmtest.t b/t/zpmtest.t new file mode 100755 index 0000000..89dfe08 --- /dev/null +++ b/t/zpmtest.t @@ -0,0 +1,29 @@ +#!/bin/sh + +# test addfile + +. tap.sh + +plan 3 + +PF=test.db + +rm -f $PF +touch $PF + +zpm-test $PF +failsok empty file is not zpm file +rm -f $PF + +appid=$(sqlite3 $PF 'pragma application_id') +zpm-test $PF +failsok empty db is not zpm file +rm -f $PF + +zpm-init $PF +zpm-test $PF +okexit 'new init db is zpm file' + +finish + +rm -f test.*