From 2bd684d2bfb7eaeff14f331453f92a1fe05a7bda Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Mon, 28 Sep 2020 17:44:20 +0100 Subject: tests: add tests for empty .stats and additional/missing columns --- test/Feature/KleeStatsColumns.test | 5 +++++ test/Feature/KleeStatsEmpty.test | 4 ++++ test/Feature/klee-stats/additional_column/info | 21 +++++++++++++++++++++ .../Feature/klee-stats/additional_column/run.stats | Bin 0 -> 8192 bytes test/Feature/klee-stats/empty/info | 21 +++++++++++++++++++++ test/Feature/klee-stats/empty/run.stats | Bin 0 -> 8192 bytes test/Feature/klee-stats/missing_column/info | 21 +++++++++++++++++++++ test/Feature/klee-stats/missing_column/run.stats | Bin 0 -> 8192 bytes test/Feature/klee-stats/run/info | 21 +++++++++++++++++++++ test/Feature/klee-stats/run/run.stats | Bin 0 -> 8192 bytes 10 files changed, 93 insertions(+) create mode 100644 test/Feature/KleeStatsColumns.test create mode 100644 test/Feature/KleeStatsEmpty.test create mode 100644 test/Feature/klee-stats/additional_column/info create mode 100644 test/Feature/klee-stats/additional_column/run.stats create mode 100644 test/Feature/klee-stats/empty/info create mode 100644 test/Feature/klee-stats/empty/run.stats create mode 100644 test/Feature/klee-stats/missing_column/info create mode 100644 test/Feature/klee-stats/missing_column/run.stats create mode 100644 test/Feature/klee-stats/run/info create mode 100644 test/Feature/klee-stats/run/run.stats (limited to 'test') 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 + containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew + +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 Binary files /dev/null and b/test/Feature/klee-stats/additional_column/run.stats differ diff --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 + containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew + +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 Binary files /dev/null and b/test/Feature/klee-stats/empty/run.stats differ diff --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 + containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew + +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 Binary files /dev/null and b/test/Feature/klee-stats/missing_column/run.stats differ diff --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 + containing 2 searchers: +RandomPathSearcher +WeightedRandomSearcher::CoveringNew + +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 Binary files /dev/null and b/test/Feature/klee-stats/run/run.stats differ -- cgit 1.4.1