From: Jeremy Kerr Date: Mon, 29 Apr 2013 02:44:53 +0000 (+1000) Subject: test/lib: Hook into `make check` X-Git-Tag: v1.0.0~703 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=21d4959e60b1466992a13a75b310efad0ba11a46;ds=sidebyside test/lib: Hook into `make check` This change hooks the new list tests into 'make check'. To do this, we need to fix the return code of the list-test program. Signed-off-by: Jeremy Kerr --- diff --git a/test/lib/Makefile.am b/test/lib/Makefile.am index 56fea5e..5a3a34a 100644 --- a/test/lib/Makefile.am +++ b/test/lib/Makefile.am @@ -25,6 +25,7 @@ AM_CFLAGS = \ list_test_SOURCES = list-test.c list_test_LDADD = ../../lib/libpbcore.la -noinst_PROGRAMS = list-test +check_PROGRAMS = list-test +TESTS = list-test MAINTAINERCLEANFILES = Makefile.in diff --git a/test/lib/list-test.c b/test/lib/list-test.c index b4ef7ab..de629ee 100644 --- a/test/lib/list-test.c +++ b/test/lib/list-test.c @@ -67,5 +67,5 @@ int main(void) } fprintf(stderr, "-- done --\n"); - return -1; + return EXIT_SUCCESS; }