diff options
author | Frank Busse <bb0xfb@gmail.com> | 2020-09-28 17:44:20 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2020-09-30 21:28:12 +0100 |
commit | 2bd684d2bfb7eaeff14f331453f92a1fe05a7bda (patch) | |
tree | 7337d169e9973066e730756df01ede0040931c09 /test | |
parent | 54b5487f3fbe0c33dc4c36410e82fa38a2da681a (diff) | |
download | klee-2bd684d2bfb7eaeff14f331453f92a1fe05a7bda.tar.gz |
tests: add tests for empty .stats and additional/missing columns
Diffstat (limited to 'test')
-rw-r--r-- | test/Feature/KleeStatsColumns.test | 5 | ||||
-rw-r--r-- | test/Feature/KleeStatsEmpty.test | 4 | ||||
-rw-r--r-- | test/Feature/klee-stats/additional_column/info | 21 | ||||
-rw-r--r-- | test/Feature/klee-stats/additional_column/run.stats | bin | 0 -> 8192 bytes | |||
-rw-r--r-- | test/Feature/klee-stats/empty/info | 21 | ||||
-rw-r--r-- | test/Feature/klee-stats/empty/run.stats | bin | 0 -> 8192 bytes | |||
-rw-r--r-- | test/Feature/klee-stats/missing_column/info | 21 | ||||
-rw-r--r-- | test/Feature/klee-stats/missing_column/run.stats | bin | 0 -> 8192 bytes | |||
-rw-r--r-- | test/Feature/klee-stats/run/info | 21 | ||||
-rw-r--r-- | test/Feature/klee-stats/run/run.stats | bin | 0 -> 8192 bytes |
10 files changed, 93 insertions, 0 deletions
diff --git a/test/Feature/KleeStatsColumns.test b/test/Feature/KleeStatsColumns.test new file mode 100644 index 00000000..91731857 --- /dev/null +++ b/test/Feature/KleeStatsColumns.test @@ -0,0 +1,5 @@ +RUN: %klee-stats --print-all %S/klee-stats/missing_column %S/klee-stats/run %S/klee-stats/additional_column | FileCheck %s + +CHECK: {{^}}| missing_column | |{{.*}}| |{{$}} +CHECK: {{^}}| run | 3|{{.*}}| |{{$}} +CHECK: {{^}}|additional_column| 3|{{.*}}| 4711|{{$}} diff --git a/test/Feature/KleeStatsEmpty.test b/test/Feature/KleeStatsEmpty.test new file mode 100644 index 00000000..aae1fee1 --- /dev/null +++ b/test/Feature/KleeStatsEmpty.test @@ -0,0 +1,4 @@ +RUN: %klee-stats %S/klee-stats/empty | FileCheck %s + +CHECK: {{^}}|{{ *}}Path{{ *}}|{{$}} +CHECK: {{^}}|{{.*}}empty{{ *}}|{{$}} diff --git a/test/Feature/klee-stats/additional_column/info b/test/Feature/klee-stats/additional_column/info new file mode 100644 index 00000000..1d6e6cdd --- /dev/null +++ b/test/Feature/klee-stats/additional_column/info @@ -0,0 +1,21 @@ +klee run.bc +PID: 1122888 +Using monotonic steady clock with 1/1000000000s resolution +Started: 2020-09-25 18:44:34 +BEGIN searcher description +<InterleavedSearcher> containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew +</InterleavedSearcher> +END searcher description +Finished: 2020-09-25 18:44:34 +Elapsed: 00:00:00 +KLEE: done: explored paths = 1 +KLEE: done: total queries = 0 +KLEE: done: valid queries = 0 +KLEE: done: invalid queries = 0 +KLEE: done: query cex = 0 + +KLEE: done: total instructions = 3 +KLEE: done: completed paths = 1 +KLEE: done: generated tests = 1 diff --git a/test/Feature/klee-stats/additional_column/run.stats b/test/Feature/klee-stats/additional_column/run.stats new file mode 100644 index 00000000..13ff326c --- /dev/null +++ b/test/Feature/klee-stats/additional_column/run.stats Binary files differdiff --git a/test/Feature/klee-stats/empty/info b/test/Feature/klee-stats/empty/info new file mode 100644 index 00000000..1d6e6cdd --- /dev/null +++ b/test/Feature/klee-stats/empty/info @@ -0,0 +1,21 @@ +klee run.bc +PID: 1122888 +Using monotonic steady clock with 1/1000000000s resolution +Started: 2020-09-25 18:44:34 +BEGIN searcher description +<InterleavedSearcher> containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew +</InterleavedSearcher> +END searcher description +Finished: 2020-09-25 18:44:34 +Elapsed: 00:00:00 +KLEE: done: explored paths = 1 +KLEE: done: total queries = 0 +KLEE: done: valid queries = 0 +KLEE: done: invalid queries = 0 +KLEE: done: query cex = 0 + +KLEE: done: total instructions = 3 +KLEE: done: completed paths = 1 +KLEE: done: generated tests = 1 diff --git a/test/Feature/klee-stats/empty/run.stats b/test/Feature/klee-stats/empty/run.stats new file mode 100644 index 00000000..00efaa44 --- /dev/null +++ b/test/Feature/klee-stats/empty/run.stats Binary files differdiff --git a/test/Feature/klee-stats/missing_column/info b/test/Feature/klee-stats/missing_column/info new file mode 100644 index 00000000..1d6e6cdd --- /dev/null +++ b/test/Feature/klee-stats/missing_column/info @@ -0,0 +1,21 @@ +klee run.bc +PID: 1122888 +Using monotonic steady clock with 1/1000000000s resolution +Started: 2020-09-25 18:44:34 +BEGIN searcher description +<InterleavedSearcher> containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew +</InterleavedSearcher> +END searcher description +Finished: 2020-09-25 18:44:34 +Elapsed: 00:00:00 +KLEE: done: explored paths = 1 +KLEE: done: total queries = 0 +KLEE: done: valid queries = 0 +KLEE: done: invalid queries = 0 +KLEE: done: query cex = 0 + +KLEE: done: total instructions = 3 +KLEE: done: completed paths = 1 +KLEE: done: generated tests = 1 diff --git a/test/Feature/klee-stats/missing_column/run.stats b/test/Feature/klee-stats/missing_column/run.stats new file mode 100644 index 00000000..f970511c --- /dev/null +++ b/test/Feature/klee-stats/missing_column/run.stats Binary files differdiff --git a/test/Feature/klee-stats/run/info b/test/Feature/klee-stats/run/info new file mode 100644 index 00000000..1d6e6cdd --- /dev/null +++ b/test/Feature/klee-stats/run/info @@ -0,0 +1,21 @@ +klee run.bc +PID: 1122888 +Using monotonic steady clock with 1/1000000000s resolution +Started: 2020-09-25 18:44:34 +BEGIN searcher description +<InterleavedSearcher> containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew +</InterleavedSearcher> +END searcher description +Finished: 2020-09-25 18:44:34 +Elapsed: 00:00:00 +KLEE: done: explored paths = 1 +KLEE: done: total queries = 0 +KLEE: done: valid queries = 0 +KLEE: done: invalid queries = 0 +KLEE: done: query cex = 0 + +KLEE: done: total instructions = 3 +KLEE: done: completed paths = 1 +KLEE: done: generated tests = 1 diff --git a/test/Feature/klee-stats/run/run.stats b/test/Feature/klee-stats/run/run.stats new file mode 100644 index 00000000..e1c8c425 --- /dev/null +++ b/test/Feature/klee-stats/run/run.stats Binary files differ |