Tests: add tests for the save and load feature
[lttng-tools.git] / tests / utils / utils.sh
index 88304eb80083629b9e26a729ff046ae8855abda4..a1a26d9df00a67c761ece45efd5ad8eba4f987f7 100644 (file)
@@ -400,6 +400,23 @@ function lttng_snapshot_record ()
        ok $? "Snapshot recorded"
 }
 
+function lttng_save()
+{
+       local sess_name=$1
+       local opts=$2
+
+       $TESTDIR/../src/bin/lttng/$LTTNG_BIN save $sess_name $opts >/dev/null 2>&1
+       ok $? "Session successfully saved"
+}
+
+function lttng_load()
+{
+       local opts=$1
+
+       $TESTDIR/../src/bin/lttng/$LTTNG_BIN load $opts >/dev/null 2>&1
+       ok $? "Load command successful"
+}
+
 function trace_matches ()
 {
        event_name=$1
This page took 0.024755 seconds and 5 git commands to generate.