aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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