From a50cdda0f68cee1f2adf8480b163911eb83298c2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 19 Apr 2015 19:25:14 -0300 Subject: build: mark tests as disabled by default --- configure.ac | 2 +- tests/check_loader.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index cd2bc89..277a479 100644 --- a/configure.ac +++ b/configure.ac @@ -35,6 +35,7 @@ AM_CONDITIONAL([USE_VALGRIND], [test "x$have_valgrind" = "xyes"]) VALGRIND="$ac_cv_path_valgrind" AC_SUBST(VALGRIND) +TESTS="disabled" AC_ARG_ENABLE([tests], AS_HELP_STRING([--disable-tests], [disable unit tests, ignoring presence of cmocka])) AS_IF([test "x$enable_tests" != "xno"], [ @@ -43,7 +44,6 @@ AS_IF([test "x$enable_tests" != "xno"], [ TESTS="enabled" have_cmocka=yes ], [ - TESTS="disabled" have_cmocka=no ]) ]) diff --git a/tests/check_loader.c b/tests/check_loader.c index 08c5acc..1961180 100644 --- a/tests/check_loader.c +++ b/tests/check_loader.c @@ -19,6 +19,9 @@ #include "../src/utils/utils.h" +// FIXME: test the file functions + + static void test_get_filename(void **state) { -- cgit v1.2.3-18-g5258