File:  [gforth] / gforth / testdist
Revision 1.10: download - view: text, annotated - select for diffs
Sat Feb 1 15:52:25 2003 UTC (16 years, 6 months ago) by anton
Branches: MAIN
CVS tags: HEAD
portability bugfixes, minor 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: 	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: make &&
   24: make check &&
   25: #gforth locals-test.fs
   26: #gforth test-counted-loops.fs
   27: make install &&
   28: #make bench
   29: chmod -R +w ../$GFORTH/vmgen-ex ../$GFORTH/vmgen-ex2 &&
   30: cd ../$GFORTH/vmgen-ex &&
   31: PATH=$DIR/install/bin:$PATH make check &&
   32: cd ../vmgen-ex2 &&
   33: PATH=$DIR/install/bin:$PATH make check &&
   34: cd .. &&
   35: make all-bench &&
   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>