X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=t%2Finstall.t;h=e9c05aa18d1e94de73580fd07cb81c595b42a4f0;hb=HEAD;hp=c7efc774a936b5da03a0af8910cc70df78acfc02;hpb=6cd290b379076aa17eed531cb23585b20cae3a37;p=zpackage diff --git a/t/install.t b/t/install.t index c7efc77..e9c05aa 100755 --- a/t/install.t +++ b/t/install.t @@ -18,7 +18,7 @@ newpkg() { tryrun zpm newpackage -f $pkgid.zpm $pkgid if [ $? -eq 0 ]; then shift - tryrun zpm add -u $owner -g $group -f $pkgid.zpm $pkgid "$@" + tryrun zpm add -u $owner -g $group -f $pkgid.zpm -p $pkgid "$@" return $? else skip 1 not adding files init failed @@ -53,13 +53,13 @@ PF=$pkgid.zpm #require zpm init $PF #require zpm newpackage -f $PF $pkgid -#require zpm add -f $PF $pkgid /bin/true +#require zpm add -f $PF -p $pkgid /bin/true # # install via syncfs # require zpm pkg -f $PF $pkgid status=installing -zpm syncfs -d $PF -R. $pkgid 2>&1 +zpm syncfs -d $PF -R. $pkgid 2>&1 | diagstdin okexit ran syncfs test -f bin/true @@ -78,7 +78,7 @@ require rm -rf bin # TODO should probably have merge set the status to merged by default require zpm init local.db -zpm install -R. -d local.db -f $PF $pkgid +zpm install -R. -d local.db -f $PF $pkgid 2>&1 | diagstdin #zpm list -f local.db -v | diagstdin okexit installed ns=$(zpm pkg -f local.db $pkgid status) @@ -97,7 +97,7 @@ newver=$(zpm pkg -f $PF itest version) okstreq "$newver" "2.0" "have updated version" rm -f test.out -tryrun zpm add -f $PF itest /bin/false +tryrun zpm add -f $PF -p itest /bin/false if [ $? -ne 0 ]; then diag h2 cat test.out | diagstdin @@ -105,7 +105,7 @@ if [ $? -ne 0 ]; then bailout add failed fi -zpm install -R. -d local.db -f $PF itest-2.0-1 +zpm install -R. -d local.db -f $PF itest-2.0-1 2>&1 | diagstdin okexit installed if [ $? -ne 0 ]; then cat test.out | diagstdin @@ -127,7 +127,7 @@ pkgid=itest-3.0-1 newpkg $pkgid /bin/true okexit setup package $pkgid PF=$pkgid.zpm -zpm install -R. -d local.db -f $PF $pkgid | diagstdin +zpm install -R. -d local.db -f $PF $pkgid 2>&1 | diagstdin okexit upgraded to $pkgid ns=$(zpm pkg -f local.db $pkgid status) @@ -145,7 +145,7 @@ newpkg $pkgid bin/sh okexit setup package $pkgid require rm bin/sh PF=$pkgid.zpm -zpm install -R. -d local.db -f $PF $pkgid | diagstdin +zpm install -R. -d local.db -f $PF $pkgid 2>&1 | diagstdin okexit installed $pkgid oktest -f bin/sh @@ -161,7 +161,7 @@ newpkg $pkgid bin/true okexit setup package $pkgid require mv bin/save bin/true PF=$pkgid.zpm -zpm install -R. -d local.db -f $PF $pkgid | diagstdin +zpm install -R. -d local.db -f $PF $pkgid 2>&1 | diagstdin okexit installed $pkgid rhash=$(zpm hash bin/true) okstreq "$rhash" "$nhash" "updated bin/true"