aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Makefile
diff options
context:
space:
mode:
authorGravatar uranther <jwheaton@purdue.edu>2009-06-24 16:33:30 -0400
committerGravatar uranther <jwheaton@purdue.edu>2009-06-24 16:33:30 -0400
commit00fbb3b2a6301e9694386480e44eaad4f59ee83c (patch)
treeba88a7ba6226341973165954510185f44d2af676 /tests/Makefile
parentf6348eb684e057960e4d5689766204893bdbab1e (diff)
Preliminary uzbl testing framework - props to bct for the help
Diffstat (limited to 'tests/Makefile')
-rw-r--r--tests/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..43a878b
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,14 @@
+CFLAGS:=-std=c99 -I$(shell pwd)/../ -L$(shell pwd) -luzbl $(shell pkg-config --cflags gtk+-2.0 webkit-1.0 libsoup-2.4) -ggdb -Wall -W -DARCH="\"$(shell uname -m)\"" -DG_ERRORCHECK_MUTEXES -DCOMMIT="\"$(shell git log | head -n1 | sed "s/.* //")\"" $(CPPFLAGS)
+LDFLAGS:=$(shell pkg-config --libs gtk+-2.0 webkit-1.0 libsoup-2.4) -pthread $(LDFLAGS)
+
+GTESTER:=gtester
+GTESTER_REPORT:=gtester-report
+
+TEST_PROGS:=test-1
+
+all: $(TEST_PROGS)
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." $(GTESTER) --verbose $(TEST_PROGS)
+
+clean:
+ rm -f $(TEST_PROGS)
+ rm -f libuzbl.so