Add sles12 packaging test
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Jul 2015 19:13:32 +0000 (15:13 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 7 Jul 2015 19:13:32 +0000 (15:13 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
13 files changed:
packaging/el7-add-efficios-repo.sh [deleted file]
packaging/el7-enable-and-start-relayd.sh [deleted file]
packaging/el7-enable-and-start-sessiond.sh [deleted file]
packaging/el7-install-lttng-packages.sh [deleted file]
packaging/el7-test-run.sh [deleted file]
packaging/el7/add-efficios-repo.sh [new file with mode: 0755]
packaging/el7/install-lttng-packages.sh [new file with mode: 0755]
packaging/sles12/add-efficios-repo.sh [new file with mode: 0755]
packaging/sles12/install-lttng-packages.sh [new file with mode: 0755]
packaging/systemd-enable-and-start-relayd.sh [new file with mode: 0755]
packaging/systemd-enable-and-start-sessiond.sh [new file with mode: 0755]
packaging/test-run.sh [new file with mode: 0755]
packaging/test.sh [deleted file]

diff --git a/packaging/el7-add-efficios-repo.sh b/packaging/el7-add-efficios-repo.sh
deleted file mode 100755 (executable)
index 5d44c2b..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#/bin/sh
-
-yum -y install wget
-
-wget -P /etc/yum.repos.d/ http://packages.efficios.com/repo.files/EfficiOS-RHEL7-x86-64.repo
-
-rpmkeys --import http://packages.efficios.com/rhel/repo.key
-
-yum updateinfo
diff --git a/packaging/el7-enable-and-start-relayd.sh b/packaging/el7-enable-and-start-relayd.sh
deleted file mode 100755 (executable)
index 045f52e..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-systemctl enable lttng-relayd
-
-systemctl start lttng-relayd
diff --git a/packaging/el7-enable-and-start-sessiond.sh b/packaging/el7-enable-and-start-sessiond.sh
deleted file mode 100755 (executable)
index c1f2eb7..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-systemctl enable lttng-sessiond
-
-systemctl start lttng-sessiond
diff --git a/packaging/el7-install-lttng-packages.sh b/packaging/el7-install-lttng-packages.sh
deleted file mode 100755 (executable)
index e269a27..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-yum install -y kmod-lttng-modules lttng-tools babeltrace
-
diff --git a/packaging/el7-test-run.sh b/packaging/el7-test-run.sh
deleted file mode 100755 (executable)
index 751b0e2..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-lttng create
-lttng enable-event -a -k
-lttng start
-sleep 1
-lttng stop
-
-count=$(lttng view | wc -l)
-if [ $count -lt "100" ]; then
-       false
-fi
-
-
diff --git a/packaging/el7/add-efficios-repo.sh b/packaging/el7/add-efficios-repo.sh
new file mode 100755 (executable)
index 0000000..5d44c2b
--- /dev/null
@@ -0,0 +1,9 @@
+#/bin/sh
+
+yum -y install wget
+
+wget -P /etc/yum.repos.d/ http://packages.efficios.com/repo.files/EfficiOS-RHEL7-x86-64.repo
+
+rpmkeys --import http://packages.efficios.com/rhel/repo.key
+
+yum updateinfo
diff --git a/packaging/el7/install-lttng-packages.sh b/packaging/el7/install-lttng-packages.sh
new file mode 100755 (executable)
index 0000000..e269a27
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+yum install -y kmod-lttng-modules lttng-tools babeltrace
+
diff --git a/packaging/sles12/add-efficios-repo.sh b/packaging/sles12/add-efficios-repo.sh
new file mode 100755 (executable)
index 0000000..cac6fab
--- /dev/null
@@ -0,0 +1,7 @@
+#/bin/sh
+
+zypper --non-interactive addrepo http://packages.efficios.com/repo.files/EfficiOS-SLE12-x86-64.repo
+
+rpmkeys --import http://packages.efficios.com/sle/repo.key
+
+zypper --non-interactive refresh
diff --git a/packaging/sles12/install-lttng-packages.sh b/packaging/sles12/install-lttng-packages.sh
new file mode 100755 (executable)
index 0000000..4e37049
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+zypper --non-interactive install lttng-tools babeltrace
+
diff --git a/packaging/systemd-enable-and-start-relayd.sh b/packaging/systemd-enable-and-start-relayd.sh
new file mode 100755 (executable)
index 0000000..045f52e
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+systemctl enable lttng-relayd
+
+systemctl start lttng-relayd
diff --git a/packaging/systemd-enable-and-start-sessiond.sh b/packaging/systemd-enable-and-start-sessiond.sh
new file mode 100755 (executable)
index 0000000..c1f2eb7
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+systemctl enable lttng-sessiond
+
+systemctl start lttng-sessiond
diff --git a/packaging/test-run.sh b/packaging/test-run.sh
new file mode 100755 (executable)
index 0000000..751b0e2
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+lttng create
+lttng enable-event -a -k
+lttng start
+sleep 1
+lttng stop
+
+count=$(lttng view | wc -l)
+if [ $count -lt "100" ]; then
+       false
+fi
+
+
diff --git a/packaging/test.sh b/packaging/test.sh
deleted file mode 100755 (executable)
index bb101b6..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-true
-true
This page took 0.028154 seconds and 4 git commands to generate.