aboutsummaryrefslogtreecommitdiffstats
path: root/t/Makefile
diff options
context:
space:
mode:
authorJason Woodward2007-06-05 02:33:44 +0000
committerJason Woodward2007-06-05 02:33:44 +0000
commite2c6073c3078a666cf672c6d7a24b20bafe9e643 (patch)
treec610e8ea989826b1402de067ddb7858f024a600d /t/Makefile
parent77a80e03c3eaa9f73b37ce73ffdf257584cfd713 (diff)
downloadslapt-get-e2c6073c3078a666cf672c6d7a24b20bafe9e643.tar.gz
* Wrapped generated slapt.h in ifndef guard
* Added initial unit testing to tree
Diffstat (limited to 't/Makefile')
-rw-r--r--t/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/Makefile b/t/Makefile
new file mode 100644
index 0000000..6ef5958
--- /dev/null
+++ b/t/Makefile
@@ -0,0 +1,19 @@
+TESTOBJS=test.o test_common.o test_configuration.o test_curl.o test_packages.o test_transaction.o
+CC=gcc
+CURLFLAGS=`curl-config --libs`
+DEFINES=
+CFLAGS=-W -Werror -Wall -O2 -ansi -pedantic $(DEFINES)
+LDFLAGS=$(CURLFLAGS) -lz
+CHECKFLAGS=`pkg-config --libs check`
+
+test: $(TESTOBJS)
+ $(CC) -o test $(TESTOBJS) $(CFLAGS) ../src/libslapt.so $(CHECKFLAGS) $(LDFLAGS)
+
+runtest: test
+ ./test
+
+$(TESTOBJS):
+
+clean:
+ -rm *.o test
+ -rm -r data/slapt-get