mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-04 16:44:08 +00:00
Update gen-tests-makefile.sh
Keep file extensions so that e.g. tribuf.ys and tribuf.sh don't try to output to the same log file.
This commit is contained in:
parent
8a68ae6023
commit
5b6b3d01bf
|
@ -17,20 +17,20 @@ generate_target() {
|
|||
generate_ys_test() {
|
||||
ys_file=$1
|
||||
yosys_args_=${2:-}
|
||||
generate_target "$ys_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${ys_file%.*}.err $yosys_args_ $ys_file && mv ${ys_file%.*}.err ${ys_file%.*}.log"
|
||||
generate_target "$ys_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${ys_file}.err $yosys_args_ $ys_file && mv ${ys_file}.err ${ys_file}.log"
|
||||
}
|
||||
|
||||
# $ generate_tcl_test tcl_file [yosys_args]
|
||||
generate_tcl_test() {
|
||||
tcl_file=$1
|
||||
yosys_args_=${2:-}
|
||||
generate_target "$tcl_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${tcl_file%.*}.err $yosys_args_ $tcl_file && mv ${tcl_file%.*}.err ${tcl_file%.*}.log"
|
||||
generate_target "$tcl_file" "\"$YOSYS_BASEDIR/yosys\" -ql ${tcl_file}.err $yosys_args_ $tcl_file && mv ${tcl_file}.err ${tcl_file}.log"
|
||||
}
|
||||
|
||||
# $ generate_bash_test bash_file
|
||||
generate_bash_test() {
|
||||
bash_file=$1
|
||||
generate_target "$bash_file" "bash -v $bash_file >${bash_file%.*}.err 2>&1 && mv ${bash_file%.*}.err ${bash_file%.*}.log"
|
||||
generate_target "$bash_file" "bash -v $bash_file >${bash_file}.err 2>&1 && mv ${bash_file}.err ${bash_file}.log"
|
||||
}
|
||||
|
||||
# $ generate_tests [-y|--yosys-scripts] [-s|--prove-sv] [-b|--bash] [-a|--yosys-args yosys_args]
|
||||
|
|
Loading…
Reference in a new issue