File:  [gforth] / gforth / testdist
Revision 1.7: download - view: text, annotated - select for diffs
Tue May 1 13:35:42 2001 UTC (22 years, 11 months ago) by anton
Branches: MAIN
CVS tags: HEAD
vmgen-related changes in Makefile
fixed FORTHB/prims2x breakage
removed lit_plus
added peeprules.vmg as a place to put superinstructions
testdist now also tests vmgen-ex

#! /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=`pwd`
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
	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 bench
cd vmgen-ex &&
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
cd ..

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