summaryrefslogtreecommitdiff
path: root/tests/tools
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-06 12:10:57 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-06 12:10:57 +0200
commit76f8128123a546c06dcb4624e8c8ed4255a030c5 (patch)
tree2c80a049c202d72b31356bd2c1b9dfaeb4d05c75 /tests/tools
parent34af6a130370671439da19ef55c2c45a35fd3ad0 (diff)
Fixed autotest for non-basename arguments
Diffstat (limited to 'tests/tools')
-rwxr-xr-xtests/tools/autotest.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tools/autotest.sh b/tests/tools/autotest.sh
index 5003280e..102c021e 100755
--- a/tests/tools/autotest.sh
+++ b/tests/tools/autotest.sh
@@ -105,6 +105,9 @@ do
body() {
cd ${bn}.out
+ fn=$(basename $fn)
+ bn=$(basename $bn)
+
cp ../$fn $fn
if [ ! -f ../${bn}_tb.v ]; then
"$toolsdir"/../../yosys -b "test_autotb $autotb_opts" -o ${bn}_tb.v $fn