File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export IMEX_ENABLE_LARGE_REG_FILE=1
61
61
62
62
TEST_DIR=" Generated_GEMM"
63
63
mkdir -p $REPORT_DIR
64
+ RESULT_CMD=0
64
65
for CODE_VERSION in baseline prefetch
65
66
do
66
67
TEST_REPORT=$CODE_VERSION " .txt"
69
70
echo $' \n Testing code version:' $CODE_VERSION
70
71
python3 xetile_testgen.py --code_version=$CODE_VERSION --validate=$VALIDATE --print_debug=0 --test_csv=$TEST_CSV --default_tests=$GEN_DEFAULT_CASES
71
72
CUR_TEST_DIR=$TEST_DIR /$CODE_VERSION
73
+ set -o pipefail
72
74
for TEST_CASE in $CUR_TEST_DIR /*
73
75
do
74
76
if [ -f " $TEST_CASE " ]
81
83
if [ $VERBOSE -eq 1 ]; then
82
84
echo $CMD | tee -a $REPORT_PATH
83
85
fi
84
- eval $CMD | & tee -a $REPORT_PATH
86
+ $CMD | & tee -a $REPORT_PATH
87
+ tmp_res=$?
88
+ if [ $tmp_res -ne 0 ]; then
89
+ RESULT_CMD=1
90
+ fi
85
91
echo " " | tee -a $REPORT_PATH # new line
86
92
fi
87
93
done
@@ -91,3 +97,4 @@ unset IMEX_ENABLE_LARGE_REG_FILE
91
97
unset IMEX_ENABLE_PROFILING
92
98
93
99
python3 report_to_excel.py --reports_dir=$REPORT_DIR
100
+ exit $RESULT_CMD
You can’t perform that action at this time.
0 commit comments