/[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.12.2.2 by ttn, Sun Feb 10 00:38:52 2002 UTC revision 1.12.2.3 by ttn, Sun Feb 24 02:29:39 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 12  Line 12 
12  set -e  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=`pwd`
16  TEST_SUITE_DIR=$srcdir/test-suite  top_srcdir=@top_srcdir@
17    
18    TEST_SUITE_DIR=${top_srcdir}/test-suite
19    
20  if [ x"$1" = x-i ] ; then  if [ x"$1" = x-i ] ; then
21      guile=$2      guile=$2
22        guile_opts=
23      shift      shift
24      shift      shift
     GUILE_LOAD_PATH=$TEST_SUITE_DIR  
25  else  else
26      guile=libguile/guile      guile=${top_srcdir}/pre-inst-guile
27      GUILE_LOAD_PATH=$srcdir:$TEST_SUITE_DIR      guile_opts="${top_builddir}"
     LTDL_LIBRARY_PATH=`pwd`/srfi:${LTDL_LIBRARY_PATH}  
28  fi  fi
29    
30    GUILE_LOAD_PATH=$TEST_SUITE_DIR
31  export GUILE_LOAD_PATH  export GUILE_LOAD_PATH
 export LTDL_LIBRARY_PATH  
32    
33  if [ -f "$guile" -a -x "$guile" ] ; then  if [ -f "$guile" -a -x "$guile" ] ; then
34      echo Testing $guile ... "$@"      echo Testing $guile ... "$@"
35      echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH      echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
     echo with LTDL_LIBRARY_PATH=$LTDL_LIBRARY_PATH  
36  else  else
37      echo ERROR: Cannot execute $guile      echo ERROR: Cannot execute $guile
38      exit 1      exit 1
# Line 42  if [ ! -f guile-procedures.txt ] ; then Line 43  if [ ! -f guile-procedures.txt ] ; then
43     @LN_S@ libguile/guile-procedures.txt .     @LN_S@ libguile/guile-procedures.txt .
44  fi  fi
45    
46  exec "$guile" \  exec $guile $guile_opts \
47      -e main -s "$TEST_SUITE_DIR/guile-test" \      -e main -s "$TEST_SUITE_DIR/guile-test" \
48      --test-suite "$TEST_SUITE_DIR/tests" \      --test-suite "$TEST_SUITE_DIR/tests" \
49      --log-file check-guile.log "$@"      --log-file check-guile.log "$@"

Legend:
Removed from v.1.12.2.2  
changed lines
  Added in v.1.12.2.3

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