version 1.1, 1996/10/31 17:41:17
|
version 1.7, 2001/05/01 13:35:42
|
Line 1
|
Line 1
|
|
#! /bin/sh |
#tests that dist works |
#tests that dist works |
#call this with gforth-$(version).tar.gz in the working directory |
#usage: testdist gforth-version.tar.gz |
GFORTH=gforth-0.2.0 |
#gforth-version.tar.gz must be in the working directory |
mkdir test |
MACHINE=`hostname` |
cd test |
GFORTH=`basename $1 .tar.gz` |
DIR=$PWD |
DIR=`pwd` |
gunzip -cd ../$GFORTH.tar.gz|tar xf - |
chmod -R +w $GFORTH |
chmod -R a-w $GFORTH |
rm -rf $GFORTH |
mkdir build |
gunzip -cd $1 | tar xf - |
cd build |
if make --version|grep -q GNU |
../$GFORTH/configure --prefix=$DIR/install |
then |
make |
echo building in build |
make check |
chmod -R a-w $GFORTH |
|
mkdir build |
|
cd build |
|
../$GFORTH/configure --prefix=$DIR/install |
|
else |
|
echo building in $GFORTH |
|
cd $GFORTH |
|
./configure --prefix=$DIR/install |
|
fi |
|
make && |
|
make check && |
#gforth locals-test.fs |
#gforth locals-test.fs |
#gforth test-counted-loops.fs |
#gforth test-counted-loops.fs |
make install |
make install && |
make bench |
#make bench |
cd .. |
cd vmgen-ex && |
install/bin/gforth tester.fs coretest.fs postponetest.fs dbltest.fs -e bye |
PATH=$DIR/install/bin:$PATH make check && |
|
cd .. && |
|
cd .. && |
|
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye && echo test ok |
chmod -R +w $GFORTH |
chmod -R +w $GFORTH |
cd .. |
cd .. |
rm -rf test |
|