From: Jonathan Rajotte Date: Tue, 29 Mar 2016 22:46:35 +0000 (-0400) Subject: Test: xsd validation of long path (length > 255) X-Git-Tag: v2.8.0~150 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3697695e9869a9844866cda6dc160c7116b4b4e5;p=lttng-tools.git Test: xsd validation of long path (length > 255) Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/tools/mi/test_mi b/tests/regression/tools/mi/test_mi index e8c032ce5..f3d2c330b 100755 --- a/tests/regression/tools/mi/test_mi +++ b/tests/regression/tools/mi/test_mi @@ -59,7 +59,7 @@ DEVNULL=/dev/null 2>&1 DIR=$(readlink -f $TESTDIR) -NUM_TESTS=224 +NUM_TESTS=228 source $TESTDIR/utils/utils.sh @@ -246,6 +246,28 @@ function test_list_sessions () destroy_lttng_sessions } +function test_list_session_long_path () +{ + local session_name="session_long_path" + + output_basedir=$OUTPUT_DIR/$(randstring 254 0) + mkdir -p ${output_basedir} + + OUTPUT_FILE="list_sessions.xml" + + #Test build up + OUTPUT_DEST=$DEVNULL + create_lttng_session_ok $session_name ${output_basedir} + + OUTPUT_DEST=${output_basedir}/$OUTPUT_FILE + list_lttng_with_opts + $XML_VALIDATE $OUTPUT_DEST + ok $? "Mi test: list session with long path xsd validation" + + #Teardown + OUTPUT_DEST=$DEVNULL + destroy_lttng_sessions +} function test_ust_channel () { local session_name="testsession" @@ -871,6 +893,7 @@ TESTS=( test_start_stop test_snapshot test_track_untrack + test_list_session_long_path )