forked from OpenGATE/GateBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreateReference.py
More file actions
executable file
·21 lines (17 loc) · 860 Bytes
/
createReference.py
File metadata and controls
executable file
·21 lines (17 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
import click
from runBenchmark import *
# -----------------------------------------------------------------------------
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.command(context_settings=CONTEXT_SETTINGS)
@click.option('-t', '--test', default="all", help="Name of the test, if all run all benchmarks")
@click.option('-r', '--reference', default=None, help="Create the reference for the tests for the version of Gate")
def runTestsReference_click(test, reference, **kwargs):
'''
Run the benchmarks available in the current folder and create the reference for the release of Gate available in the PATH
For developpers only
'''
runTests(test, reference)
# -----------------------------------------------------------------------------
if __name__ == '__main__':
runTestsReference_click()