| 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.7
|
chmod -R +w $GFORTH |
| 9 : |
anton
|
1.5
|
rm -rf $GFORTH |
| 10 : |
|
|
gunzip -cd $1 | tar xf - |
| 11 : |
anton
|
1.12
|
(if make --version|grep -q GNU |
| 12 : |
anton
|
1.5
|
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 : |
anton
|
1.12
|
fi && |
| 23 : |
anton
|
1.7
|
make && |
| 24 : |
|
|
make check && |
| 25 : |
anton
|
1.1
|
#gforth locals-test.fs |
| 26 : |
|
|
#gforth test-counted-loops.fs |
| 27 : |
anton
|
1.7
|
make install && |
| 28 : |
anton
|
1.11
|
#make all-bench && |
| 29 : |
anton
|
1.9
|
chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 && |
| 30 : |
anton
|
1.8
|
cd ../$GFORTH/vmgen-ex && |
| 31 : |
anton
|
1.11
|
PATH=$DIR/install/bin:$PATH make check GCC="cc -O" && |
| 32 : |
anton
|
1.9
|
cd ../vmgen-ex2 && |
| 33 : |
anton
|
1.11
|
PATH=$DIR/install/bin:$PATH make check GCC="cc -O" && |
| 34 : |
anton
|
1.9
|
cd .. && |
| 35 : |
|
|
cd .. && |
| 36 : |
|
|
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && |
| 37 : |
anton
|
1.12
|
echo test ok ) |
| 38 : |
anton
|
1.1
|
chmod -R +w $GFORTH |
| 39 : |
|
|
cd .. |