mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 01:59:07 +00:00
Merge pull request #1342 from justincormack/test-restructure
Move test related code to the test directory
This commit is contained in:
commit
dbcf66a074
5
Makefile
5
Makefile
@ -19,7 +19,7 @@ moby-initrd.img: bin/moby moby.yaml
|
|||||||
|
|
||||||
moby-bzImage: moby-initrd.img
|
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
|
test-bzImage: test-initrd.img
|
||||||
@ -55,7 +55,7 @@ else
|
|||||||
touch $@
|
touch $@
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: hyperkit hyperkit-test
|
.PHONY: hyperkit
|
||||||
hyperkit: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit moby-initrd.img moby-bzImage moby.yaml
|
hyperkit: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit moby-initrd.img moby-bzImage moby.yaml
|
||||||
./scripts/hyperkit.sh moby
|
./scripts/hyperkit.sh moby
|
||||||
|
|
||||||
@ -63,6 +63,7 @@ define check_test_log
|
|||||||
@cat $1 |grep -q 'Moby test suite PASSED'
|
@cat $1 |grep -q 'Moby test suite PASSED'
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
.PHONY: hyperkit-test
|
||||||
hyperkit-test: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit test-initrd.img test-bzImage test-cmdline
|
hyperkit-test: scripts/hyperkit.sh bin/com.docker.hyperkit bin/vpnkit test-initrd.img test-bzImage test-cmdline
|
||||||
rm -f disk.img
|
rm -f disk.img
|
||||||
script -q /dev/null ./scripts/hyperkit.sh test | tee test.log
|
script -q /dev/null ./scripts/hyperkit.sh test | tee test.log
|
||||||
|
@ -15,9 +15,6 @@ system:
|
|||||||
capabilities:
|
capabilities:
|
||||||
- CAP_SYS_BOOT
|
- CAP_SYS_BOOT
|
||||||
read_only: true
|
read_only: true
|
||||||
files:
|
|
||||||
- path: etc/docker/daemon.json
|
|
||||||
contents: '{"debug": true}'
|
|
||||||
outputs:
|
outputs:
|
||||||
- format: kernel+initrd
|
- format: kernel+initrd
|
||||||
- format: iso-bios
|
- format: iso-bios
|
Loading…
Reference in New Issue
Block a user