From d7df5cec1713de25424f2a9ff3cc079e2ffb1d3d Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 23 Jun 2015 17:18:52 -0400 Subject: [PATCH] Relayd enable/start test and basic kernel run test --- packaging/el7-enable-and-start-relayd.sh | 5 +++++ packaging/el7-test-run.sh | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 packaging/el7-enable-and-start-relayd.sh create mode 100644 packaging/el7-test-run.sh diff --git a/packaging/el7-enable-and-start-relayd.sh b/packaging/el7-enable-and-start-relayd.sh new file mode 100644 index 0000000..045f52e --- /dev/null +++ b/packaging/el7-enable-and-start-relayd.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +systemctl enable lttng-relayd + +systemctl start lttng-relayd diff --git a/packaging/el7-test-run.sh b/packaging/el7-test-run.sh new file mode 100644 index 0000000..1c2b492 --- /dev/null +++ b/packaging/el7-test-run.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +lttng create +lttng enable-event -a -k +lttng start +wait 1 +lttng stop + +count=$(lttng view | wc -l) +if [ $count -lt "100" ]; then + false +fi + + -- 2.34.1