diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-26 17:34:46 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-05-26 17:43:23 +1000 |
commit | b334b39590d2cb47ca7acdfc287e4c55d4ba973c (patch) | |
tree | 7c9a7ab87e4d18df92c654763519b73d02455695 /opal-ci | |
parent | 8d18e38a7c61e01b9b6ad5a70bf48697b70aa0ec (diff) | |
download | skiboot-b334b39590d2cb47ca7acdfc287e4c55d4ba973c.zip skiboot-b334b39590d2cb47ca7acdfc287e4c55d4ba973c.tar.gz skiboot-b334b39590d2cb47ca7acdfc287e4c55d4ba973c.tar.bz2 |
Enable multiple boot tests based on op-build verisons
We also add a makefile to help people re-create the images.
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'opal-ci')
-rw-r--r-- | opal-ci/Makefile | 86 | ||||
-rw-r--r-- | opal-ci/README | 29 |
2 files changed, 115 insertions, 0 deletions
diff --git a/opal-ci/Makefile b/opal-ci/Makefile new file mode 100644 index 0000000..2f3b6f3 --- /dev/null +++ b/opal-ci/Makefile @@ -0,0 +1,86 @@ + +OP_BUILD_GIT?=git@github.com:open-power/op-build.git +BUILDROOT_GIT?=https://github.com/open-power/buildroot +DL_CACHE?=~/op-build/dl +SCRATCH?=/scratch/stewart/op-build/ + +all: op-build-images + +op-build-images: build-op-build-v1.0 build-op-build-v1.1 build-op-build-v1.2 build-op-build-v1.2.1 + +op-build: + git clone ${OP_BUILD_GIT} op-build + (cd op-build && git submodule init) + (cd op-build && git config submodule.buildroot.url ${BUILDROOT_GIT}) + (cd op-build && git submodule update --reference ${OP_BUILD_GIT}) + +op-build-v1.0: op-build + git clone -s op-build op-build-v1.0 + (cd op-build && git submodule init) + (cd op-build-v1.0 && git config submodule.buildroot.url ${BUILDROOT_GIT}) + (cd op-build-v1.0 && git checkout v1.0) + (cd op-build-v1.0 && git submodule update --recursive) + (cd op-build-v1.0 && cp -rl ${DL_CACHE}/* dl/) + rm -rf ${SCRATCH}/op-build-v1.0 && mkdir ${SCRATCH}/op-build-v1.0 + (rm -rf op-build-v1.0/output && ln -s ${SCRATCH}/op-build-v1.0 op-build-v1.0/output) + +op-build-v1.1: op-build + git clone -s op-build op-build-v1.1 + (cd op-build && git submodule init) + (cd op-build-v1.1 && git config submodule.buildroot.url ${BUILDROOT_GIT}) + (cd op-build-v1.1 && git checkout v1.1) + (cd op-build-v1.1 && git submodule update --recursive) + (cd op-build-v1.1 && cp -rl ${DL_CACHE}/* dl/) + rm -rf ${SCRATCH}/op-build-v1.1 && mkdir ${SCRATCH}/op-build-v1.1 + (rm -rf op-build-v1.1/output && ln -s ${SCRATCH}/op-build-v1.1 op-build-v1.1/output) + +op-build-v1.2: op-build + git clone -s op-build op-build-v1.2 + (cd op-build && git submodule init) + (cd op-build-v1.2 && git config submodule.buildroot.url ${BUILDROOT_GIT}) + (cd op-build-v1.2 && git checkout v1.2) + (cd op-build-v1.2 && git submodule update --recursive) + (cd op-build-v1.2 && cp -rl ${DL_CACHE}/* dl/) + rm -rf ${SCRATCH}/op-build-v1.2 && mkdir ${SCRATCH}/op-build-v1.2 + (rm -rf op-build-v1.2/output && ln -s ${SCRATCH}/op-build-v1.2 op-build-v1.2/output) + +op-build-v1.2.1: op-build + git clone -s op-build op-build-v1.2.1 + (cd op-build && git submodule init) + (cd op-build-v1.2.1 && git config submodule.buildroot.url ${BUILDROOT_GIT}) + (cd op-build-v1.2.1 && git checkout v1.2.1) + (cd op-build-v1.2.1 && git submodule update --recursive) + (cd op-build-v1.2.1 && cp -rl ${DL_CACHE}/* dl/) + rm -rf ${SCRATCH}/op-build-v1.2.1 && mkdir ${SCRATCH}/op-build-v1.2.1 + (rm -rf op-build-v1.2.1/output && ln -s ${SCRATCH}/op-build-v1.2.1 op-build-v1.2.1/output) + +build-op-build-v1.0: op-build-v1.0 + cd op-build-v1.0 && ../run-op-build-mambo.sh + +build-op-build-v1.1: op-build-v1.1 + cd op-build-v1.1 && ../run-op-build-mambo.sh + +build-op-build-v1.2: op-build-v1.2 + cd op-build-v1.2 && ../run-op-build-mambo.sh + +build-op-build-v1.2.1: op-build-v1.2.1 + cd op-build-v1.2.1 && ../run-op-build-mambo.sh + +images/op-build-v1.0: images-dir + cp -r op-build-v1.0/output/images images/op-build-v1.0 + +images/op-build-v1.1: images-dir + cp -r op-build-v1.1/output/images images/op-build-v1.1 + +images/op-build-v1.2: images-dir + cp -r op-build-v1.2/output/images images/op-build-v1.2 + +images/op-build-v1.2.1: images-dir + cp -r op-build-v1.2.1/output/images images/op-build-v1.2.1 + +images-dir: + mkdir images; + +.PHONY: images + +images: images/op-build-v1.0 images/op-build-v1.1 images/op-build-v1.2 images/op-build-v1.2.1 diff --git a/opal-ci/README b/opal-ci/README new file mode 100644 index 0000000..5e53686 --- /dev/null +++ b/opal-ci/README @@ -0,0 +1,29 @@ +OPAL-CI +------- + +Magic scripts for doing CI regression testing. + +Currently the makefile targets building op-build firmware (targeted at Mambo +simulator) for all current op-build releases. + +Since skiboot maintains compatibility, these binaries should *ALWAYS* boot +and work. + +The provided makefile to recreate the various zImage.epapr images should be +a good starting point. + +I run it like this: +cd opal-ci +export BUILDROOT_GIT=~/op-build/.git/modules/buildroot/ +export OP_BUILD_GIT=~/op-build/ +export DL_CACHE=~/op-build/dl +export SCRATCH=/scratch/stewart/op-build/ +make -j2 images + +DL_CACHE points to an existing op-build tree, so we don't have to download +all the source tarballs again + +SCRATCH is where all compilation will happen, must have >20GB free space + +BUILDROOT_GIT and OP_BUILD_GIT exist to prevent you having to clone from +github.
\ No newline at end of file |