File:  [gforth] / gforth / testdist
Revision 1.13: download - view: text, annotated - select for diffs
Fri Aug 8 13:28:49 2003 UTC (16 years, 2 months ago) by anton
Branches: MAIN
CVS tags: HEAD
minor fixes in testdist and testall
documentation changes

    1: #! /bin/sh
    2: #tests that dist works
    3: #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: DIR=`pwd`
    8: chmod -R +w $GFORTH
    9: 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: 	rm -rf build
   16: 	mkdir build
   17: 	cd build
   18: 	../$GFORTH/configure --prefix=$DIR/install
   19: else
   20: 	echo building in $GFORTH
   21: 	cd $GFORTH
   22: 	./configure --prefix=$DIR/install
   23: fi &&
   24: make &&
   25: make check &&
   26: #gforth locals-test.fs
   27: #gforth test-counted-loops.fs
   28: make install &&
   29: #make all-bench &&
   30: chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
   31: cd ../$GFORTH/vmgen-ex &&
   32: PATH=$DIR/install/bin:$PATH make check GCC="cc -O" YACC=yacc &&
   33: cd ../vmgen-ex2 &&
   34: PATH=$DIR/install/bin:$PATH make check GCC="cc -O" YACC=yacc &&
   35: cd .. &&
   36: cd .. &&
   37: install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye &&
   38: echo test ok )
   39: chmod -R +w $GFORTH
   40: cd ..

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