X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fust%2Flow-throughput%2Frun;h=26e074997e27d655e1ff5ce8bdade2f84cb17eb1;hb=fb3268e3029673dbb7c6d43b2dcde5e5f9eec07a;hp=8beaf60a5413a4a3f3ae133bdba9f06065e772bf;hpb=4d5b973e8e468bf99fc9229b9b7a67bfdfe09924;p=lttng-tools.git diff --git a/tests/ust/low-throughput/run b/tests/ust/low-throughput/run index 8beaf60a5..26e074997 100755 --- a/tests/ust/low-throughput/run +++ b/tests/ust/low-throughput/run @@ -14,6 +14,7 @@ # 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/../.. @@ -23,11 +24,9 @@ EVENT_NAME="tp:slow" source $TESTDIR/utils.sh -echo -e "\n-------------------------------------------" -echo -e "UST tracer - Testing low events throughput" -echo -e "-------------------------------------------" +print_test_banner "$TEST_DESC" -if [ ! -e "$CURDIR/$BIN_NAME" ]; then +if [ ! -x "$CURDIR/$BIN_NAME" ]; then echo -e "No UST nevents binary detected. Passing." exit 0 fi @@ -36,20 +35,20 @@ TRACE_PATH=$(mktemp -d) # 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 @@ -92,9 +91,9 @@ done 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