about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2018-10-12 11:53:28 +0100
committerMartinNowack <martin.nowack@gmail.com>2018-10-17 09:21:19 +0100
commit916b72a7955cbb06d1a10640f8c6daea14da523e (patch)
treeb425e4ba0fe9a8b6f4ecc41bc36af4a1eb01577b
parent9d730c318aa77593d2cb6898c0b530dbec14f045 (diff)
downloadklee-916b72a7955cbb06d1a10640f8c6daea14da523e.tar.gz
tests: disable CompressedExprLogging on zlib-less systems
-rw-r--r--test/Feature/CompressedExprLogging.c1
-rw-r--r--test/lit.cfg3
-rw-r--r--test/lit.site.cfg.in1
3 files changed, 5 insertions, 0 deletions
diff --git a/test/Feature/CompressedExprLogging.c b/test/Feature/CompressedExprLogging.c
index ba20428d..4813190d 100644
--- a/test/Feature/CompressedExprLogging.c
+++ b/test/Feature/CompressedExprLogging.c
@@ -1,3 +1,4 @@
+// REQUIRES: zlib
 // RUN: %llvmgcc %s -emit-llvm -g -O0 -c -o %t1.bc
 // We disable the cex-cache to eliminate nondeterminism across different
 // solvers, in particular when counting the number of queries in the last two
diff --git a/test/lit.cfg b/test/lit.cfg
index 56fb6fdd..0bbadafb 100644
--- a/test/lit.cfg
+++ b/test/lit.cfg
@@ -178,6 +178,9 @@ if config.enable_z3:
 else:
   config.available_features.add('not-z3')
 
+# Zlib
+config.available_features.add('zlib' if config.enable_zlib else 'not-zlib')
+
 # POSIX runtime feature
 if config.enable_posix_runtime:
   config.available_features.add('posix-runtime')
diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in
index cea7ad26..9ef21489 100644
--- a/test/lit.site.cfg.in
+++ b/test/lit.site.cfg.in
@@ -27,6 +27,7 @@ config.enable_posix_runtime = True if @ENABLE_POSIX_RUNTIME@ == 1 else False
 config.have_selinux = True if @HAVE_SELINUX@ == 1 else False
 config.enable_stp = True if @ENABLE_STP@ == 1 else False
 config.enable_z3 = True if @ENABLE_Z3@ == 1 else False
+config.enable_zlib = True if @HAVE_ZLIB_H@ == 1 else False
 config.have_asan = True if @IS_ASAN_BUILD@ == 1 else False
 config.have_ubsan = True if @IS_UBSAN_BUILD@ == 1 else False