diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-17 09:15:54 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-17 09:15:54 +0200 |
commit | a7e2d8e6028b5432d28120d50be3008229bad595 (patch) | |
tree | d8d44ebce84dadd3b852377c6dcfe39ddb0256f0 /Makefile | |
parent | c238be7c2ad11e23304b6d84d173ef54fdfec587 (diff) | |
download | pgfuse-a7e2d8e6028b5432d28120d50be3008229bad595.tar.gz pgfuse-a7e2d8e6028b5432d28120d50be3008229bad595.tar.bz2 |
added a timestamp test
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -19,16 +19,19 @@ CFLAGS += -D_FILE_OFFSET_BITS=64 CFLAGS += `pkg-config fuse --cflags` LDFLAGS = `pkg-config fuse --libs` -lpq +PG_CONNINFO = "" + clean: rm -f pgfuse pgfuse.o pgsql.o rm -f testfsync testfsync.o + rm -f testpgsql testpgsql.o psql < clean.sql -test: pgfuse testfsync +test: pgfuse testfsync testpgsql psql < clean.sql psql < schema.sql test -d mnt || mkdir mnt - ./pgfuse -s -v "" mnt + ./pgfuse -s -v "$(PG_CONNINFO)" mnt mount | grep pgfuse # expect success for making directories -mkdir mnt/dir @@ -81,4 +84,9 @@ testfsync: testfsync.o testfsync.o: testfsync.c $(CC) -c $(CFLAGS) -o testfsync.o testfsync.c - +testpgsql: testpgsql.o + $(CC) -o testpgsql testpgsql.o $(LDFLAGS) + +testpgsql.o: testpgsql.c + $(CC) -c $(CFLAGS) -o testpgsql.o testpgsql.c + |