From c764163f74aae77631737f756d7dad745df2dd66 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 29 Mar 2016 18:46:35 -0400 Subject: [PATCH] Test: xsd validation of long path (length > 255) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- tests/regression/tools/mi/test_mi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) 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 ) -- 2.34.1