comparison tests/runtest @ 680:703d9b4505f9

Update dstress running script.
author Christian Kamm <kamm incasoftware de>
date Sat, 11 Oct 2008 21:46:19 +0200
parents 6aaa3d3c1183
children 6f5e40205f2a
comparison
equal deleted inserted replaced
679:dc078dd8d2e1 680:703d9b4505f9
20 sed -e 's/torture-//g' -i Makefile 20 sed -e 's/torture-//g' -i Makefile
21 21
22 # make sure only .d files in 'run' tests are run 22 # make sure only .d files in 'run' tests are run
23 sed -e 's/find run -type f |/find run -type f -name "*\\\\.d" |/' -i Makefile 23 sed -e 's/find run -type f |/find run -type f -name "*\\\\.d" |/' -i Makefile
24 sed -e 's/find norun -type f |/find norun -type f -name "*\\\\.d" |/' -i Makefile 24 sed -e 's/find norun -type f |/find norun -type f -name "*\\\\.d" |/' -i Makefile
25
26 # make sure linker-generated bc files are deleted
27 sed -e 's/find run -type f -name "\*\\\\\.exe" |/find run -type f -name "*\\\\.exe" -o -name "*\\\\.bc" |/' -i Makefile
28 sed -e 's/find norun -type f -name "\*\\\\\.exe" |/find norun -type f -name "*\\\\.exe" -o -name "*\\\\.bc" |/' -i Makefile
29 25
30 # impose more conservative constraints (10s and 256 MB) 26 # impose more conservative constraints (10s and 256 MB)
31 sed -e 's/crashRun 30 1000/crashRun 10 256/' -i dstress.c 27 sed -e 's/crashRun 30 1000/crashRun 10 256/' -i dstress.c
32 28
33 echo 29 echo
52 48
53 DMD=$DMD make compile nocompile run norun > ../$TARGETFILE 49 DMD=$DMD make compile nocompile run norun > ../$TARGETFILE
54 cd .. 50 cd ..
55 51
56 echo 52 echo
57 echo "Cleanup... (removing all .bc and .exe files)" 53 echo "Cleanup... (removing all .o and .exe files)"
58 echo 54 echo
59 55
60 find dstress -name "*\.bc" -o -name "*\.exe" -exec rm {} \; 56 find dstress -name "*\.o" -o -name "*\.exe" -delete