summaryrefslogtreecommitdiff
path: root/tests/various/run-test.sh
blob: d49553edef6272961e1cd154297f6468ce53eb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash
set -e
for x in *.ys; do
	echo "Running $x.."
	../../yosys -ql ${x%.ys}.log $x
done
# Run any .sh files in this directory (with the exception of the file - run-test.sh
shell_tests=$(echo *.sh | sed -e 's/run-test.sh//')
if [ "$shell_tests" ]; then
    for s in $shell_tests; do
        echo "Running $s.."
        bash $s
    done
fi