# 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="UST tracer - Testing low events throughput"
CURDIR=$(dirname $0)/
TESTDIR=$CURDIR/../..
source $TESTDIR/utils.sh
-echo -e "\n-------------------------------------------"
-echo -e "UST tracer - Testing low events throughput"
-echo -e "-------------------------------------------"
+print_test_banner "$TEST_DESC"
if [ ! -x "$CURDIR/$BIN_NAME" ]; then
echo -e "No UST nevents binary detected. Passing."
# MUST set TESTDIR before calling those functions
-start_sessiond
+start_lttng_sessiond
create_lttng_session $SESSION_NAME $TRACE_PATH
enable_ust_lttng_event $SESSION_NAME $EVENT_NAME
-start_tracing $SESSION_NAME
+start_lttng_tracing $SESSION_NAME
# This is going to take 20 minutes
./$CURDIR/$BIN_NAME >/dev/null 2>&1
-stop_tracing $SESSION_NAME
+stop_lttng_tracing $SESSION_NAME
destroy_lttng_session $SESSION_NAME
-stop_sessiond
+stop_lttng_sessiond
# Validate test
if [ $out -eq 0 ]; then
echo -n "Trace is coherent... "
- echo -e "\e[1;32mOK\e[0m"
+ print_ok
else
- echo -e "\e[1;31mFAILED\e[0m"
+ print_fail
fi
rm -rf $TRACE_PATH