From: Michal Vaner Date: Sun, 23 Nov 2008 13:28:17 +0000 (+0100) Subject: Make the tests work with CONFIG_UCW_ONLY X-Git-Tag: holmes-import~141^2~3 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=c6f45f4cd34d2197fdf627a4c974c2ce6f863d17;p=libucw.git Make the tests work with CONFIG_UCW_ONLY --- diff --git a/free/libs/Makefile b/free/libs/Makefile index 6135235d..5b699354 100644 --- a/free/libs/Makefile +++ b/free/libs/Makefile @@ -56,6 +56,10 @@ LIBIMAGES=$(o)/images/libimages.pc include $(s)/images/Makefile endif +else + +TESTING_DEPS=$(LIBUCW) + endif # Build documentation by default? diff --git a/ucw/kmp-test.c b/ucw/kmp-test.c index 92b91c76..cb18d032 100644 --- a/ucw/kmp-test.c +++ b/ucw/kmp-test.c @@ -50,6 +50,8 @@ test1(void) kmp1_cleanup(&kmp); } +#ifndef CONFIG_UCW_ONLY /* This one depends on LIBCHARSET */ + /* TEST2 - various tracing */ #define KMP_PREFIX(x) kmp2_##x @@ -89,6 +91,8 @@ test2(void) kmp2_cleanup(&kmp); } +#endif + /* TEST3 - random tests */ #define KMP_PREFIX(x) kmp3_##x @@ -199,7 +203,9 @@ int main(void) { test1(); +#ifndef CONFIG_UCW_ONLY test2(); +#endif test3(); test4(); return 0;