Changeset 739
- Timestamp:
- 08/07/07 15:45:49 (1 year ago)
- Files:
-
- other/dsss-testing-framework/plats.sh (added)
- other/dsss-testing-framework/results.sh (modified) (5 diffs)
- other/dsss-testing-framework/test.sh (modified) (5 diffs)
- other/dsss-testing-framework/untango.sh (modified) (1 diff)
- other/dsss-testing-framework/update.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
other/dsss-testing-framework/results.sh
r680 r739 1 1 #!/bin/bash 2 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 2 . plats.sh 3 3 rm -rf logs-* 4 4 … … 6 6 echo '<h1>DSSS test results</h1>' 7 7 echo 'NOTE: Tango tests for Windows do not yet work.<br>' 8 echo '<span style="background-color: yellow">HALF-PASS</span> means the library built, but either cannot be compiled into an application or unit tests failed.<br>' 9 echo 'NOTE: The half-pass feature is being tested. Many half-passes are false negatives.<br>' 8 10 echo 'Tests run on '`date --iso`'<br>' 9 11 … … 12 14 echo '<hr><h1>'$lib'</h1>' 13 15 14 echo '<table ><tr><td></td>'16 echo '<table border=1><tr><td></td>' 15 17 for i in $PLATS 16 18 do … … 20 22 21 23 22 for i in `ls /opt/dsss-test/ i586-pc-linux-gnu/tests-$lib | grep -v LIST`24 for i in `ls /opt/dsss-test/$PRIMARY_PLAT/tests-$lib | grep -v LIST` 23 25 do 24 26 mkdir -p logs-$lib/$i … … 32 34 if [ "`grep $i /opt/dsss-test/$j/tests-$lib/LIST`" ] 33 35 then 34 echo -n 'green'\''>SUCCESS' 36 if [ "`grep $i /opt/dsss-test/$j/tests-$lib/UNITFAILS`" ] 37 then 38 echo -n 'yellow'\''><a href='\''logs-'$lib'/'$i'/'$j'.txt'\''>HALF-PASS</a>' 39 else 40 echo -n 'green'\''>SUCCESS' 41 fi 35 42 else 36 43 echo -n 'red'\''><a href='\''logs-'$lib'/'$i'/'$j'.txt'\''>FAILURE</a>' other/dsss-testing-framework/test.sh
r677 r739 2 2 ORIGPATH="$PATH" 3 3 4 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 4 . plats.sh 5 5 6 6 # Get the list of packages 7 7 PKGS="" 8 for i in `/opt/dsss-test/ i586-pc-linux-gnu/bin/dsss net --source=http://svn.dsource.org/projects/dsss/sources list | sed 's/ /_/g'`8 for i in `/opt/dsss-test/$PRIMARY_PLAT/bin/dsss net --source=http://svn.dsource.org/projects/dsss/sources list | sed 's/ /_/g'` 9 9 do 10 10 if [ "$i" != "Synchronizing..." -a \ … … 22 22 mkdir -p pkgs 23 23 rm -f pkgs/* 24 if [ 1 = 0 ] ; then 24 cd pkgs || exit 1 25 25 for i in $PKGS 26 26 do 27 /opt/dsss-test/ i586-pc-linux-gnu/bin/dsss net fetch $i27 /opt/dsss-test/$PRIMARY_PLAT/bin/dsss net fetch $i 28 28 done 29 /opt/dsss-test/ i586-pc-linux-gnu/bin/dsss net fetch tango29 /opt/dsss-test/$PRIMARY_PLAT/bin/dsss net fetch tango 30 30 31 31 # Finally, make a source list to use the local copies 32 cp -f /opt/dsss-test/ i586-pc-linux-gnu/share/dsss/sources/* .32 cp -f /opt/dsss-test/$PRIMARY_PLAT/share/dsss/sources/* . 33 33 echo > source.list 34 34 for i in $PKGS … … 61 61 rm -rf /opt/dsss-test/$i/tests-$lib 62 62 mkdir -p /opt/dsss-test/$i/tests-$lib 63 touch /opt/dsss-test/$i/tests-$lib/UNITFAILS 63 64 64 65 # Uninstall old garbage … … 71 72 done 72 73 74 # Make the build directory 75 mkdir -p build || exit 1 76 cd build || exit 1 77 rm -rf * || exit 1 78 73 79 # For each package 74 80 for j in $PKGS … … 76 82 echo $i $j 77 83 rm -rf /tmp/DSSS_* 78 dsss net --source=$SOURCE assert --doc $j -v >& /opt/dsss-test/$i/tests-$lib/$j 84 85 # Get it 86 dsss net --source=$SOURCE fetch $j >& /dev/null || exit 1 87 tar zxf $j.tar.gz >& /dev/null || exit 1 88 dsss net --source=$SOURCE deps >& /dev/null 89 90 # Build it 91 dsss build --doc -v >& /opt/dsss-test/$i/tests-$lib/$j && 92 dsss install 93 94 # Test it 95 if [ "`echo $NATIVE_PLATS | grep $i`" ] 96 then 97 ( dsss build --test -v >> /opt/dsss-test/$i/tests-$lib/$j 2>&1 || 98 echo $j >> /opt/dsss-test/$i/tests-$lib/UNITFAILS ) & 99 sleep 60 & 100 wait 101 kill %1 %2 102 fi 103 104 # Clean up 105 rm -rf * 79 106 done 107 108 # Leave the build directory 109 cd .. || exit 1 110 rm -rf build || exit 1 80 111 81 112 dsss installed >& /opt/dsss-test/$i/tests-$lib/LIST other/dsss-testing-framework/untango.sh
r677 r739 10 10 cp -f tango $i 11 11 done 12 13 # Unfortunately, DMD can't be untango'd right now, so just reinstall it 14 PATH="/opt/dsss-test/i586-pc-linux-gnu-dmd/bin:$PATH" dsss net --source=http://svn.dsource.org/projects/dsss/sources install dmd other/dsss-testing-framework/update.sh
r677 r739 1 1 #!/bin/bash 2 export PATH="/opt/dsss-test/i586-pc-linux-gnu/bin:$PATH" 2 . plats.sh 3 4 export PATH="/opt/dsss-test/$PRIMARY_PLAT/bin:$PATH" 3 5 4 6 mkdir /tmp/dsss-update.$$ || exit 1 … … 8 10 dsss build || exit 1 9 11 10 for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd12 for i in $PLATS 11 13 do 12 14 cp -f /opt/dsss-test/$i/etc/rebuild/default .
