about summary refs log tree commit diff
path: root/tests/simple.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T14·26+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-03-01T14·26+0000
commitb90787290df216f511ec296c85390e645ca1e89f (patch)
treec269893e2d19f6bac41bce4fbd77b3c5f1b09812 /tests/simple.sh
parent089c41a0c2ecf91c55495547a5462d75f36be5f4 (diff)
* TDD! Woohoo!
Diffstat (limited to 'tests/simple.sh')
-rw-r--r--tests/simple.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/simple.sh b/tests/simple.sh
index 225e7c5224..a2242e34e8 100644
--- a/tests/simple.sh
+++ b/tests/simple.sh
@@ -10,3 +10,8 @@ echo "output path is $outPath"
 
 text=$(cat "$outPath"/hello)
 if test "$text" != "Hello World!"; then exit 1; fi
+
+# Directed delete: $outPath is not reachable from a root, so it should
+# be deleteable.
+$nixstore --delete $outPath
+if test -e $outPath/hello; then false; fi