mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 11:10:32 +02:00
* check-guile.in: * test-suite/Makefile.am: * test-suite/test-suite/lib.scm: * benchmark-guile.in: * benchmark-suite/Makefile.am: * benchmark-suite/benchmark-suite/lib.scm: Lower the lib modules in the source tree. This lets us remove top_srcdir and top_builddir from the uninstalled paths. * test-suite/tests/asm-to-bytecode.test: * test-suite/tests/brainfuck.test: * test-suite/tests/compiler.test: * test-suite/tests/ftw.test: * test-suite/tests/gc.test: * test-suite/tests/match.test: * test-suite/tests/rnrs-libraries.test: * test-suite/tests/rnrs-test-a.scm: * test-suite/tests/sxml.match.test: Adapt to not expect that module names be prefixed with "test-suite".
49 lines
1.3 KiB
Bash
49 lines
1.3 KiB
Bash
#! /bin/sh
|
|
# Usage: benchmark-guile [-i GUILE-INTERPRETER] [GUILE-BENCHMARK-ARGS]
|
|
# If `-i GUILE-INTERPRETER' is omitted, use ${top_builddir}/meta/guile.
|
|
# See ${top_srcdir}/benchmark-suite/guile-benchmark for documentation on GUILE-BENCHMARK-ARGS.
|
|
#
|
|
# Example invocations:
|
|
# ./benchmark-guile
|
|
# ./benchmark-guile numbers.bm
|
|
# ./benchmark-guile -i /usr/local/bin/guile
|
|
# ./benchmark-guile -i /usr/local/bin/guile numbers.bm
|
|
|
|
set -e
|
|
|
|
top_builddir=@top_builddir_absolute@
|
|
top_srcdir=@top_srcdir_absolute@
|
|
|
|
BENCHMARK_SUITE_DIR=${top_srcdir}/benchmark-suite
|
|
|
|
if [ x"$1" = x-i ] ; then
|
|
guile=$2
|
|
shift
|
|
shift
|
|
else
|
|
guile=${top_builddir}/meta/guile
|
|
fi
|
|
|
|
GUILE_LOAD_PATH="$BENCHMARK_SUITE_DIR${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
|
|
export GUILE_LOAD_PATH
|
|
|
|
if [ -f "$guile" -a -x "$guile" ] ; then
|
|
echo Benchmarking $guile ... "$@"
|
|
echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
|
|
else
|
|
echo ERROR: Cannot execute $guile
|
|
exit 1
|
|
fi
|
|
|
|
# documentation searching ignores GUILE_LOAD_PATH.
|
|
if [ ! -f guile-procedures.txt ] ; then
|
|
@LN_S@ libguile/guile-procedures.txt .
|
|
fi
|
|
|
|
exec $guile \
|
|
-L "$BENCHMARK_SUITE_DIR" \
|
|
-e main -s "$BENCHMARK_SUITE_DIR/guile-benchmark" \
|
|
--benchmark-suite "$BENCHMARK_SUITE_DIR/benchmarks" \
|
|
--log-file benchmark-guile.log "$@"
|
|
|
|
# benchmark-guile ends here
|