File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2+
3+ set -eoux pipefail
4+
25DESIGN_NAME=${1:- gcd}
36PLATFORM=${2:- nangate45}
7+ # unittest does not allow dashes on test names
8+ PLATFORM_WITHOUT_DASHES=" ${PLATFORM// -/ } "
49
510# run the commands in ORFS root dir
611echo " [INFO FLW-0029] Installing dependencies in virtual environment."
@@ -9,15 +14,15 @@ cd ../
914. ./tools/AutoTuner/setup.sh
1015
1116echo " Running Autotuner smoke tune test"
12- python3 -m unittest tools.AutoTuner.test.smoke_test_tune.${PLATFORM } TuneSmokeTest.test_tune
17+ python3 -m unittest tools.AutoTuner.test.smoke_test_tune.${PLATFORM_WITHOUT_DASHES } TuneSmokeTest.test_tune
1318
1419echo " Running Autotuner smoke sweep test"
15- python3 -m unittest tools.AutoTuner.test.smoke_test_sweep.${PLATFORM } SweepSmokeTest.test_sweep
20+ python3 -m unittest tools.AutoTuner.test.smoke_test_sweep.${PLATFORM_WITHOUT_DASHES } SweepSmokeTest.test_sweep
1621
1722echo " Running Autotuner smoke tests for --sample and --iteration."
18- python3 -m unittest tools.AutoTuner.test.smoke_test_sample_iteration.${PLATFORM } SampleIterationSmokeTest.test_sample_iteration
23+ python3 -m unittest tools.AutoTuner.test.smoke_test_sample_iteration.${PLATFORM_WITHOUT_DASHES } SampleIterationSmokeTest.test_sample_iteration
1924
20- if [ " $PLATFORM " == " asap7" ] && [ " $DESIGN_NAME " == " gcd" ]; then
25+ if [ " $PLATFORM_WITHOUT_DASHES " == " asap7" ] && [ " $DESIGN_NAME " == " gcd" ]; then
2126 echo " Running Autotuner ref file test (only once)"
2227 python3 -m unittest tools.AutoTuner.test.ref_file_check.RefFileCheck.test_files
2328
You can’t perform that action at this time.
0 commit comments