| 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 : |
|
|
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 |
| 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.5
|
#make bench |
| 29 : |
anton
|
1.7
|
cd vmgen-ex && |
| 30 : |
|
|
PATH=$DIR/install/bin:$PATH make check && |
| 31 : |
|
|
cd .. && |
| 32 : |
|
|
cd .. && |
| 33 : |
anton
|
1.5
|
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok |
| 34 : |
anton
|
1.1
|
chmod -R +w $GFORTH |
| 35 : |
|
|
cd .. |