Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
$(stamp)
stamp/t-%: test/t-% stamp/cargo-build $(wildcard test/*[^~])
+ TARGET_RELEASE_DIR=$(abspath $(TARGET_RELEASE_DIR)) \
$(NAILING_CARGO_JUST_RUN) \
$(abspath test/capture-log) tmp/t-$*.log \
$(abspath test/go-with-unshare test/t-$*)
src="${ssrc%/*}"
test="${ssrc%/*}/test"
+target_bin_dir=${TARGET_RELEASE_DIR-target/debug}
+target_bin_prefix=${target_bin_dir}${target_bin_dir+/}
+
fail () { echo >&2 "$0: fail: $*"; exit 1; }
test-prep () {
run-client () {
in-ns client \
- target/debug/hippotat --config $test/test.cfg -DD "$@"
+ ${target_bin_prefix}hippotat --config $test/test.cfg -DD "$@"
}
run-server () {
in-ns server \
- target/debug/hippotatd --config $test/test.cfg -DD "$@"
+ ${target_bin_prefix}hippotatd --config $test/test.cfg -DD "$@"
}
spawn () {
{ exec=exec; "$@"; } &