[gforth] / gforth / testdist  

gforth: gforth/testdist

Diff for /gforth/testdist between version 1.2 and 1.20

version 1.2, Mon Dec 23 15:07:46 1996 UTC version 1.20, Sat Nov 1 17:10:57 2008 UTC
Line 1 
Line 1 
   #! /bin/bash
 #tests that dist works  #tests that dist works
 #call this with gforth-$(version).tar.gz in the working directory  #usage: testdist gforth-version.tar.gz
 GFORTH=gforth-0.2.1  #gforth-version.tar.gz must be in the working directory
 mkdir test  MACHINE=`hostname`
 cd test  test $MACHINE = mail2 -o $MACHINE = t1000 && confopt='ac_cv_prog_GNU_LIBTOOL='
 DIR=$PWD  GFORTH=`basename $1 .tar.gz`
 gunzip -cd ../$GFORTH.tar.gz|tar xf -  result=ok
   for CC in `(shopt -s nullglob; for i in /usr/sfw/bin /opt/csw/gcc4/bin \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do
       last=broken
       rm -rf $CC
       mkdir $CC
       cd $CC
       PATHDIR=`pwd`
       DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
       chmod -R +w $GFORTH
       rm -rf $GFORTH
       gunzip -cd ../$1 | tar xf -
       (if make --version|grep GNU >/dev/null
        then
           echo building in build with $CC
 chmod -R a-w $GFORTH  chmod -R a-w $GFORTH
           rm -rf build
 mkdir build  mkdir build
 cd build  cd build
 ../$GFORTH/configure --prefix=$DIR/install          ../$GFORTH/configure --prefix=$DIR/install CC=$CC $confopt
 make       else
 make check          echo building in $GFORTH with $CC
           cd $GFORTH
           ./configure --prefix=$DIR/install CC=$CC $confopt
        fi &&
        make &&
 #gforth locals-test.fs  #gforth locals-test.fs
 #gforth test-counted-loops.fs  #gforth test-counted-loops.fs
 make install       make install &&
 make bench  #make all-bench &&
 cd ..       chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
 install/bin/gforth tester.fs coretest.fs postponetest.fs dbltest.fs -e bye       cd ../$GFORTH/vmgen-ex &&
        PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
        cd ../vmgen-ex2 &&
        PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
        cd .. &&
        cd .. &&
        install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye >&/dev/null &&
        make -f build/Makefile onebench ENGINE_FAST=install/bin/gforth-fast &&
        install/bin/gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' ) &&
       last=ok
       echo $CC $last
 chmod -R +w $GFORTH  chmod -R +w $GFORTH
 cd ..  cd ..
 rm -rf test      test $result = ok -a $last = ok || result=broken
   done
   echo test $result


Generate output suitable for use with a patch program
Legend:
Removed from v.1.2  
changed lines
  Added in v.1.20

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help