Annotation of gforth/testdist, revision 1.11
1.5 anton 1: #! /bin/sh
1.1 anton 2: #tests that dist works
1.5 anton 3: #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`
1.6 anton 7: DIR=`pwd`
1.7 anton 8: chmod -R +w $GFORTH
1.5 anton 9: rm -rf $GFORTH
10: gunzip -cd $1 | tar xf -
11: if make --version|grep -q GNU
12: then
13: echo building in build
14: chmod -R a-w $GFORTH
15: mkdir build
16: cd build
17: ../$GFORTH/configure --prefix=$DIR/install
18: else
19: echo building in $GFORTH
20: cd $GFORTH
21: ./configure --prefix=$DIR/install
22: fi
1.7 anton 23: make &&
24: make check &&
1.1 anton 25: #gforth locals-test.fs
26: #gforth test-counted-loops.fs
1.7 anton 27: make install &&
1.11 ! anton 28: #make all-bench &&
1.9 anton 29: chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
1.8 anton 30: cd ../$GFORTH/vmgen-ex &&
1.11 ! anton 31: PATH=$DIR/install/bin:$PATH make check GCC="cc -O" &&
1.9 anton 32: cd ../vmgen-ex2 &&
1.11 ! anton 33: PATH=$DIR/install/bin:$PATH make check GCC="cc -O" &&
1.9 anton 34: cd .. &&
35: cd .. &&
36: install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&
37: echo test ok
1.1 anton 38: chmod -R +w $GFORTH
39: cd ..
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>