Fixed autotest for non-basename arguments
authorClifford Wolf <clifford@clifford.at>
Sat, 6 Sep 2014 10:10:57 +0000 (12:10 +0200)
committerClifford Wolf <clifford@clifford.at>
Sat, 6 Sep 2014 10:10:57 +0000 (12:10 +0200)
tests/tools/autotest.sh

index 5003280ef9082a7f1d9694115de2b5bdc8185375..102c021e0e5090698db60cc0214fd21067132f10 100755 (executable)
@@ -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