@@ -7,6 +7,7 @@ THIS_DIR=$(dirname "${THIS_SCRIPT_PATH}")
7
7
VTR_DIR=$( readlink -f " ${THIS_DIR} /.." )
8
8
ODIN_DIR=" ${VTR_DIR} /ODIN_II"
9
9
REGRESSION_DIR=" ${THIS_DIR} /regression_test"
10
+ REG_LIB=" ${REGRESSION_DIR} /.library"
10
11
11
12
# #############################################
12
13
# grab the input args
@@ -15,17 +16,20 @@ INPUT="$*"
15
16
# disable stdin
16
17
exec 0< & -
17
18
19
+ source " ${REG_LIB} /handle_exit.sh"
20
+ source " ${REG_LIB} /helper.sh"
21
+
18
22
BENCHMARK_DIR=" ${REGRESSION_DIR} /benchmark"
19
23
20
24
VTR_REG_DIR=" ${VTR_DIR} /vtr_flow/tasks/regression_tests"
21
25
22
- SUITE_DIR=" ${BENCHMARK_DIR} /suite"
26
+ SUITE_DIR=" ${BENCHMARK_DIR} /suite/"
27
+ BLIF_SUITE_DIR=" ${SUITE_DIR} /_BLIF"
28
+ RELAPATH_BLIF_SUITE_DIR=$( realapath_from " ${BLIF_SUITE_DIR} " " ${PWD} " )
23
29
24
30
TASK_DIR=" ${BENCHMARK_DIR} /task"
25
- BLIF_TASK_DIR=" ${BENCHMARK_DIR} /task/_BLIF"
26
-
27
- RTL_REG_PREFIX=" rtl_reg"
28
-
31
+ BLIF_TASK_DIR=" ${TASK_DIR} /_BLIF"
32
+ RELAPATH_BLIF_TASK_DIR=$( realapath_from " ${BLIF_TASK_DIR} " " ${PWD} " )
29
33
30
34
31
35
# COLORS
@@ -123,24 +127,19 @@ function help() {
123
127
124
128
OPTIONS
125
129
-h|--help $( _prt_cur_arg off) print this
130
+ -s|--show_failure $( _prt_cur_arg off) show failures in yosys blif generating process
126
131
-t|--test < test name > A path to a single test file
127
132
-T|--task Test name is either a absolute or relative path to
128
133
a directory containing a task.ycfg, task_list.conf
129
134
130
135
AVAILABLE_TASK:
131
136
"
132
137
133
- printf " \n\t\t%s\n" " ${RELAPATH_SUITE_DIR} /"
134
- for bm in " ${SUITE_DIR} " /* ; do printf " \t\t\t%s\n" " $( basename " ${bm} " ) " ; done
135
-
136
- printf " \n\t\t%s\n" " ${RELAPATH_TASK_DIR} /"
137
- for bm in " ${TASK_DIR} " /* ; do printf " \t\t\t%s\n" " $( basename " ${bm} " ) " ; done
138
-
139
- printf " \n\t\t%s\n" " ${VTR_REG_PREFIX} "
140
- for bm in " ${VTR_REG_DIR} /${VTR_REG_PREFIX} " * ; do printf " \t\t\t%s\n" " $( basename " ${bm} " | sed " s+${VTR_REG_PREFIX} ++g" ) " ; done
141
-
142
- printf " \n\t\t%s\n" " ${RTL_REG_PREFIX} "
138
+ printf " \n\t\t%s\n" " ${RELAPATH_BLIF_SUITE_DIR} /"
139
+ for bm in " ${BLIF_SUITE_DIR} " /* ; do printf " \t\t\t%s\n" " $( basename " ${bm} " ) " ; done
143
140
141
+ printf " \n\t\t%s\n" " ${RELAPATH_BLIF_TASK_DIR} /"
142
+ for bm in " ${BLIF_TASK_DIR} " /* ; do printf " \t\t\t%s\n" " $( basename " ${bm} " ) " ; done
144
143
}
145
144
146
145
# to check whether failure path exist or not
0 commit comments