diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2022-03-25 22:29:36 +0000 |
---|---|---|
committer | MartinNowack <2443641+MartinNowack@users.noreply.github.com> | 2022-05-06 11:21:35 +0100 |
commit | fa5367b92e379886eda68d8c754d1abcf1c5aa66 (patch) | |
tree | 0b749e1ce3b8c6915cc9316ab22df5a239236b26 | |
parent | d704b59fa0082d1783dd4c921d87cddad6620d78 (diff) | |
download | klee-fa5367b92e379886eda68d8c754d1abcf1c5aa66.tar.gz |
Updated tests to use ktest-randgen instead of gen-random-bout
-rw-r--r-- | test/CMakeLists.txt | 2 | ||||
-rw-r--r-- | test/Replay/klee-replay/KTestRandGen.c (renamed from test/Replay/klee-replay/GenRandomBout.c) | 10 | ||||
-rw-r--r-- | test/lit.cfg | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 42b28a7c..6a625935 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -151,7 +151,7 @@ file(GENERATE add_custom_target(systemtests COMMAND "${LIT_TOOL}" ${LIT_ARGS} "${CMAKE_CURRENT_BINARY_DIR}" - DEPENDS klee kleaver klee-replay kleeRuntest ktest-gen gen-random-bout + DEPENDS klee kleaver klee-replay kleeRuntest ktest-gen ktest-randgen COMMENT "Running system tests" USES_TERMINAL ) diff --git a/test/Replay/klee-replay/GenRandomBout.c b/test/Replay/klee-replay/KTestRandGen.c index 9f609a40..fdb8c15a 100644 --- a/test/Replay/klee-replay/GenRandomBout.c +++ b/test/Replay/klee-replay/KTestRandGen.c @@ -1,25 +1,25 @@ // -- Core testing commands // RUN: rm -f %t.bout -// RUN: %gen-random-bout 100 -sym-arg 4 -sym-files 2 20 -sym-arg 5 -sym-stdin 8 -sym-stdout -sym-arg 6 -sym-args 1 4 5 -bout-file %t.bout +// RUN: %ktest-randgen 100 -sym-arg 4 -sym-files 2 20 -sym-arg 5 -sym-stdin 8 -sym-stdout -sym-arg 6 -sym-args 1 4 5 -bout-file %t.bout // RUN: %cc %s -O0 -o %t // RUN: %klee-replay %t %t.bout 2> %t.out // RUN: FileCheck --input-file=%t.out %s // CHECK: KLEE-REPLAY: NOTE: EXIT STATUS: NORMAL // // -- Option error handling tests -// RUN: not %gen-random-bout 2> %t1 +// RUN: not %ktest-randgen 2> %t1 // RUN: FileCheck -check-prefix=CHECK-USAGE -input-file=%t1 %s // CHECK-USAGE: Usage // -// RUN: not %gen-random-bout 0 --unexpected-option 2> %t2 +// RUN: not %ktest-randgen 0 --unexpected-option 2> %t2 // RUN: FileCheck -check-prefix=CHECK-UNEXPECTED -input-file=%t2 %s // CHECK-UNEXPECTED: Unexpected // -// RUN: not %gen-random-bout 100 --sym-args 5 3 2> %t3 +// RUN: not %ktest-randgen 100 --sym-args 5 3 2> %t3 // RUN: FileCheck -check-prefix=CHECK-RANOUT -input-file=%t3 %s // CHECK-RANOUT: ran out of // -// RUN: not %gen-random-bout 100 --sym-args 5 3 10 2> %t4 +// RUN: not %ktest-randgen 100 --sym-args 5 3 10 2> %t4 // RUN: FileCheck -check-prefix=CHECK-NOMORE -input-file=%t4 %s // CHECK-NOMORE: should be no more diff --git a/test/lit.cfg b/test/lit.cfg index c44575c0..cd56527c 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -135,7 +135,7 @@ subs = [ ('%kleaver', 'kleaver', kleaver_extra_params), ('%klee-zesti', 'klee-zesti', ''), ('%klee','klee', klee_extra_params), ('%ktest-tool', 'ktest-tool', ''), - ('%gen-random-bout', 'gen-random-bout', ''), + ('%ktest-randgen', 'ktest-randgen', ''), ('%ktest-gen', 'ktest-gen', '') ] for s,basename,extra_args in subs: |