/[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.7.2.1 by mvo, Sun Aug 26 21:48:57 2001 UTC revision 1.7.2.2 by ttn, Tue Feb 5 11:12:40 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=`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 37  fi Line 40  fi
40    
41  # documentation searching ignores GUILE_LOAD_PATH.  # documentation searching ignores GUILE_LOAD_PATH.
42  if [ ! -f guile-procedures.txt ] ; then  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" -e main -s "$TEST_SUITE_DIR/guile-test" --test-suite "$TEST_SUITE_DIR/tests" --log-file check-guile.log "$@"  exec $guile $guile_opts \
47        -e main -s "$TEST_SUITE_DIR/guile-test" \
48        --test-suite "$TEST_SUITE_DIR/tests" \
49        --log-file check-guile.log "$@"
50    
51  # check-guile ends here  # check-guile ends here

Legend:
Removed from v.1.7.2.1  
changed lines
  Added in v.1.7.2.2

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