dest="benchmarkacl_on",
default=False,
help="(default=off) run benchmark-acl")
+ parser.add_option(
+ "--benchmark_op",
+ action="store_true",
+ dest="benchmarkop_on",
+ default=False,
+ help="(default=off) run benchmark per operation")
# profile
parser.add_option(
dest="ldlibrarypath",
help=
"(default=ARTIFACT_PATH/Product/out/lib) path that you want to include libraries")
+ parser.add_option(
+ "--frameworktest_list_file",
+ action="store",
+ type="string",
+ dest="frameworktest_list_file",
+ help=
+ "(default=ARTIFACT_PATH/tools/test_driver/pureacl_frameworktest_list.txt) filepath of model list for test"
+ )
# env
parser.add_option(
def run_unittest(options):
- # FIXME: the place where run_unittest.sh is
- cmd = "{mypath}/../run_unittest.sh \
+ cmd = "{artifactpath}/tools/test_driver/run_unittest.sh \
--reportdir={artifactpath}/report \
--unittestdir={unittestdir}".format(
- mypath=mypath, artifactpath=options.artifactpath, unittestdir=options.unittestdir)
+ artifactpath=options.artifactpath, unittestdir=options.unittestdir)
ret = os.system(cmd)
# TODO: handle return value
print("Cannot find {driverbin}".format(driverbin=options.framework_driverbin))
os._exit(1)
- # FIXME: the place where run_frameworktest.sh is
- cmd = "{mypath}/../run_frameworktest.sh \
+ cmd = "{artifactpath}/tools/test_driver/run_frameworktest.sh \
--runtestsh={runtestsh} \
--driverbin={driverbin} \
--reportdir={artifactpath}/report \
--tapname=framework_test.tap \
--logname=framework_test.log \
--testname='Frameworktest'".format(
- mypath=mypath,
runtestsh=options.runtestsh,
driverbin=options.framework_driverbin,
artifactpath=options.artifactpath)
driverbin=options.verification_driverbin))
os._exit(1)
- # FIXME: the place where run_frameworktest.sh is
- cmd = "{mypath}/../run_frameworktest.sh \
+ cmd = "{artifactpath}/tools/test_driver/run_frameworktest.sh \
--runtestsh={runtestsh} \
--driverbin={driverbin} \
--reportdir={artifactpath}/report \
--tapname=verification_test.tap \
--logname=verification_test.log \
--testname='Verification'".format(
- mypath=mypath,
runtestsh=options.runtestsh,
driverbin=options.verification_driverbin,
artifactpath=options.artifactpath)
print("Cannot find {driverbin}".format(driverbin=options.benchmark_driverbin))
os._exit(1)
- # FIXME: the place where run_benchmark.sh is
- cmd = "{mypath}/../run_benchmark.sh \
+ cmd = "{artifactpath}/tools/test_driver/run_benchmark.sh \
--runtestsh={runtestsh} \
--driverbin={driverbin} \
--reportdir={artifactpath}/report/benchmark".format(
- mypath=mypath,
runtestsh=options.runtestsh,
driverbin=options.benchmark_driverbin,
artifactpath=options.artifactpath)
def run_benchmarkacl(options):
- # FIXME: the place where run_benchmark_acl.sh is
- cmd = "{mypath}/../run_benchmark_acl.sh \
+ cmd = "{artifactpath}/tools/test_driver/run_benchmark_acl.sh \
--reportdir={artifactpath}/report/benchmark \
--bindir={artifactpath}/Product/out/bin".format(
artifactpath=options.artifactpath)