Changeset 739

Show
Ignore:
Timestamp:
08/07/07 15:45:49 (1 year ago)
Author:
Gregor
Message:

Many, MANY fixes and updates.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • other/dsss-testing-framework/results.sh

    r680 r739  
    11#!/bin/bash 
    2 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 
     2. plats.sh 
    33rm -rf logs-* 
    44 
     
    66echo '<h1>DSSS test results</h1>' 
    77echo 'NOTE: Tango tests for Windows do not yet work.<br>' 
     8echo '<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>' 
     9echo 'NOTE: The half-pass feature is being tested. Many half-passes are false negatives.<br>' 
    810echo 'Tests run on '`date --iso`'<br>' 
    911 
     
    1214    echo '<hr><h1>'$lib'</h1>' 
    1315 
    14 echo '<table><tr><td></td>' 
     16echo '<table border=1><tr><td></td>' 
    1517for i in $PLATS 
    1618do 
     
    2022 
    2123 
    22 for i in `ls /opt/dsss-test/i586-pc-linux-gnu/tests-$lib | grep -v LIST` 
     24for i in `ls /opt/dsss-test/$PRIMARY_PLAT/tests-$lib | grep -v LIST` 
    2325do 
    2426    mkdir -p logs-$lib/$i 
     
    3234        if [ "`grep $i /opt/dsss-test/$j/tests-$lib/LIST`" ] 
    3335        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 
    3542        else 
    3643            echo -n 'red'\''><a href='\''logs-'$lib'/'$i'/'$j'.txt'\''>FAILURE</a>' 
  • other/dsss-testing-framework/test.sh

    r677 r739  
    22ORIGPATH="$PATH" 
    33 
    4 PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 
     4. plats.sh 
    55 
    66# Get the list of packages 
    77PKGS="" 
    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'` 
     8for i in `/opt/dsss-test/$PRIMARY_PLAT/bin/dsss net --source=http://svn.dsource.org/projects/dsss/sources list | sed 's/ /_/g'` 
    99do 
    1010    if [ "$i" != "Synchronizing..." -a \ 
     
    2222mkdir -p pkgs 
    2323rm -f pkgs/* 
    24 if [ 1 = 0 ] ; then 
     24cd pkgs || exit 1 
    2525for i in $PKGS 
    2626do 
    27     /opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch $i 
     27    /opt/dsss-test/$PRIMARY_PLAT/bin/dsss net fetch $i 
    2828done 
    29 /opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch tango 
     29/opt/dsss-test/$PRIMARY_PLAT/bin/dsss net fetch tango 
    3030 
    3131# Finally, make a source list to use the local copies 
    32 cp -f /opt/dsss-test/i586-pc-linux-gnu/share/dsss/sources/* . 
     32cp -f /opt/dsss-test/$PRIMARY_PLAT/share/dsss/sources/* . 
    3333echo > source.list 
    3434for i in $PKGS 
     
    6161        rm -rf /opt/dsss-test/$i/tests-$lib 
    6262        mkdir -p /opt/dsss-test/$i/tests-$lib 
     63    touch /opt/dsss-test/$i/tests-$lib/UNITFAILS 
    6364 
    6465        # Uninstall old garbage 
     
    7172        done 
    7273 
     74    # Make the build directory 
     75    mkdir -p build || exit 1 
     76    cd build || exit 1 
     77    rm -rf * || exit 1 
     78 
    7379        # For each package 
    7480        for j in $PKGS 
     
    7682            echo $i $j 
    7783            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 * 
    79106        done 
     107 
     108    # Leave the build directory 
     109    cd .. || exit 1 
     110    rm -rf build || exit 1 
    80111 
    81112        dsss installed >& /opt/dsss-test/$i/tests-$lib/LIST 
  • other/dsss-testing-framework/untango.sh

    r677 r739  
    1010    cp -f tango $i 
    1111done 
     12 
     13# Unfortunately, DMD can't be untango'd right now, so just reinstall it 
     14PATH="/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  
    11#!/bin/bash 
    2 export PATH="/opt/dsss-test/i586-pc-linux-gnu/bin:$PATH" 
     2. plats.sh 
     3 
     4export PATH="/opt/dsss-test/$PRIMARY_PLAT/bin:$PATH" 
    35 
    46mkdir /tmp/dsss-update.$$ || exit 1 
     
    810dsss build || exit 1 
    911 
    10 for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd 
     12for i in $PLATS 
    1113do 
    1214    cp -f /opt/dsss-test/$i/etc/rebuild/default .