Test: rework shell test scripts
[babeltrace.git] / tests / lib / test_plugin_complete.in
index 4936fee76cefba2ff21a7731dac756a5b83431b2..24bea07cb8d297dae71145cc60c0b48a2d0a4d03 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 # Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com>
 #
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 
-PLUGIN_DIR="@abs_top_builddir@/tests/lib/test-plugin-plugins/.libs"
+NO_SH_TAP=1
+. "@abs_top_builddir@/tests/utils/common.sh"
 
-"@abs_top_builddir@/tests/lib/test_plugin" "$PLUGIN_DIR"
+script="$(readlink -f "$0")"
+curdir="$(dirname "$script")"
+
+plugin_dir="${curdir}/test-plugin-plugins/.libs"
+
+"${curdir}/test_plugin" "$plugin_dir"
This page took 0.026525 seconds and 4 git commands to generate.