Diff for /gforth/testdist between versions 1.1 and 1.17

version 1.1, 1996/10/31 17:41:17 version 1.17, 2008/10/25 17:18:42
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.0  #gforth-version.tar.gz must be in the working directory
 mkdir test  MACHINE=`hostname`
 cd test  GFORTH=`basename $1 .tar.gz`
 DIR=$PWD  result=ok
 gunzip -cd ../$GFORTH.tar.gz|tar xf -  last=ok
 chmod -R a-w $GFORTH  for CC in `(shopt -s nullglob; for i in \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do
 mkdir build      test $result = ok -a $last = ok || result=broken
 cd build      last=broken
 ../$GFORTH/configure --prefix=$DIR/install      rm -rf $CC
 make      mkdir $CC
 make check      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 -q GNU
        then
           echo building in build with $CC
           chmod -R a-w $GFORTH
           rm -rf build
           mkdir build
           cd build
           ../$GFORTH/configure --prefix=$DIR/install CC=$CC
        else
           echo building in $GFORTH with $CC
           cd $GFORTH
           ./configure --prefix=$DIR/install CC=$CC
        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 &&
 chmod -R +w $GFORTH       PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
 cd ..       cd ../vmgen-ex2 &&
 rm -rf test       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 &&
        gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' &&
        echo $CC ok ) &&
       last=ok
       chmod -R +w $GFORTH
       cd ..
       test $result = ok -a $last = ok || result=broken
   done
   echo test $result

Removed from v.1.1  
changed lines
  Added in v.1.17


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>