From bd60424e099623a148a5d186c6f268807e33896c Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Sun, 29 Apr 2018 23:03:26 -0700 Subject: 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 diff --git a/testing/docker/common-scripts/ctng-build-sample b/testing/docker/common-scripts/ctng-build-sample new file mode 100755 index 0000000..3f21478 --- /dev/null +++ b/testing/docker/common-scripts/ctng-build-sample @@ -0,0 +1,9 @@ +#!/bin/bash + +set -e +cd +rm -rf bld-samples +mkdir bld-samples +cd bld-samples +export PATH=$HOME/inst-ctng/bin:$PATH +ct-ng build-all ${1+CT_SAMPLES="$*"} diff --git a/testing/docker/common-scripts/ctng-test-all b/testing/docker/common-scripts/ctng-test-all deleted file mode 100755 index f0ba266..0000000 --- a/testing/docker/common-scripts/ctng-test-all +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -set -e -cd -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 diff --git a/testing/docker/common-scripts/ctng-test-basic b/testing/docker/common-scripts/ctng-test-basic new file mode 100755 index 0000000..75412e1 --- /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 1f2b120..0824784 100755 --- a/testing/docker/dmgr.sh +++ b/testing/docker/dmgr.sh @@ -19,16 +19,19 @@ usage() cat >&2 <