diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-05-01 20:06:15 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-05-01 20:06:15 +0200 |
commit | 48f270b4690f085561cc855008d67445f08422e4 (patch) | |
tree | 7f19099bf9322f038d0fb3c16c659dbd3fb43ee9 /tests/Makefile | |
parent | 2cc6009fc5809eccd984aa69c6ae940a7a744cfb (diff) | |
download | pgfuse-48f270b4690f085561cc855008d67445f08422e4.tar.gz pgfuse-48f270b4690f085561cc855008d67445f08422e4.tar.bz2 |
added a test for sparse files
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/Makefile b/tests/Makefile index 69b061d..8b156e6 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -4,7 +4,7 @@ PG_CONNINFO = "" CFLAGS += -I.. -test: testfsync testpgsql testtypes +test: testfsync testpgsql testtypes testbigfile psql < clean.sql psql < ../schema.sql test -d mnt || mkdir mnt @@ -56,6 +56,9 @@ test: testfsync testpgsql testtypes -dd if=/dev/zero of=mnt/trunc bs=512 count=10 -truncate --size 513 mnt/trunc -ls -al mnt/trunc + # expect success, write a sparse big file + -./testbigfile + -ls -al mnt/testbigfile.data # END: unmount FUSE file system fusermount -u mnt @@ -63,6 +66,7 @@ clean: rm -f testfsync testfsync.o rm -f testpgsql testpgsql.o rm -f testtypes testtypes.o + rm -f testbigfile testbigfile.o testfsync: testfsync.o $(CC) -o testfsync testfsync.o @@ -81,3 +85,9 @@ testtypes: testtypes.o testtypes.o: testtypes.c $(CC) -c $(CFLAGS) -o testtypes.o testtypes.c + +testbigfile: testbigfile.o + $(CC) -o testbigfile testbigfile.o + +testbigfile.o: testbigfile.c + $(CC) -c $(CFLAGS) -o testbigfile.o testbigfile.c |