diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 21:47:52 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 22:18:21 +0100 |
commit | bd348a50e65b9ef26b81998bf248480edaa7a4f2 (patch) | |
tree | 7f66a65633a5b177e5f64f2414b7585c510b305a | |
parent | f3fedce6231c135d910b114c845d9ccc47f91ee6 (diff) | |
download | sds-bd348a50e65b9ef26b81998bf248480edaa7a4f2.tar.xz |
Move tests to test/
-rw-r--r-- | Makefile | 8 | ||||
-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
@@ -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" @@ -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 |