about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorFrank Busse <bb0xfb@gmail.com>2019-04-04 18:18:38 +0100
committerMartinNowack <martin.nowack@gmail.com>2019-04-04 20:37:41 +0100
commit8bee70d3ce327f27fc0cf8f7c092a7317d88173a (patch)
treeb420c55c8d7155bdc6312cbf010ca782defee114
parent0f7b91f802b510e6a7215ef1339484c588fa9e0c (diff)
downloadklee-8bee70d3ce327f27fc0cf8f7c092a7317d88173a.tar.gz
klee-stats: add - to to-csv/grafana options
-rw-r--r--test/regression/2017-03-23-early-exit-log-stats.c2
-rwxr-xr-xtools/klee-stats/klee-stats6
2 files changed, 4 insertions, 4 deletions
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 3a76b9f8..6fb3d023 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"
diff --git a/tools/klee-stats/klee-stats b/tools/klee-stats/klee-stats
index c0171343..2aafb1fa 100755
--- a/tools/klee-stats/klee-stats
+++ b/tools/klee-stats/klee-stats
@@ -22,7 +22,7 @@ try:
 except:
     print('Error: Package "tabulate" required for table formatting. '
           'Please install it using "pip" or your package manager.'
-          'You can still use -grafana and -to-csv without tabulate.',
+          'You can still use --grafana and --to-csv without tabulate.',
           file=sys.stderr)
 
 Legend = [
@@ -229,10 +229,10 @@ def main():
                           choices=['klee'] + list(_table_formats.keys()),
                           dest='tableFormat', default='klee',
                           help='Table format for the summary.')
-    parser.add_argument('-to-csv',
+    parser.add_argument('--to-csv',
                           action='store_true', dest='toCsv',
                           help='Output stats as comma-separated values (CSV)')
-    parser.add_argument('-grafana',
+    parser.add_argument('--grafana',
                           action='store_true', dest='grafana',
                           help='Start a grafana web server')