aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-19 21:47:52 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 22:18:21 +0100
commitbd348a50e65b9ef26b81998bf248480edaa7a4f2 (patch)
tree7f66a65633a5b177e5f64f2414b7585c510b305a
parentf3fedce6231c135d910b114c845d9ccc47f91ee6 (diff)
downloadsds-bd348a50e65b9ef26b81998bf248480edaa7a4f2.tar.xz
Move tests to test/
-rw-r--r--Makefile8
-rw-r--r--test/test.c (renamed from src/test.c)2
-rw-r--r--test/twbctf.c (renamed from src/twbctf.c)0
-rw-r--r--test/twbctf.h (renamed from src/twbctf.h)0
4 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b1ff027..ee5600e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
CFLAGS += -Weverything -O2 -std=c99 -ggdb
CC = clang
-SOURCES = src/twbctf.c src/sds.c
-HEADERS = src/twbctf.h src/sds.h
+SOURCES = test/twbctf.c src/sds.c
+HEADERS = test/twbctf.h src/sds.h
MANPAGES = docs/sds.3 docs/sdsnew.3 docs/sdsfree.3
all: sds-test $(MANPAGES)
-sds-test: $(SOURCES) $(HEADERS) src/test.c
+sds-test: $(SOURCES) $(HEADERS) test/test.c
@echo "==> Building sds-test"
- $(CC) $(CFLAGS) -o $@ $(SOURCES)
+ $(CC) $(CFLAGS) -Isrc -o $@ $(SOURCES)
docs/%.3: docs/%.rst
@echo "==> Building manpages"
diff --git a/src/test.c b/test/test.c
index 68839ad..bb3f64f 100644
--- a/src/test.c
+++ b/test/test.c
@@ -1,7 +1,7 @@
#include <stdbool.h>
#include <string.h>
+#include <sds.h>
-#include "sds.h"
#include "twbctf.h"
bool check_string_length (void);
diff --git a/src/twbctf.c b/test/twbctf.c
index af95c10..af95c10 100644
--- a/src/twbctf.c
+++ b/test/twbctf.c
diff --git a/src/twbctf.h b/test/twbctf.h
index c0789cc..c0789cc 100644
--- a/src/twbctf.h
+++ b/test/twbctf.h