diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-28 23:55:56 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-28 23:55:56 +0100 |
commit | 3e6c7275d2c48e4aa56a6dc1cec536250c1e95fd (patch) | |
tree | bb5e06760c6757a2697df7e6efb88bba5821f7c1 /testsuite/pyunit | |
parent | d5b65813b36bf0e179d514ebd872a8b4f5cc79e7 (diff) | |
parent | 262c531cd39412ee3ea1e019f102b9cbfc698da0 (diff) | |
download | ghdl-3e6c7275d2c48e4aa56a6dc1cec536250c1e95fd.tar.gz ghdl-3e6c7275d2c48e4aa56a6dc1cec536250c1e95fd.tar.bz2 ghdl-3e6c7275d2c48e4aa56a6dc1cec536250c1e95fd.zip |
Merge remote-tracking branch 'github-umarcor/py/GHDL' into paebbels/pyGHDL
Diffstat (limited to 'testsuite/pyunit')
-rwxr-xr-x | testsuite/pyunit/testsuite.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/testsuite/pyunit/testsuite.sh b/testsuite/pyunit/testsuite.sh new file mode 100755 index 000000000..7eac028ca --- /dev/null +++ b/testsuite/pyunit/testsuite.sh @@ -0,0 +1,57 @@ +#! /bin/sh + +# Driver for a testsuite. + +set -e + +# This is the only place where test dirs are specified. Do not duplicate this +# line +#dirs="*[0-9]" +# +#failures="" +#full=n +# +#for opt; do +# case "$opt" in +# -k | --keep-going) full=y ;; +# --dir=*) dirs=`echo $opt | sed -e 's/--dir=//'` ;; +# --skip=*) d=`echo $opt | sed -e 's/--skip=//'` +# dirs=`echo "" $dirs | sed -e "s/ $d//"` ;; +# --start-at=*) d=`echo $opt | sed -e 's/--start-at=//'` +# dirs=`echo "" $dirs | sed -e "s/^.* $d//"` +# dirs="$d $dirs" ;; +# --list-tests) echo $dirs; exit 0;; +# *) echo "Unknown option $opt" +# exit 2 +# ;; +# esac +#done +# +#singlerun() { +# echo "" +# echo "dir $1:" +# cd $1 +# if ! ./testsuite.sh; then +# echo "#################################################################" +# echo "######### FAILURE: $1" +# echo "#################################################################" +# if [ $2 = "y" ]; then +# failures="$failures $1" +# else +# exit 1; +# fi +# fi +# cd .. +#} +# +#for i in $dirs; do singlerun $i $full; done +# +#if [ x"$failures" = x"" ]; then +# echo "tests are successful" && exit 0 +#else +# echo "test failed ($failures)" && exit 1 +#fi + +cd $(dirname "$0")/.. + +python3 -m unittest pyunit |