File:  [gforth] / gforth / testdist
Revision 1.14: download - view: text, annotated - select for diffs
Fri Aug 22 08:08:46 2003 UTC (20 years, 7 months ago) by anton
Branches: MAIN
CVS tags: HEAD
fixed bugs in doer routines (showed up with threadng scheme 1)
testdist portability improvements

#! /bin/sh
#tests that dist works
#usage: testdist gforth-version.tar.gz
#gforth-version.tar.gz must be in the working directory
MACHINE=`hostname`
GFORTH=`basename $1 .tar.gz`
DIR=`cygpath -m \`pwd\` 2>/dev/null` || DIR=`pwd`
test -z "$CC" && CC=cc
chmod -R +w $GFORTH
rm -rf $GFORTH
gunzip -cd $1 | tar xf -
(if make --version|grep -q GNU
then
	echo building in build
	chmod -R a-w $GFORTH
	rm -rf build
	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 test-counted-loops.fs
make install &&
#make all-bench &&
chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
cd ../$GFORTH/vmgen-ex &&
PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc &&
cd ../vmgen-ex2 &&
PATH=$DIR/install/bin:$PATH make check GCC="$CC -O" YACC=yacc &&
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
cd ..

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>