tests: use -z / -n to test for string empty / non-empty
[babeltrace.git] / tests / ctf-writer / test_ctf_writer
CommitLineData
540e5bd2 1#!/bin/bash
39d74371 2#
0235b0db 3# SPDX-License-Identifier: GPL-2.0-only
39d74371 4#
0235b0db 5# Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
39d74371 6#
39d74371 7
75e396f6 8if [ -n "${BT_TESTS_SRCDIR:-}" ]; then
644e0364
MJ
9 UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
10else
11 UTILSSH="$(dirname "$0")/../utils/utils.sh"
12fi
4cf88cf1 13
644e0364
MJ
14# shellcheck source=../utils/utils.sh
15source "$UTILSSH"
03f007c8 16
644e0364 17"${BT_TESTS_BUILDDIR}/ctf-writer/ctf_writer" "$BT_TESTS_BT2_BIN"
This page took 0.07424 seconds and 4 git commands to generate.