# You should have received a copy of the GNU Lesser General Public License
# along with this library; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+TEST_DESC="Streaming - Kernel tracing"
CURDIR=$(dirname $0)/
TESTDIR=$CURDIR/../..
source $TESTDIR/utils.sh
-echo -e "\n---------------------------"
-echo -e " Streaming - Kernel tracing "
-echo -e "----------------------------"
+print_test_banner "$TEST_DESC"
if [ "$(id -u)" != "0" ]; then
echo "This test must be running as root. Aborting"
# Create session with default path
$TESTDIR/../src/bin/lttng/$LTTNG_BIN create $SESSION_NAME >/dev/null 2>&1
if [ $? -eq 1 ]; then
- echo -e '\e[1;31mFAILED\e[0m'
+ print_fail
return 1
else
- echo -e "\e[1;32mOK\e[0m"
+ print_ok
fi
}
# Create session with default path
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-consumer -k net://localhost >/dev/null 2>&1
if [ $? -eq 1 ]; then
- echo -e '\e[1;31mFAILED\e[0m'
+ print_fail
return 1
else
- echo -e "\e[1;32mOK\e[0m"
+ print_ok
fi
}