+function test_maps()
+{
+ diag "Test maps loading"
+
+ lttng_load_ok "-i $CURDIR/$SESSION_NAME-maps.lttng"
+
+ local mi_output_file=$(mktemp)
+ if [ $? -ne 0 ]; then
+ break;
+ fi
+
+ $TESTDIR/../src/bin/lttng/$LTTNG_BIN --mi XML list "$SESSION_NAME-maps" > $mi_output_file
+
+ # TODO: once map information is in the MI, do some mad testing with sick xpath expressions.
+
+ destroy_lttng_session_ok "$SESSION_NAME-maps"
+ rm -f ${mi_output_file}
+}
+