version 1.17, 2008/10/25 17:18:42
|
version 1.20, 2008/11/01 17:10:57
|
Line 3
|
Line 3
|
#usage: testdist gforth-version.tar.gz |
#usage: testdist gforth-version.tar.gz |
#gforth-version.tar.gz must be in the working directory |
#gforth-version.tar.gz must be in the working directory |
MACHINE=`hostname` |
MACHINE=`hostname` |
|
test $MACHINE = mail2 -o $MACHINE = t1000 && confopt='ac_cv_prog_GNU_LIBTOOL=' |
GFORTH=`basename $1 .tar.gz` |
GFORTH=`basename $1 .tar.gz` |
result=ok |
result=ok |
last=ok |
for CC in `(shopt -s nullglob; for i in /usr/sfw/bin /opt/csw/gcc4/bin \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do |
for CC in `(shopt -s nullglob; for i in \`echo $PATH|sed 's/:/ /g'\`; do for j in $i/gcc-*; do basename $j; done; done )|sort -u`; do |
|
test $result = ok -a $last = ok || result=broken |
|
last=broken |
last=broken |
rm -rf $CC |
rm -rf $CC |
mkdir $CC |
mkdir $CC |
Line 17 for CC in `(shopt -s nullglob; for i in
|
Line 16 for CC in `(shopt -s nullglob; for i in
|
chmod -R +w $GFORTH |
chmod -R +w $GFORTH |
rm -rf $GFORTH |
rm -rf $GFORTH |
gunzip -cd ../$1 | tar xf - |
gunzip -cd ../$1 | tar xf - |
(if make --version|grep -q GNU |
(if make --version|grep GNU >/dev/null |
then |
then |
echo building in build with $CC |
echo building in build with $CC |
chmod -R a-w $GFORTH |
chmod -R a-w $GFORTH |
rm -rf build |
rm -rf build |
mkdir build |
mkdir build |
cd build |
cd build |
../$GFORTH/configure --prefix=$DIR/install CC=$CC |
../$GFORTH/configure --prefix=$DIR/install CC=$CC $confopt |
else |
else |
echo building in $GFORTH with $CC |
echo building in $GFORTH with $CC |
cd $GFORTH |
cd $GFORTH |
./configure --prefix=$DIR/install CC=$CC |
./configure --prefix=$DIR/install CC=$CC $confopt |
fi && |
fi && |
make && |
make && |
#gforth locals-test.fs |
#gforth locals-test.fs |
Line 44 for CC in `(shopt -s nullglob; for i in
|
Line 43 for CC in `(shopt -s nullglob; for i in
|
cd .. && |
cd .. && |
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye >&/dev/null && |
install/bin/gforth test/tester.fs test/coretest.fs test/postpone.fs test/dbltest.fs -e bye >&/dev/null && |
make -f build/Makefile onebench ENGINE_FAST=install/bin/gforth-fast && |
make -f build/Makefile onebench ENGINE_FAST=install/bin/gforth-fast && |
gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' && |
install/bin/gforth-fast --debug -e bye 2>&1 |grep 'Compiled with' ) && |
echo $CC ok ) && |
|
last=ok |
last=ok |
|
echo $CC $last |
chmod -R +w $GFORTH |
chmod -R +w $GFORTH |
cd .. |
cd .. |
test $result = ok -a $last = ok || result=broken |
test $result = ok -a $last = ok || result=broken |