forked from tokenspice/tokenspice
-
Notifications
You must be signed in to change notification settings - Fork 3
/
help.py
executable file
·36 lines (28 loc) · 990 Bytes
/
help.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python
if __name__== '__main__':
#set help message
help = """
Usage: help
TOOLS:
=== Help ===
./help.py [[this file]]
=== Generate results and plot ===
./run_1.py [[Do 1 run. Input conf file. Output rundir w/ csv and dbs.]]
./plot_1.py [[Plot results from 1 run. Input csv. Output pngs.]]
./showstats.py [[Show performance statistics for a run]]
Example flow: see bottom
=== Running tests ===
pytest [[run all tests]]
pytest engine/ [[run all tests in engine/ directory]]
pytest tests/test_foo.py [[run a single pytest-based test file]]
pytest tests/test_foo.py::test_foobar [[run a single pytest-based test]]
=== Config files, with params to change ===
-System parameters: ~/tokenspice.conf
-Logging: ./logging.conf
== Example flow ==
rm -rf outdir_csv; ./run_1.py 10 outdir_csv 1>out.txt 2>&1 &
tail -f out.txt
rm -rf outdir_png; ./plot_1.py outdir_csv outdir_png
eog outdir_png
"""
print(help)