Mercurial > projects > ldc
annotate tests/runtest @ 715:30b42a283c8e
Removed TypeOpaque from DMD.
Changed runtime functions taking opaque[] to void[].
Implemented proper type painting, to avoid "resizing" array casts in runtime calls that previously took opaque[].
Implemented dynamic arrays as first class types, this implements proper ABI for these types on x86.
Added dwarf region end after call to assert function, fixes some problems with llvm not allowing this to be missing.
Reverted change to WithStatement from rev [704] it breaks MiniD, mini/with2.d needs to be fixed some other way...
Fixed tango bug 1339 in runtime, problem with _adReverseChar on invalid UTF-8.
Disabled .bc generation in the compiler runtime part, genobj.d triggers some llvm bug when using debug info. the .o seems to work fine.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Wed, 22 Oct 2008 14:55:33 +0200 |
parents | 703d9b4505f9 |
children | 6f5e40205f2a |
rev | line source |
---|---|
637
29dc68c949b0
Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
parents:
385
diff
changeset
|
1 #!/bin/sh |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
2 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
3 # check for command line arguments |
235
c603041da866
[svn r251] fixed arguments checking in runtest script
ChristianK
parents:
217
diff
changeset
|
4 if [ -z "$1" ] ; then |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
5 echo "Usage: `basename $0` <test result file>" |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
6 exit |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
7 fi |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
8 TARGETFILE=$1 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
9 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
10 # check for dstress |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
11 if ! [ -d dstress ] ; then |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
12 echo "Testing requires DStress to be checked out into dstress/" |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
13 exit |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
14 fi |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
15 |
274
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
249
diff
changeset
|
16 BASEPATH=`pwd` |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
17 cd dstress |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
18 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
19 # remove excessive tests |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
20 sed -e 's/torture-//g' -i Makefile |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
21 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
22 # make sure only .d files in 'run' tests are run |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
23 sed -e 's/find run -type f |/find run -type f -name "*\\\\.d" |/' -i Makefile |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
24 sed -e 's/find norun -type f |/find norun -type f -name "*\\\\.d" |/' -i Makefile |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
25 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
26 # impose more conservative constraints (10s and 256 MB) |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
27 sed -e 's/crashRun 30 1000/crashRun 10 256/' -i dstress.c |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
28 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
29 echo |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
30 echo "Running new test and storing result in $TARGETFILE ..." |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
31 echo |
236
df1abfe27be6
[svn r252] added warnings about using an up to date runtime
ChristianK
parents:
235
diff
changeset
|
32 echo "Remember to make sure you have an up to date runtime!" |
df1abfe27be6
[svn r252] added warnings about using an up to date runtime
ChristianK
parents:
235
diff
changeset
|
33 echo |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
34 |
235
c603041da866
[svn r251] fixed arguments checking in runtest script
ChristianK
parents:
217
diff
changeset
|
35 if [ -z "$DMD" ] ; then |
663
6aaa3d3c1183
First part of rename to LDC.
Christian Kamm <kamm incasoftware de>
parents:
637
diff
changeset
|
36 echo "Testing with LDC. Set DMD environment variable to select compiler." |
6aaa3d3c1183
First part of rename to LDC.
Christian Kamm <kamm incasoftware de>
parents:
637
diff
changeset
|
37 DMD="ldc -I$BASEPATH/testincludes -L$BASEPATH/testincludes/libtangobos-partial.a" |
274
9f228c1e5311
[svn r295] Added phobos aliases to string, wstring, dstring and Error to the object.di used for testing.
ChristianK
parents:
249
diff
changeset
|
38 echo "Default is $DMD" |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
39 else |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
40 echo "Using compiler given by DMD environment variable: $DMD" |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
41 fi |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
42 |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
43 echo |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
44 echo "This will take a while, try 'tail -f $TARGETFILE' to follow progress." |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
45 echo "Note that aborting is tricky. Try killing the processes by the name of" |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
46 echo "run.sh, compile.sh, nocompile.sh and norun.sh as well as this one." |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
47 echo |
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
48 |
188
7949d3dd0341
[svn r204] Don't run complex dstress tests, they seem to be broken.
ChristianK
parents:
186
diff
changeset
|
49 DMD=$DMD make compile nocompile run norun > ../$TARGETFILE |
186
395223f9875e
[svn r202] added start of dstress-based test suite to tests/
ChristianK
parents:
diff
changeset
|
50 cd .. |
208
086e1aa99557
[svn r224] clean up temporaries after dstress has run
ChristianK
parents:
188
diff
changeset
|
51 |
086e1aa99557
[svn r224] clean up temporaries after dstress has run
ChristianK
parents:
188
diff
changeset
|
52 echo |
680
703d9b4505f9
Update dstress running script.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
53 echo "Cleanup... (removing all .o and .exe files)" |
208
086e1aa99557
[svn r224] clean up temporaries after dstress has run
ChristianK
parents:
188
diff
changeset
|
54 echo |
086e1aa99557
[svn r224] clean up temporaries after dstress has run
ChristianK
parents:
188
diff
changeset
|
55 |
680
703d9b4505f9
Update dstress running script.
Christian Kamm <kamm incasoftware de>
parents:
663
diff
changeset
|
56 find dstress -name "*\.o" -o -name "*\.exe" -delete |