[tests] Main test program and Makefile

This commit is contained in:
Al
2016-01-28 16:37:29 -05:00
parent d318db15f1
commit 8702ee931c
2 changed files with 33 additions and 0 deletions

16
test/Makefile.am Normal file
View File

@@ -0,0 +1,16 @@
CFLAGS_BASE = -Wfloat-equal -Wpointer-arith
CFLAGS_O0 = $(CFLAGS_BASE) -O0
CFLAGS_O1 = $(CFLAGS_BASE) -O1
CFLAGS_O2 = $(CFLAGS_BASE) -O2
CFLAGS_O3 = $(CFLAGS_BASE) -O3
DEFAULT_INCLUDES = -I.. -I$(top_builddir)/src
CFLAGS = $(CFLAGS_BASE)
SRC = $(top_builddir)/src
TESTS = test_libpostal
noinst_PROGRAMS = test_libpostal
test_libpostal_SOURCES = test.c test_expand.c test_transliterate.c test_numex.c
test_libpostal_LDADD = $(SRC)/libpostal.la
test_libpostal_CFLAGS = $(CFLAGS_O3)