From b8bd3edbcbbfbe44a675c6c69ec41d1d1aa488d8 Mon Sep 17 00:00:00 2001 From: Brian Carrier <carrier@sleuthkit.org> Date: Tue, 20 Feb 2018 23:06:10 -0500 Subject: [PATCH] fix release scripts for tests --- release/release-unix.pl | 8 +++++++- tests/Makefile.am | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/release/release-unix.pl b/release/release-unix.pl index f208fe2ea..cfbb10cc1 100755 --- a/release/release-unix.pl +++ b/release/release-unix.pl @@ -466,7 +466,13 @@ sub verify_tar { print "Running make\n"; system ("make > /dev/null"); - die "Error compiling tar file" unless ((-x "tools/fstools/fls") && (-x "tests/read_apis")); + die "Error compiling tar file" unless (-x "tools/fstools/fls"); + + print "Testing Test\n"; + chdir "tests" or die "Error changing directories to test"; + system ("make check > /dev/null"); + die "Error compiling tests" unless (-x "read_apis"); + chdir ".."; print "Building Java JAR\n"; chdir "bindings/java" or die "Error changing directories to java"; diff --git a/tests/Makefile.am b/tests/Makefile.am index 072e6dc32..dd4f75cae 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,7 @@ AM_CPPFLAGS = -I.. -I$(srcdir)/.. -Wall $(PTHREAD_CFLAGS) LDADD = ../tsk/libtsk.la LDFLAGS += -static $(PTHREAD_LIBS) -EXTRA_DIST = .indent.pro +EXTRA_DIST = .indent.pro runtests.sh check_SCRIPTS = runtests.sh -- GitLab