tests: Remove systctl test package

It is not longer needed.

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-05-27 14:57:40 +01:00
parent 15a05d6260
commit 9efac10874
3 changed files with 0 additions and 44 deletions

View File

@ -1,4 +0,0 @@
FROM alpine:edge
ADD . ./
ENTRYPOINT ["/bin/sh", "/check.sh"]
LABEL org.mobyproject.config='{"net": "host","pid": "host", "ipc": "host", "readonly": true}'

View File

@ -1,29 +0,0 @@
.PHONY: tag push
BASE=alpine:3.5
IMAGE=test-sysctl
default: push
hash: Dockerfile check.sh
DOCKER_CONTENT_TRUST=1 docker pull $(BASE)
tar cf - $^ | docker build --no-cache -t $(IMAGE):build -
docker run --rm --entrypoint=/bin/sh $(IMAGE):build -c "cat $^ /lib/apk/db/installed | sha1sum" | sed 's/ .*//' > hash
push: hash
DOCKER_CONTENT_TRUST=1 docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
(docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash) && \
DOCKER_CONTENT_TRUST=1 docker push linuxkit/$(IMAGE):$(shell cat hash))
docker rmi $(IMAGE):build
rm -f hash
tag: hash
docker pull linuxkit/$(IMAGE):$(shell cat hash) || \
docker tag $(IMAGE):build linuxkit/$(IMAGE):$(shell cat hash)
docker rmi $(IMAGE):build
rm -f hash
clean:
rm -f hash
.DELETE_ON_ERROR:

View File

@ -1,11 +0,0 @@
#!/bin/sh
function failed {
printf "sysctl test suite FAILED\n" >&1
exit 1
}
# this is a non default value, so will fail if sysctl failed
[ "$(sysctl -n fs.inotify.max_user_watches)" -eq 524288 ] || failed
printf "Sysctl test suite PASSED\n" >&1