diff options
author | Frank Busse <bb0xfb@gmail.com> | 2020-09-28 17:45:01 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2020-09-30 21:28:12 +0100 |
commit | 54b5487f3fbe0c33dc4c36410e82fa38a2da681a (patch) | |
tree | fffc3514db2c016d72553ff9fcd9743bce3d51e8 /test | |
parent | 07deecf58adad20fbc44b9b74dbac1e65e2b6647 (diff) | |
download | klee-54b5487f3fbe0c33dc4c36410e82fa38a2da681a.tar.gz |
tests: support .test and introduce %klee-stats
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/KleeStats.c | 2 | ||||
-rw-r--r-- | test/lit.cfg | 3 | ||||
-rw-r--r-- | test/regression/2017-03-23-early-exit-log-stats.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/test/Feature/KleeStats.c b/test/Feature/KleeStats.c index 48305358..4bff2f40 100644 --- a/test/Feature/KleeStats.c +++ b/test/Feature/KleeStats.c @@ -1,7 +1,7 @@ // RUN: %clang %s -emit-llvm -g %O0opt -c -o %t.bc // RUN: rm -rf %t.klee-out // RUN: %klee --output-dir=%t.klee-out %t.bc 2> %t.log -// RUN: klee-stats --print-more %t.klee-out > %t.stats +// RUN: %klee-stats --print-more %t.klee-out > %t.stats // RUN: FileCheck -check-prefix=CHECK-STATS -input-file=%t.stats %s #include "klee/klee.h" #include <stdlib.h> diff --git a/test/lit.cfg b/test/lit.cfg index 47d1e734..c1003e70 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -23,7 +23,7 @@ config.test_format = lit.formats.ShTest(execute_external=False) # suffixes: A list of file extensions to treat as test files # Note this can be overridden by lit.local.cfg files -config.suffixes = ['.ll', '.c', '.cpp', '.kquery'] +config.suffixes = ['.ll', '.c', '.cpp', '.kquery', '.test'] # test_source_root: The root path where tests are located. config.test_source_root = os.path.dirname(__file__) @@ -131,6 +131,7 @@ if len(kleaver_extra_params) != 0: # to come first, e.g., klee-replay should come before klee subs = [ ('%kleaver', 'kleaver', kleaver_extra_params), ('%klee-replay', 'klee-replay', ''), + ('%klee-stats', 'klee-stats', ''), ('%klee-zesti', 'klee-zesti', ''), ('%klee','klee', klee_extra_params), ('%ktest-tool', 'ktest-tool', ''), diff --git a/test/regression/2017-03-23-early-exit-log-stats.c b/test/regression/2017-03-23-early-exit-log-stats.c index 6fb3d023..892e1d9e 100644 --- a/test/regression/2017-03-23-early-exit-log-stats.c +++ b/test/regression/2017-03-23-early-exit-log-stats.c @@ -2,7 +2,7 @@ // RUN: rm -rf %t.klee-out // Delay writing instructions so that we ensure on exit that flush happens // RUN: not %klee --output-dir=%t.klee-out -exit-on-error -stats-write-interval=0 -stats-write-after-instructions=999999 -stats-commit-after=1 %t.bc 2> %t.log -// RUN: klee-stats --to-csv %t.klee-out > %t.stats.csv +// RUN: %klee-stats --to-csv %t.klee-out > %t.stats.csv // RUN: FileCheck -check-prefix=CHECK-KLEE -input-file=%t.log %s // RUN: FileCheck -check-prefix=CHECK-STATS -input-file=%t.stats.csv %s #include "klee/klee.h" |