summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-17 09:15:54 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-17 09:15:54 +0200
commita7e2d8e6028b5432d28120d50be3008229bad595 (patch)
treed8d44ebce84dadd3b852377c6dcfe39ddb0256f0 /Makefile
parentc238be7c2ad11e23304b6d84d173ef54fdfec587 (diff)
downloadpgfuse-a7e2d8e6028b5432d28120d50be3008229bad595.tar.gz
pgfuse-a7e2d8e6028b5432d28120d50be3008229bad595.tar.bz2
added a timestamp test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c28f9ba..4a98878 100644
--- a/Makefile
+++ b/Makefile
@@ -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
+