about summary refs log tree commit diff homepage
path: root/test/lit.site.cfg.in
diff options
context:
space:
mode:
authorMartin Nowack <m.nowack@imperial.ac.uk>2018-06-09 19:36:01 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2018-07-04 22:14:58 +0100
commit8f2b9b543b7e226c6ea06917a720452267012c22 (patch)
tree25bb4b5f3657003c4e3615be00104ee6855c9495 /test/lit.site.cfg.in
parenteb75a38011726d4a045f3db3edbfef924f62c737 (diff)
downloadklee-8f2b9b543b7e226c6ea06917a720452267012c22.tar.gz
Support sanitizer suppression files with lit-based testing
Diffstat (limited to 'test/lit.site.cfg.in')
-rw-r--r--test/lit.site.cfg.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in
index 300c70c5..6a90bb4c 100644
--- a/test/lit.site.cfg.in
+++ b/test/lit.site.cfg.in
@@ -28,6 +28,10 @@ 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
 
+# Add sanitizer list
+config.environment['LSAN_OPTIONS'] = "suppressions=@KLEE_UTILS_DIR@/sanitizers/lsan.txt"
+config.environment['UBSAN_OPTIONS'] = "suppressions=@KLEE_UTILS_DIR@/sanitizers/ubsan.txt"
+
 # Current target
 config.target_triple = "@TARGET_TRIPLE@"