5
# Copyright (C) 2010 Eric Day (eday@oddments.org)
8
# Use and distribution licensed under the BSD license. See the
9
# COPYING file in the root project directory for full text.
12
# Get filename we want to run without path
13
name=`echo $1 | sed 's/.*\/\(ScaleStack\/.*[^\/]*\)$/\1/'`
15
ext=`echo $name | sed 's/.*\.\([^.]*$\)/\1/'`
16
if [ "x$ext" = "x$name" ]
21
if [ ! "x$ext" = "xsh" ]
23
libtool_prefix="libtool --mode=execute"
26
# Set prefix if it was given through environment
27
if [ -n "$SCALESTACK_TEST_PREFIX" ]
29
if [ -n "$SCALESTACK_TEST_FILTER" ]
31
# If filter variable is set, only apply prefix to those that match
32
for x in $SCALESTACK_TEST_FILTER
34
if [ "x$x" = "x$name" ]
36
prefix="$libtool_prefix $SCALESTACK_TEST_PREFIX"
37
with=" (with prefix after filter)"
42
prefix="$libtool_prefix $SCALESTACK_TEST_PREFIX"
47
# Set this to fix broken libtool test
51
$prefix $1 $SCALESTACK_TEST_ARGS