[gforth] / gforth / testdist  

gforth: gforth/testdist


1 : anton 1.5 #! /bin/sh
2 : anton 1.1 #tests that dist works
3 : anton 1.5 #usage: testdist gforth-version.tar.gz
4 :     #gforth-version.tar.gz must be in the working directory
5 :     MACHINE=`hostname`
6 :     GFORTH=`basename $1 .tar.gz`
7 : anton 1.14 DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
8 : anton 1.16 PATHDIR=`pwd`
9 : anton 1.14 test -z "$CC" && CC=cc
10 : anton 1.7 chmod -R +w $GFORTH
11 : anton 1.5 rm -rf $GFORTH
12 :     gunzip -cd $1 | tar xf -
13 : anton 1.12 (if make --version|grep -q GNU
14 : anton 1.5 then
15 :     echo building in build
16 :     chmod -R a-w $GFORTH
17 : anton 1.13 rm -rf build
18 : anton 1.5 mkdir build
19 :     cd build
20 :     ../$GFORTH/configure --prefix=$DIR/install
21 :     else
22 :     echo building in $GFORTH
23 :     cd $GFORTH
24 :     ./configure --prefix=$DIR/install
25 : anton 1.12 fi &&
26 : anton 1.7 make &&
27 :     make check &&
28 : anton 1.1 #gforth locals-test.fs
29 :     #gforth test-counted-loops.fs
30 : anton 1.7 make install &&
31 : anton 1.11 #make all-bench &&
32 : anton 1.9 chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
33 : anton 1.8 cd ../$GFORTH/vmgen-ex &&
34 : anton 1.16 PATH=$PATHDIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
35 : anton 1.9 cd ../vmgen-ex2 &&
36 : anton 1.15 PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc LEX=lex &&
37 : anton 1.9 cd .. &&
38 :     cd .. &&
39 :     install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&
40 : anton 1.12 echo test ok )
41 : anton 1.1 chmod -R +w $GFORTH
42 :     cd ..

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help