summaryrefslogtreecommitdiff
path: root/testing/docker/common-scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2018-04-30 06:03:26 (GMT)
committerAlexey Neyman <stilor@att.net>2018-04-30 06:03:26 (GMT)
commitbd60424e099623a148a5d186c6f268807e33896c (patch)
tree3668983f0de90401bbe0ca710cc937a6107056c0 /testing/docker/common-scripts
parentb04bd522709fabbff4ebb010d12a8724df2c66c3 (diff)
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 <stilor@att.net>
Diffstat (limited to 'testing/docker/common-scripts')
-rwxr-xr-xtesting/docker/common-scripts/ctng-build-sample (renamed from testing/docker/common-scripts/ctng-test-all)5
-rwxr-xr-xtesting/docker/common-scripts/ctng-test-basic8
2 files changed, 9 insertions, 4 deletions
diff --git a/testing/docker/common-scripts/ctng-test-all b/testing/docker/common-scripts/ctng-build-sample
index f0ba266..3f21478 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 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