aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorumarcor <unai.martinezcorral@ehu.eus>2021-06-19 15:52:54 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-06-19 21:33:20 +0200
commit512422696869fb5615f91cface74a634eb14ff54 (patch)
tree2e7874ad9ba92a88378f5d0c34b8e0647f1ce5ea /testsuite
parente72d21499659f1bb4b641b9a83698354eb170eef (diff)
downloadghdl-512422696869fb5615f91cface74a634eb14ff54.tar.gz
ghdl-512422696869fb5615f91cface74a634eb14ff54.tar.bz2
ghdl-512422696869fb5615f91cface74a634eb14ff54.zip
testsuite/pyunit: add AllVHDLSources.sh
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/pyunit/dom/AllVHDLSources.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/pyunit/dom/AllVHDLSources.sh b/testsuite/pyunit/dom/AllVHDLSources.sh
new file mode 100755
index 000000000..251b34163
--- /dev/null
+++ b/testsuite/pyunit/dom/AllVHDLSources.sh
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+cd $(dirname "$0")/../../..
+
+gstart () {
+ printf "\e[36m> $@\e[0m\n"
+}
+gend () {
+ printf "$@\n"
+}
+
+if [ -n "$CI" ]; then
+ gstart () {
+ printf '::group::'
+ printf "$@\n"
+ SECONDS=0
+ }
+
+ gend () {
+ duration=$SECONDS
+ echo '::endgroup::'
+ printf "$@\n"
+ }
+fi
+
+for item in $(find ./ -type f -name "*.vhdl"); do
+ gstart "$item"
+ ./pyGHDL/cli/DOM.py $item \
+ && gend '\e[32mpass\e[0m' \
+ || gend '\e[31mfail\e[0m'
+done