From d881c6ff7509e7f85e508a97ab7ca5f8bb888249 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 20 Mar 2017 15:53:22 +0000 Subject: [PATCH] Move test related code to the test directory This does not yet move the `make test` options in the Makefile, will probably move those too later. Signed-off-by: Justin Cormack --- Makefile | 5 +++-- {tools => test}/check/Dockerfile | 0 {tools => test}/check/Makefile | 0 {tools => test}/check/check-kernel-config.sh | 0 {tools => test}/check/check.sh | 0 {tools => test}/check/etc/moby | 0 {tools => test}/test-ltp/.gitignore | 0 {tools => test}/test-ltp/Dockerfile.build | 0 {tools => test}/test-ltp/Dockerfile.pkg | 0 {tools => test}/test-ltp/Makefile | 0 {tools => test}/test-ltp/README.md | 0 {tools => test}/test-ltp/test-ltp.yaml | 0 test.yaml => test/test.yaml | 3 --- 13 files changed, 3 insertions(+), 5 deletions(-) rename {tools => test}/check/Dockerfile (100%) rename {tools => test}/check/Makefile (100%) rename {tools => test}/check/check-kernel-config.sh (100%) rename {tools => test}/check/check.sh (100%) rename {tools => test}/check/etc/moby (100%) rename {tools => test}/test-ltp/.gitignore (100%) rename {tools => test}/test-ltp/Dockerfile.build (100%) rename {tools => test}/test-ltp/Dockerfile.pkg (100%) rename {tools => test}/test-ltp/Makefile (100%) rename {tools => test}/test-ltp/README.md (100%) rename {tools => test}/test-ltp/test-ltp.yaml (100%) rename test.yaml => test/test.yaml (89%) diff --git a/Makefile b/Makefile index 337b4ad91..6b22e740c 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ moby-initrd.img: bin/moby moby.yaml moby-bzImage: moby-initrd.img -test-initrd.img: bin/moby test.yaml +test-initrd.img: bin/moby test/test.yaml $^ test-bzImage: test-initrd.img @@ -55,7 +55,7 @@ else touch $@ endif -.PHONY: hyperkit hyperkit-test +.PHONY: hyperkit hyperkit: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit moby-initrd.img moby-bzImage moby.yaml ./scripts/hyperkit.sh moby @@ -63,6 +63,7 @@ define check_test_log @cat $1 |grep -q 'Moby test suite PASSED' endef +.PHONY: hyperkit-test hyperkit-test: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit test-initrd.img test-bzImage test-cmdline rm -f disk.img script -q /dev/null ./scripts/hyperkit.sh test | tee test.log diff --git a/tools/check/Dockerfile b/test/check/Dockerfile similarity index 100% rename from tools/check/Dockerfile rename to test/check/Dockerfile diff --git a/tools/check/Makefile b/test/check/Makefile similarity index 100% rename from tools/check/Makefile rename to test/check/Makefile diff --git a/tools/check/check-kernel-config.sh b/test/check/check-kernel-config.sh similarity index 100% rename from tools/check/check-kernel-config.sh rename to test/check/check-kernel-config.sh diff --git a/tools/check/check.sh b/test/check/check.sh similarity index 100% rename from tools/check/check.sh rename to test/check/check.sh diff --git a/tools/check/etc/moby b/test/check/etc/moby similarity index 100% rename from tools/check/etc/moby rename to test/check/etc/moby diff --git a/tools/test-ltp/.gitignore b/test/test-ltp/.gitignore similarity index 100% rename from tools/test-ltp/.gitignore rename to test/test-ltp/.gitignore diff --git a/tools/test-ltp/Dockerfile.build b/test/test-ltp/Dockerfile.build similarity index 100% rename from tools/test-ltp/Dockerfile.build rename to test/test-ltp/Dockerfile.build diff --git a/tools/test-ltp/Dockerfile.pkg b/test/test-ltp/Dockerfile.pkg similarity index 100% rename from tools/test-ltp/Dockerfile.pkg rename to test/test-ltp/Dockerfile.pkg diff --git a/tools/test-ltp/Makefile b/test/test-ltp/Makefile similarity index 100% rename from tools/test-ltp/Makefile rename to test/test-ltp/Makefile diff --git a/tools/test-ltp/README.md b/test/test-ltp/README.md similarity index 100% rename from tools/test-ltp/README.md rename to test/test-ltp/README.md diff --git a/tools/test-ltp/test-ltp.yaml b/test/test-ltp/test-ltp.yaml similarity index 100% rename from tools/test-ltp/test-ltp.yaml rename to test/test-ltp/test-ltp.yaml diff --git a/test.yaml b/test/test.yaml similarity index 89% rename from test.yaml rename to test/test.yaml index 6c943e8b2..075ad2c6f 100644 --- a/test.yaml +++ b/test/test.yaml @@ -15,9 +15,6 @@ system: capabilities: - CAP_SYS_BOOT read_only: true -files: - - path: etc/docker/daemon.json - contents: '{"debug": true}' outputs: - format: kernel+initrd - format: iso-bios