. tap.sh
-plan 32
+plan 33
owner=$(id -un)
group=$(id -gn)
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 ..
+rm -r tmp