]> pd.if.org Git - zpackage/blobdiff - t/update.t
fix compile process for elf programs
[zpackage] / t / update.t
index 2606f70f9046f9c9947f100f8a29ea533427bc09..d97f0bea07dc3640b1d72d6cb38d4b4b04b08897 100755 (executable)
@@ -6,7 +6,7 @@
 
 . tap.sh
 
-plan 32
+plan 33
 
 owner=$(id -un)
 group=$(id -gn)
@@ -95,12 +95,21 @@ require zpm install -R. -f itest-2.0-1.zpm itest-2.0-1
 conf=$(cat etc/conf)
 okstreq "$conf" bar new conf is bar
 
+zpm note -f var/lib/zpm/local.db -l | diagstdin
+
 echo quux > etc/conf
+qhash=$(printf '%.8s' $(zpm hash etc/conf))
 
 require zpm install -R. -f itest-3.0-1.zpm itest-3.0-1
 conf=$(cat etc/conf)
-okstreq "$conf" quux kept conf as quux
+okstreq "$conf" quux kept conf $qhash as quux
+
+zpm note -f var/lib/zpm/local.db -l | diagstdin
+
+ZPMDB=$PWD/var/lib/zpm/local.db
+export ZPMDB
 
+require zpm uninstall -R. itest
 zpm note -f var/lib/zpm/local.db -l | diagstdin
 
 cd ..