#!/bin/bash top_srcdir="@top_srcdir@" top_builddir="@top_builddir@" if test -z "$1" then echo "[Error] Syntax: $0 " exit 1 fi NATIVE=${PWD/\/build_mic\//\/build_host\/} DIR="$(dirname "$1")" FILE="$(basename "$1")" export SINK_LD_LIBRARY_PATH="$top_builddir/src/.libs:$SINK_LD_LIBRARY_PATH" export STARPU_MIC_SINK_PROGRAM_NAME="$1" # in case libtool got into play [ -x "$DIR/.libs/$FILE" ] && STARPU_MIC_SINK_PROGRAM_NAME="$DIR/.libs/$FILE" $top_builddir/../build_host/tests/loader "$NATIVE/$1"