From: Michael Jeanson Date: Tue, 7 Jul 2015 19:13:32 +0000 (-0400) Subject: Add sles12 packaging test X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a0ad06d5983fadcf4bc21db372632513f6ff6d8a;p=lttng-ci.git Add sles12 packaging test Signed-off-by: Michael Jeanson --- diff --git a/packaging/el7-add-efficios-repo.sh b/packaging/el7-add-efficios-repo.sh deleted file mode 100755 index 5d44c2b..0000000 --- a/packaging/el7-add-efficios-repo.sh +++ /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 index 045f52e..0000000 --- a/packaging/el7-enable-and-start-relayd.sh +++ /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 index c1f2eb7..0000000 --- a/packaging/el7-enable-and-start-sessiond.sh +++ /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 index e269a27..0000000 --- a/packaging/el7-install-lttng-packages.sh +++ /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 index 751b0e2..0000000 --- a/packaging/el7-test-run.sh +++ /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 index 0000000..5d44c2b --- /dev/null +++ b/packaging/el7/add-efficios-repo.sh @@ -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 index 0000000..e269a27 --- /dev/null +++ b/packaging/el7/install-lttng-packages.sh @@ -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 index 0000000..cac6fab --- /dev/null +++ b/packaging/sles12/add-efficios-repo.sh @@ -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 index 0000000..4e37049 --- /dev/null +++ b/packaging/sles12/install-lttng-packages.sh @@ -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 index 0000000..045f52e --- /dev/null +++ b/packaging/systemd-enable-and-start-relayd.sh @@ -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 index 0000000..c1f2eb7 --- /dev/null +++ b/packaging/systemd-enable-and-start-sessiond.sh @@ -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 index 0000000..751b0e2 --- /dev/null +++ b/packaging/test-run.sh @@ -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 index bb101b6..0000000 --- a/packaging/test.sh +++ /dev/null @@ -1,2 +0,0 @@ -true -true