From a3cc62a52c143d76cde25fe0e04acdaf21ca6d0d Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 29 Apr 2018 23:01:43 -0700 Subject: [PATCH 1/3] Restore the ability to build multiple configurations ... in the shared .build directory. Signed-off-by: Alexey Neyman --- scripts/crosstool-NG.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/crosstool-NG.sh b/scripts/crosstool-NG.sh index 9bd80ad3..19b9519b 100644 --- a/scripts/crosstool-NG.sh +++ b/scripts/crosstool-NG.sh @@ -117,6 +117,7 @@ cat "${paths_sh_location}" |while read trash line; do eval path=${line#*=} if [ ! -r "${CT_LIB_DIR}/scripts/override/$tool" ]; then if [ -n "${path}" ]; then + CT_DoExecLog ALL rm -f "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" CT_DoExecLog ALL ln -s "${path}" "${CT_TOOLS_OVERRIDE_DIR}/bin/${tool}" fi continue From b04bd522709fabbff4ebb010d12a8724df2c66c3 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 29 Apr 2018 23:02:27 -0700 Subject: [PATCH 2/3] Add unzip to ArchLinux docker image Needed by android sample. Signed-off-by: Alexey Neyman --- testing/docker/archlinux/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/docker/archlinux/Dockerfile b/testing/docker/archlinux/Dockerfile index eee2f47b..4c90925a 100644 --- a/testing/docker/archlinux/Dockerfile +++ b/testing/docker/archlinux/Dockerfile @@ -1,3 +1,3 @@ FROM hoverbear/archlinux RUN pacman -Syu --noconfirm -RUN pacman -S --noconfirm base-devel git help2man python +RUN pacman -S --noconfirm base-devel git help2man python unzip From bd60424e099623a148a5d186c6f268807e33896c Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 29 Apr 2018 23:03:26 -0700 Subject: [PATCH 3/3] Add the ability to run some but not all samples in docker Also, build containers with --no-cache: distributions like ArchLinux retire their packages very quickly, need to always use up-to-date package databases. Signed-off-by: Alexey Neyman --- .../{ctng-test-all => ctng-build-sample} | 5 +- testing/docker/common-scripts/ctng-test-basic | 8 +++ testing/docker/dmgr.sh | 51 ++++++++++++++----- 3 files changed, 47 insertions(+), 17 deletions(-) rename testing/docker/common-scripts/{ctng-test-all => ctng-build-sample} (64%) create mode 100755 testing/docker/common-scripts/ctng-test-basic diff --git a/testing/docker/common-scripts/ctng-test-all b/testing/docker/common-scripts/ctng-build-sample similarity index 64% rename from testing/docker/common-scripts/ctng-test-all rename to testing/docker/common-scripts/ctng-build-sample index f0ba2663..3f21478d 100755 --- a/testing/docker/common-scripts/ctng-test-all +++ b/testing/docker/common-scripts/ctng-build-sample @@ -6,7 +6,4 @@ rm -rf bld-samples mkdir bld-samples cd bld-samples export PATH=$HOME/inst-ctng/bin:$PATH -ct-ng help -ct-ng list-samples -ct-ng list-steps -ct-ng build-all +ct-ng build-all ${1+CT_SAMPLES="$*"} diff --git a/testing/docker/common-scripts/ctng-test-basic b/testing/docker/common-scripts/ctng-test-basic new file mode 100755 index 00000000..75412e1e --- /dev/null +++ b/testing/docker/common-scripts/ctng-test-basic @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e +cd +export PATH=$HOME/inst-ctng/bin:$PATH +ct-ng help +ct-ng list-samples +ct-ng list-steps diff --git a/testing/docker/dmgr.sh b/testing/docker/dmgr.sh index 1f2b1203..08247844 100755 --- a/testing/docker/dmgr.sh +++ b/testing/docker/dmgr.sh @@ -19,16 +19,19 @@ usage() cat >&2 <