Changeset 677

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

*: Added support for Tango.

Files:

Legend:

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

    r675 r677  
    11#!/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 
     2PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 
     3rm -rf logs-* 
    54 
    65echo '<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>
     6echo 'NOTE: Tango tests for Windows do not yet work.
    87echo 'Tests run on '`date --iso`'<br>' 
     8 
     9for lib in phobos tango 
     10do 
     11    echo '<hr><h1>'$lib'</h1>' 
    912 
    1013echo '<table><tr><td></td>' 
     
    1518echo '</tr>' 
    1619 
    17 for i in `ls /opt/dsss-test/i586-pc-linux-gnu/tests | grep -v LIST` 
     20 
     21for i in `ls /opt/dsss-test/i586-pc-linux-gnu/tests-$lib | grep -v LIST` 
    1822do 
    19     mkdir -p logs/$i 
     23    mkdir -p logs-$lib/$i 
    2024 
    2125    echo '<tr><th>'$i'</th>' 
    2226    for j in $PLATS 
    2327    do 
    24         cp -f /opt/dsss-test/$j/tests/$i logs/$i/$j.txt 
     28        cp -f /opt/dsss-test/$j/tests-$lib/$i logs-$lib/$i/$j.txt 
    2529 
    2630        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`" ] 
    2832        then 
    2933            echo -n 'green'\''>SUCCESS' 
     
    3640done 
    3741 
    38 echo '</table></body></HTML>
     42echo '</table>
    3943 
     44done 
     45 
     46echo '</body></HTML>' 
     47 
  • other/dsss-testing-framework/test.sh

    r675 r677  
    11#!/bin/bash 
    22ORIGPATH="$PATH" 
     3 
     4PLATS="i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd" 
    35 
    46# Get the list of packages 
     
    1921# Then download them 
    2022mkdir -p pkgs 
    21 #rm -f pkgs/* 
    22 cd pkgs || exit 1 
     23rm -f pkgs/* 
    2324if [ 1 = 0 ] ; then 
    2425for i in $PKGS 
     
    2627    /opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch $i 
    2728done 
    28 fi 
     29/opt/dsss-test/i586-pc-linux-gnu/bin/dsss net fetch tango 
    2930 
    3031# Finally, make a source list to use the local copies 
     
    3536    echo $i' tgz file://'`pwd`'/'$i'.tar.gz' >> source.list 
    3637done 
     38echo 'tango tgz file://'`pwd`'/tango.tar.gz' >> source.list 
    3739 
    3840cd .. || exit 1 
     
    4042SOURCE='file://'`pwd`'/pkgs' 
    4143 
    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 
     44runtests() { 
     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 
     91rm -rf docs 
     92 
     93./untango.sh 
     94runtests phobos 
     95for i in $PLATS 
    4496do 
    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 
     99done 
     100runtests tango 
    46101 
    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 
    75103cd docs 
    76104cp -af dsss/sss/candydoc . 
  • other/dsss-testing-framework/update.sh

    r675 r677  
    88dsss build || exit 1 
    99 
    10 for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd 
     10for i in i586-pc-linux-gnu i586-pc-linux-gnu-dmd i686-win32-dmd 
    1111do 
    1212    cp -f /opt/dsss-test/$i/etc/rebuild/default .