# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
-CURDIR=$(dirname $0)/
-ROOTDIR=$CURDIR/../..
-$CURDIR/test_ctf_writer $ROOTDIR/formats/ctf/metadata/ctf-parser-test $ROOTDIR/converter/babeltrace
+BTBIN="@abs_top_builddir@/converter/babeltrace"
+
+"@abs_top_builddir@/tests/lib/test_ctf_writer" "$BTBIN"