+
+ for pipe in "${consumerd_pipe[@]}"; do
+ rm -rf "${pipe}"
+ done
+
+ rm -rf $output_dir
+}
+
+function test_multi_app_ust ()
+{
+ diag "Multi client app UST notification"
+ ust_event_generator $TESTAPP_STATE_FILE &
+ local generator_pid=$!
+
+ test_multi_app ust $generator_pid
+
+ kill -s SIGTERM $generator_pid 2> /dev/null
+ wait $generator_pid 2> /dev/null
+ rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
+}
+
+function test_multi_app_kernel ()
+{
+ diag "Multi client app kernel notification"
+ modprobe lttng-test
+
+ kernel_event_generator $TESTAPP_STATE_FILE &
+ local generator_pid=$!
+
+ test_multi_app kernel $generator_pid
+
+
+ kill -s SIGTERM $generator_pid 2> /dev/null
+ wait $generator_pid 2> /dev/null
+ rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
+
+ rmmod lttng-test
+}
+
+function test_on_register_evaluation_ust ()
+{
+ diag "On register notification UST"
+
+ # Start app in infinite loop
+ ust_event_generator $TESTAPP_STATE_FILE &
+ local generator_pid=$!
+
+ test_on_register_evaluation ust $generator_pid
+
+ kill -s SIGTERM $generator_pid 2> /dev/null
+ wait $generator_pid 2> /dev/null
+ rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
+
+}
+
+function test_on_register_evaluation_kernel()
+{
+ diag "On register notification kernel"
+
+ modprobe lttng-test
+
+ kernel_event_generator $TESTAPP_STATE_FILE &
+ local generator_pid=$!
+
+ test_on_register_evaluation kernel $generator_pid
+
+
+ kill -s SIGTERM $generator_pid 2> /dev/null
+ wait $generator_pid 2> /dev/null
+ rm -rf ${TESTAPP_STATE_FILE} 2> /dev/null
+
+ rmmod lttng-test