]> git.mdlowis.com Git - projs/tide.git/commitdiff
Fixed unit test build by adding an empty test suite for utf-8. This will eventually...
authorMike Lowis <mike.lowis@gentex.com>
Wed, 5 Oct 2016 15:35:26 +0000 (11:35 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Wed, 5 Oct 2016 15:35:26 +0000 (11:35 -0400)
Makefile
tests/tests.c
tests/utf8.c [new file with mode: 0644]

index 840f74b7c6c6bf14396dd8b721423d4e9a270c19..a02d5687e2d8dd5e4b65159d110c61535ac2b012 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ LDFLAGS  = -L/opt/X11/lib -lX11 -lXft
 CFLAGS   = --std=c99 -Wall -Wextra -I. -I/opt/X11/include -I/opt/local/include/freetype2 -I/usr/include/freetype2
 SRCS     = xedit.c buf.c screen.c utf8.c
 OBJS     = $(SRCS:.c=.o)
-TESTSRCS = tests/tests.c tests/buf.c
+TESTSRCS = tests/tests.c tests/buf.c tests/utf8.c
 TESTOBJS = $(TESTSRCS:.c=.o)
 
 all: edit test
@@ -17,7 +17,7 @@ unittests: $(TESTOBJS)
        $(CC) -o $@ $^ $(LDFLAGS)
 
 clean:
-       $(RM) edit unittests $(OBJS) $(TESTOBJS)
+       $(RM) edit unittests xedit.o $(OBJS) $(TESTOBJS)
 
 $(OBJS): edit.h Makefile
 
index d1465d604b3675fb3a4d03fa1b82351b095f4425..051ab35e863f71c1e621d9ea01ab46138d3a917b 100644 (file)
@@ -4,5 +4,6 @@
 int main(int argc, char** argv) {
     atf_init(argc,argv);
     RUN_EXTERN_TEST_SUITE(BufferTests);
+    RUN_EXTERN_TEST_SUITE(Utf8Tests);
     return atf_print_results();
 }
diff --git a/tests/utf8.c b/tests/utf8.c
new file mode 100644 (file)
index 0000000..7f969e1
--- /dev/null
@@ -0,0 +1,5 @@
+#include "atf.h"
+#include "../utf8.c"
+
+TEST_SUITE(Utf8Tests) {
+}