From c6f45f4cd34d2197fdf627a4c974c2ce6f863d17 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sun, 23 Nov 2008 14:28:17 +0100 Subject: [PATCH] Make the tests work with CONFIG_UCW_ONLY --- free/libs/Makefile | 4 ++++ ucw/kmp-test.c | 6 ++++++ 2 files changed, 10 insertions(+) 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; -- 2.39.2