summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-25 14:22:19 (GMT)
committer John Mark Bell <jmb@netsurf-browser.org>2009-03-25 14:22:19 (GMT)
commit8e158a3f5bcdd89de8d470a6773b3fef0b085a98 (patch)
treef3f68086f4c662638e532efd860226f93820551e
parent6088f2fb41483c0734ef274bc7c9a1e4c338c050 (diff)
downloadlibparserutils-8e158a3f5bcdd89de8d470a6773b3fef0b085a98.tar.gz
libparserutils-8e158a3f5bcdd89de8d470a6773b3fef0b085a98.tar.bz2
Port to new test scheme.
Fix aliases test to work in release mode. svn path=/trunk/libparserutils/; revision=6871
-rw-r--r--test/Makefile6
-rw-r--r--test/aliases.c2
-rw-r--r--test/regression/Makefile4
3 files changed, 8 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile
index 0356756..4dc7c7b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,5 +1,7 @@
# Tests
-DIR_TEST_SOURCES := aliases.c cscodec-8859.c cscodec-ext8.c cscodec-utf8.c \
- cscodec-utf16.c charset.c filter.c inputstream.c parserutils.c
+DIR_TEST_ITEMS := aliases:aliases.c cscodec-8859:cscodec-8859.c \
+ cscodec-ext8:cscodec-ext8.c cscodec-utf8:cscodec-utf8.c \
+ cscodec-utf16:cscodec-utf16.c charset:charset.c filter:filter.c \
+ inputstream:inputstream.c parserutils:parserutils.c
include build/makefiles/Makefile.subdir
diff --git a/test/aliases.c b/test/aliases.c
index 584080b..b0e8e60 100644
--- a/test/aliases.c
+++ b/test/aliases.c
@@ -25,7 +25,9 @@ int main (int argc, char **argv)
parserutils_charset_aliases_create(argv[1], myrealloc, NULL);
+#ifndef NDEBUG
parserutils_charset_aliases_dump();
+#endif
c = parserutils_charset_alias_canonicalise("moose", 5);
if (c) {
diff --git a/test/regression/Makefile b/test/regression/Makefile
index 61abbd6..0799ea4 100644
--- a/test/regression/Makefile
+++ b/test/regression/Makefile
@@ -1,6 +1,6 @@
# Tests
-DIR_TEST_SOURCES := cscodec-segv.c filter-segv.c stream-nomem.c \
- filter-badenc-segv.c
+DIR_TEST_ITEMS := cscodec-segv:cscodec-segv.c filter-segv:filter-segv.c \
+ stream-nomem:stream-nomem.c filter-badenc-segv:filter-badenc-segv.c
CFLAGS := $(CFLAGS) -I$(CURDIR)/test