Changeset 677
- Timestamp:
- 07/20/07 15:49:20 (1 year ago)
- Files:
-
- other/dsss-testing-framework/README (added)
- other/dsss-testing-framework/results.sh (modified) (3 diffs)
- other/dsss-testing-framework/tango (added)
- other/dsss-testing-framework/test.sh (modified) (5 diffs)
- other/dsss-testing-framework/untango.sh (added)
- other/dsss-testing-framework/update.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
other/dsss-testing-framework/results.sh
r675 r677 1 1 #!/bin/bash 2 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd" # powerpc-860-linux-gnu i686-mingw32" 3 rm -rf logs 4 mkdir logs 2 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 3 rm -rf logs-* 5 4 6 5 echo '<HTML><head><title>DSSS test results</title></head><body>' 7 echo ' All tests are run with Phobos. Tango-requiring tools are not yet tested.<br>'6 echo 'NOTE: Tango tests for Windows do not yet work.' 8 7 echo 'Tests run on '`date --iso`'<br>' 8 9 for lib in phobos tango 10 do 11 echo '<hr><h1>'$lib'</h1>' 9 12 10 13 echo '<table><tr><td></td>' … … 15 18 echo '</tr>' 16 19 17 for i in `ls /opt/dsss-test/i586-pc-linux-gnu/tests | grep -v LIST` 20 21 for i in `ls /opt/dsss-test/i586-pc-linux-gnu/tests-$lib | grep -v LIST` 18 22 do 19 mkdir -p logs /$i23 mkdir -p logs-$lib/$i 20 24 21 25 echo '<tr><th>'$i'</th>' 22 26 for j in $PLATS 23 27 do 24 cp -f /opt/dsss-test/$j/tests /$i logs/$i/$j.txt28 cp -f /opt/dsss-test/$j/tests-$lib/$i logs-$lib/$i/$j.txt 25 29 26 30 echo -n '<td bgcolor='\' 27 if [ "`grep $i /opt/dsss-test/$j/tests /LIST`" ]31 if [ "`grep $i /opt/dsss-test/$j/tests-$lib/LIST`" ] 28 32 then 29 33 echo -n 'green'\''>SUCCESS' … … 36 40 done 37 41 38 echo '</table> </body></HTML>'42 echo '</table>' 39 43 44 done 45 46 echo '</body></HTML>' 47 other/dsss-testing-framework/test.sh
r675 r677 1 1 #!/bin/bash 2 2 ORIGPATH="$PATH" 3 4 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 3 5 4 6 # Get the list of packages … … 19 21 # Then download them 20 22 mkdir -p pkgs 21 #rm -f pkgs/* 22 cd pkgs || exit 1 23 rm -f pkgs/* 23 24 if [ 1 = 0 ] ; then 24 25 for i in $PKGS … … 26 27 /opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch $i 27 28 done 28 fi 29 /opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch tango 29 30 30 31 # Finally, make a source list to use the local copies … … 35 36 echo $i' tgz file://'`pwd`'/'$i'.tar.gz' >> source.list 36 37 done 38 echo 'tango tgz file://'`pwd`'/tango.tar.gz' >> source.list 37 39 38 40 cd .. || exit 1 … … 40 42 SOURCE='file://'`pwd`'/pkgs' 41 43 42 # For each configuration ... 43 for i in /opt/dsss-test/i586-pc-linux-gnu /opt/dsss-test/i586-pc-linux-gnu-dmd #/opt/dsss-test/powerpc-860-linux-gnu /opt/dsss-test/i686-mingw32 44 runtests() { 45 lib="$1" 46 47 # For each configuration ... 48 for i in $PLATS 49 do 50 ORIGPATH="$PATH" 51 export PATH="/opt/dsss-test/$i/bin:$PATH" 52 53 # Set up rebuild/default 54 if [ "$lib" = "phobos" ] 55 then 56 perl -pe 's/-tango//g' -i /opt/dsss-test/$i/etc/rebuild/default 57 else 58 perl -pe 's/profile=(.*)$/profile=\1-tango/ ; s/-tango-tango/-tango/g' -i /opt/dsss-test/$i/etc/rebuild/default 59 fi 60 61 rm -rf /opt/dsss-test/$i/tests-$lib 62 mkdir -p /opt/dsss-test/$i/tests-$lib 63 64 # Uninstall old garbage 65 for j in `dsss installed` 66 do 67 if [ "$j" != "dsss" -a "$j" != "tango" ] 68 then 69 dsss uninstall $j 70 fi 71 done 72 73 # For each package 74 for j in $PKGS 75 do 76 echo $i $j 77 rm -rf /tmp/DSSS_* 78 dsss net --source=$SOURCE assert --doc $j -v >& /opt/dsss-test/$i/tests-$lib/$j 79 done 80 81 dsss installed >& /opt/dsss-test/$i/tests-$lib/LIST 82 83 # Copy in the docs from this build 84 yes n | cp -ai /opt/dsss-test/$i/share/doc docs 85 86 export PATH="$ORIGPATH" 87 done 88 } 89 90 # Prepare to copy in docs 91 rm -rf docs 92 93 ./untango.sh 94 runtests phobos 95 for i in $PLATS 44 96 do 45 export PATH="$i/bin:$PATH" 97 echo $i tango 98 yes | PATH="/opt/dsss-test/$i/bin:$PATH" dsss net --source=$SOURCE install tango 99 done 100 runtests tango 46 101 47 rm -rf $i/tests 48 mkdir -p $i/tests 49 50 # Uninstall old garbage 51 for j in `dsss installed` 52 do 53 if [ "$j" != "dsss" ] 54 then 55 dsss uninstall $j 56 fi 57 done 58 59 # For each package 60 for j in $PKGS 61 do 62 echo $i $j 63 rm -rf /tmp/DSSS_* 64 dsss net --source=$SOURCE assert --doc $j -v >& $i/tests/$j 65 done 66 67 dsss installed >& $i/tests/LIST 68 done 69 70 # Copy in docs 71 rm -rf docs 72 cp -af /opt/dsss-test/i586-pc-linux-gnu/share/doc docs 73 74 # And set up candydoc links 102 # Set up candydoc links 75 103 cd docs 76 104 cp -af dsss/sss/candydoc . other/dsss-testing-framework/update.sh
r675 r677 8 8 dsss build || exit 1 9 9 10 for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd 10 for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd 11 11 do 12 12 cp -f /opt/dsss-test/$i/etc/rebuild/default .
