summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-13 10:07:46 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-13 10:07:46 +0200
commitf873bf42db96ca494f8c0fff7838c30b84b1849e (patch)
treea1dc3a7a426d354765386684a9d89582d056d0fd /Makefile
parent24d3992039adc8f346c481084fdcfd1eea19eca7 (diff)
downloadpgfuse-f873bf42db96ca494f8c0fff7838c30b84b1849e.tar.gz
pgfuse-f873bf42db96ca494f8c0fff7838c30b84b1849e.tar.bz2
added unlink for files and corrected rmdir
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7b8a076..dbe57ca 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ test: pgfuse
psql < schema.sql
-./pgfuse -s -v "" mnt
mount | grep pgfuse
+ # expect success for all
-mkdir mnt/dir
-mkdir mnt/dir/dir2
-mkdir mnt/dir/dir3
@@ -30,6 +31,12 @@ test: pgfuse
-ls -al mnt
-ls -al mnt/dir/dir2
-rmdir mnt/dir/dir3
+ # expect fail (directory not empty)
+ -rmdir mnt/dir
+ # expect fail (not a directory)
+ -rmdir mnt/dir/dir2/bfile
+ # expect success
+ -rm mnt/dir/dir2/bfile
fusermount -u mnt
pgfuse: pgfuse.o pgsql.o