/[guile]/guile/guile-core/check-guile.in
ViewVC logotype

Diff of /guile/guile-core/check-guile.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mvo, Fri Nov 2 00:05:45 2001 UTC revision 1.10 by ttn, Tue Feb 5 09:21:54 2002 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2  # Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]  # Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
3  # If `-i GUILE-INTERPRETER' is omitted, use libguile/guile.  # If `-i GUILE-INTERPRETER' is omitted, use ${top_srcdir}/pre-inst-guile.
4  # See test-suite/guile-test for documentation on GUILE-TEST-ARGS.  # See test-suite/guile-test for documentation on GUILE-TEST-ARGS.
5  #  #
6  # Example invocations:  # Example invocations:
# Line 9  Line 9 
9  # ./check-guile -i /usr/local/bin/guile  # ./check-guile -i /usr/local/bin/guile
10  # ./check-guile -i /usr/local/bin/guile numbers.test  # ./check-guile -i /usr/local/bin/guile numbers.test
11    
12    set -e
13    
14  # this script runs in the top-level build-dir.  # this script runs in the top-level build-dir.
15  srcdir=@srcdir@  top_builddir=@srcdir@
16  TEST_SUITE_DIR=$srcdir/test-suite  
17    top_srcdir=@top_srcdir@
18    
19    TEST_SUITE_DIR=$top_builddir/test-suite
20    
21  if [ x"$1" = x-i ] ; then  if [ x"$1" = x-i ] ; then
22      guile=$2      guile=$2
23        guile_opts=
24      shift      shift
25      shift      shift
26      GUILE_LOAD_PATH=$TEST_SUITE_DIR      GUILE_LOAD_PATH=$TEST_SUITE_DIR
27  else  else
28      guile=libguile/guile      guile=${top_srcdir}/pre-inst-guile
29      GUILE_LOAD_PATH=$srcdir:$TEST_SUITE_DIR      guile_opts="${top_builddir}"
30      LTDL_LIBRARY_PATH=`pwd`/srfi:${LTDL_LIBRARY_PATH}      GUILE_LOAD_PATH=${top_builddir}:$TEST_SUITE_DIR
31  fi  fi
32  export GUILE_LOAD_PATH  export GUILE_LOAD_PATH
 export LTDL_LIBRARY_PATH  
33    
34  if [ -f "$guile" -a -x "$guile" ] ; then  if [ -f "$guile" -a -x "$guile" ] ; then
35      echo Testing $guile ... "$@"      echo Testing $guile ... "$@"
36      echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH      echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
     echo with LTDL_LIBRARY_PATH=$LTDL_LIBRARY_PATH  
37  else  else
38      echo ERROR: Cannot execute $guile      echo ERROR: Cannot execute $guile
39      exit 1      exit 1
# Line 40  if [ ! -f guile-procedures.txt ] ; then Line 44  if [ ! -f guile-procedures.txt ] ; then
44     @LN_S@ libguile/guile-procedures.txt .     @LN_S@ libguile/guile-procedures.txt .
45  fi  fi
46    
47  exec "$guile" -e main -s "$TEST_SUITE_DIR/guile-test" --test-suite "$TEST_SUITE_DIR/tests" --log-file check-guile.log "$@"  exec $guile $guile_opts \
48        -e main -s "$TEST_SUITE_DIR/guile-test" \
49        --test-suite "$TEST_SUITE_DIR/tests" \
50        --log-file check-guile.log "$@"
51    
52  # check-guile ends here  # check-guile ends here

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26