aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-27 20:50:23 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-27 21:19:23 +0100
commit2e109625bb7496bf1f3e75e30345c8cbd6eacede (patch)
tree5500dc821c6a5375d3331c9af8c66f36199b9f94
parenta69eae98b73856534c43c13c621dfe2822ab0ce6 (diff)
Require the copora tests suits to be enabled explicitly
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--configure.ac7
-rw-r--r--tests/Makemodule.am8
2 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 04594c8..e885348 100644
--- a/configure.ac
+++ b/configure.ac
@@ -87,6 +87,13 @@ AC_ARG_WITH([tools],
[Only build libsquashfs, do not build the tools.])],
[], [with_tools="yes"])
+AC_ARG_ENABLE([copora-tests],
+ [AS_HELP_STRING([--enable-copora-tests],
+ [Perform coprora based reproducability tests.])],
+ [], [enable_copora_tests="no"])
+
+AM_CONDITIONAL([CORPORA_TESTS], [test "x$enable_copora_tests" = "xyes"])
+
AS_IF([test "x$build_windows" = "xyes"], [with_pthread="no"], [])
AS_IF([test "x$with_tools" != "xyes"], [with_selinux="no"], [])
AM_CONDITIONAL([BUILD_TOOLS], [test "x$with_tools" = "xyes"])
diff --git a/tests/Makemodule.am b/tests/Makemodule.am
index 6853487..0c3f6e5 100644
--- a/tests/Makemodule.am
+++ b/tests/Makemodule.am
@@ -108,7 +108,6 @@ check_PROGRAMS += test_tar_ustar test_tar_pax test_tar_gnu
check_PROGRAMS += test_tar_sparse_gnu test_tar_sparse_gnu1 test_tar_sparse_gnu2
check_PROGRAMS += test_tar_xattr_bsd test_tar_xattr_schily
check_PROGRAMS += test_tar_xattr_schily_bin
-check_SCRIPTS += tests/cantrbry.sh tests/test_tar_sqfs.sh
noinst_PROGRAMS += fstree_fuzz tar_fuzz
@@ -119,7 +118,12 @@ TESTS += test_fstree_init test_filename_sane test_filename_sane_w32
TESTS += test_tar_ustar test_tar_pax
TESTS += test_tar_gnu test_tar_sparse_gnu test_tar_sparse_gnu1
TESTS += test_tar_sparse_gnu2 test_tar_xattr_bsd test_tar_xattr_schily
-TESTS += test_tar_xattr_schily_bin tests/cantrbry.sh tests/test_tar_sqfs.sh
+TESTS += test_tar_xattr_schily_bin
+
+if CORPORA_TESTS
+check_SCRIPTS += tests/cantrbry.sh tests/test_tar_sqfs.sh
+TESTS += tests/cantrbry.sh tests/test_tar_sqfs.sh
+endif
endif
EXTRA_DIST += $(top_srcdir)/tests/tar $(top_srcdir)/tests/words.txt