[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.6 DIR=`pwd`
8 : anton 1.5 rm -rf $GFORTH
9 :     gunzip -cd $1 | tar xf -
10 :     if make --version|grep -q GNU
11 :     then
12 :     echo building in build
13 :     chmod -R a-w $GFORTH
14 :     mkdir build
15 :     cd build
16 :     ../$GFORTH/configure --prefix=$DIR/install
17 :     else
18 :     echo building in $GFORTH
19 :     cd $GFORTH
20 :     ./configure --prefix=$DIR/install
21 :     fi
22 : anton 1.1 make
23 :     make check
24 :     #gforth locals-test.fs
25 :     #gforth test-counted-loops.fs
26 :     make install
27 : anton 1.5 #make bench
28 : anton 1.1 cd ..
29 : anton 1.5 install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok
30 : anton 1.1 chmod -R +w $GFORTH
31 :     cd ..

CVS Admin

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help