From: Luis R. Rodriguez <mcgrof@kernel.org>
To: lkp@lists.01.org
Subject: [PATCH 2/4] distro: add initial opensuse support
Date: Fri, 06 Jan 2017 11:06:50 -0800 [thread overview]
Message-ID: <20170106190652.31544-3-mcgrof@kernel.org> (raw)
In-Reply-To: <20170106190652.31544-1-mcgrof@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 2722 bytes --]
Tested with:
export LKP_SRC=$PWD
export PATH=$PATH:$LKP_SRC/bin
lkp install jobs/trinity.yaml
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
README.md | 22 ++++++++++++++++++++++
distro/adaptation/opensuse | 14 ++++++++++++++
distro/installer/opensuse | 3 +++
lib/install.sh | 2 ++
4 files changed, 41 insertions(+)
create mode 100644 distro/adaptation/opensuse
create mode 100755 distro/installer/opensuse
diff --git a/README.md b/README.md
index 8031c867c0af..b45a3f6bb91f 100644
--- a/README.md
+++ b/README.md
@@ -50,4 +50,26 @@ Most test cases should install/run well in
- Ubuntu 14.04
- Archlinux
+There is however some initial support for:
+
+- OpenSUSE:
+ - jobs/trinity.yaml
+- Fedora
+
As for now, lkp-tests still needs to run as root.
+
+## Adding distribution support
+
+If you want to add support for your Linux distribution you will need
+an installer file which allows us to install dependencies per job. For
+examples look at: distro/installer/* files.
+
+Since packages can have different names we provide an adaptation mapping for a
+base Ubuntu package (since development started with that) to your own
+distribution package name, for example adaptation files see:
+distro/adaptation/*. For now adaptation files must have the architecture
+dependent packages (ie, that ends with the postfix :i386) towards the end
+of the adaptation file.
+
+You will also want to add a case for your distribution on sync_distro_sources()
+on the file lib/install.sh.
diff --git a/distro/adaptation/opensuse b/distro/adaptation/opensuse
new file mode 100644
index 000000000000..c4543bf92b66
--- /dev/null
+++ b/distro/adaptation/opensuse
@@ -0,0 +1,14 @@
+# Go get it yourself:
+# https://github.com/schacon/ruby-git
+# We have no package for it yet
+ruby-git:
+linux-libc-dev: glibc-devel
+linux-perf: perf
+build-essential:
+libc6-dev: glibc-devel
+libc6-dev:i386: glibc-devel-32bit
+libc-dev: glibc-devel
+libc-dev:i386: glibc-devel-32bit
+linux-libc-dev: glibc-devel
+linux-libc-dev:i386: glibc-devel-32bit
+libklibc-dev:
diff --git a/distro/installer/opensuse b/distro/installer/opensuse
new file mode 100755
index 000000000000..a909f3e39c05
--- /dev/null
+++ b/distro/installer/opensuse
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+sudo zypper install -y $*
diff --git a/lib/install.sh b/lib/install.sh
index 0957f13c9937..0b090f8b82bf 100755
--- a/lib/install.sh
+++ b/lib/install.sh
@@ -17,6 +17,8 @@ sync_distro_sources()
yum update
fi ;;
archlinux) yaourt -Sy ;;
+ opensuse)
+ zypper update ;;
*) echo "Not support $distro to do update" ;;
esac
}
--
2.11.0
next prev parent reply other threads:[~2017-01-06 19:06 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-06 19:06 [PATCH 0/4] lkp: add initial opensuse support Luis R. Rodriguez
2017-01-06 19:06 ` [PATCH 1/4] lib/install.sh: fix shell adapt_packages() Luis R. Rodriguez
2017-01-09 7:39 ` Ye Xiaolong
2017-01-06 19:06 ` Luis R. Rodriguez [this message]
2017-01-09 7:40 ` [PATCH 2/4] distro: add initial opensuse support Ye Xiaolong
2017-01-06 19:06 ` [PATCH 3/4] lib/install.*: make package dependency list uniq Luis R. Rodriguez
2017-01-09 7:40 ` Ye Xiaolong
2017-01-06 19:06 ` [PATCH 4/4] .gitignore: add bin/event/wakeup Luis R. Rodriguez
2017-01-09 7:40 ` Ye Xiaolong
2017-01-06 19:58 ` [PATCH 0/4] lkp: add initial opensuse support Luis R. Rodriguez
2017-01-09 7:49 ` Ye Xiaolong
2017-01-09 14:26 ` Luis R. Rodriguez
2017-01-10 2:11 ` Ye Xiaolong
2017-01-10 14:25 ` Luis R. Rodriguez
2017-01-11 1:52 ` Ye Xiaolong
2017-01-11 14:34 ` Luis R. Rodriguez
2017-02-21 1:56 ` WARNING:at_lib/test_linktables/test-linktables.c:#test_linktable_init Ye Xiaolong
2017-01-09 8:48 ` [PATCH 0/4] lkp: add initial opensuse support Philip Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170106190652.31544-3-mcgrof@kernel.org \
--to=mcgrof@kernel.org \
--cc=lkp@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.