File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 43
43
fi
44
44
45
45
# Run tests
46
- cd " $RESDIR /$TARGET " # change dir for ease of use
47
46
for i in $( ls " $TESTDIR /$SUITE " * .xpl) ; do
48
47
test_name=" $( basename $i ) "
49
48
test_name=" ${test_name% .xpl} "
50
49
51
50
echo " Running $test_name .."
52
- " $SRCDIR " /xpl --target $TARGET -o " $test_name .$TARGET " $i
51
+ " $SRCDIR " /xpl --target $TARGET -o " $RESDIR / $TARGET / $ test_name .$TARGET " $i
53
52
54
53
if [ $TARGET = " xml" ]; then
55
- java -cp " $SRCDIR " /xml2dot.jar xml2dot.xml2dot " $test_name .xml"
54
+ java -cp " $SRCDIR " /xml2dot.jar xml2dot.xml2dot " $RESDIR /xml/ $ test_name .xml"
56
55
ps aux | grep dotty | head -n1 | kill $( awk ' {print $2}' )
57
- dot -Tpng -o " img/$test_name .png" " $test_name .xml.dot"
56
+ dot -Tpng -o " $RESDIR /xml/ img/$test_name .png" " $RESDIR /xml/ $test_name .xml.dot"
58
57
else
59
- yasm -felf32 -o " $test_name .o" " $test_name .asm"
60
- ld -melf_i386 -o " $test_name " " $test_name .o" -lrts
61
- chmod +x " $test_name "
62
- ./ $test_name > " out/$test_name .out"
63
- rm -f " $test_name "
58
+ yasm -felf32 -o " $RESDIR /asm/ $ test_name .o" " $RESDIR /asm/ $test_name .asm"
59
+ ld -melf_i386 -o " $RESDIR /asm/ $ test_name" " $RESDIR /asm/ $test_name .o" -lrts
60
+ chmod +x " $RESDIR /asm/ $ test_name"
61
+ " $RESDIR /asm/ " $test_name > " $RESDIR /asm/ out/$test_name .out"
62
+ rm -f " $RESDIR /asm/ $ test_name"
64
63
fi
65
64
done
66
65
67
66
if [ $TARGET = " xml" ]; then
68
- rm -rf * .xml.dot
67
+ rm -rf " $RESDIR /xml/ " * .xml.dot
69
68
else
70
- rm -rf * .o
69
+ rm -rf " $RESDIR /asm/ " * .o
71
70
fi
72
71
You can’t perform that action at this time.
0 commit comments