fix chown and seccomp
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
60f032f6f5
commit
2569457739
8197 changed files with 30742 additions and 1596554 deletions
50
vendor/github.com/opencontainers/runtime-spec/schema/Makefile
generated
vendored
50
vendor/github.com/opencontainers/runtime-spec/schema/Makefile
generated
vendored
|
@ -1,50 +0,0 @@
|
|||
GOOD_TESTS = $(wildcard test/good/*.json)
|
||||
BAD_TESTS = $(wildcard test/bad/*.json)
|
||||
|
||||
default: validate
|
||||
|
||||
help:
|
||||
@echo "Usage: make [target]"
|
||||
@echo
|
||||
@echo " * 'fmt' - format the json with indentation"
|
||||
@echo " * 'help' - show this help information"
|
||||
@echo " * 'validate' - build the validation tool"
|
||||
|
||||
fmt:
|
||||
find . -name '*.json' -exec bash -c 'jq --indent 4 -M . {} > xx && mv xx {} || echo "skipping invalid {}"' \;
|
||||
|
||||
.PHONY: validate
|
||||
validate: validate.go
|
||||
go get -d ./...
|
||||
go build ./validate.go
|
||||
|
||||
test: validate $(TESTS)
|
||||
for TYPE in $$(ls test); \
|
||||
do \
|
||||
echo "testing $${TYPE}"; \
|
||||
for FILE in $$(ls "test/$${TYPE}/good"); \
|
||||
do \
|
||||
echo " testing test/$${TYPE}/good/$${FILE}"; \
|
||||
if ./validate "$${TYPE}-schema.json" "test/$${TYPE}/good/$${FILE}" ; \
|
||||
then \
|
||||
echo " received expected validation success" ; \
|
||||
else \
|
||||
echo " received unexpected validation failure" ; \
|
||||
exit 1; \
|
||||
fi \
|
||||
done; \
|
||||
for FILE in $$(ls "test/$${TYPE}/bad"); \
|
||||
do \
|
||||
echo " testing test/$${TYPE}/bad/$${FILE}"; \
|
||||
if ./validate "$${TYPE}-schema.json" "test/$${TYPE}/good/$${FILE}" ; \
|
||||
then \
|
||||
echo " received unexpected validation success" ; \
|
||||
exit 1; \
|
||||
else \
|
||||
echo " received expected validation failure" ; \
|
||||
fi \
|
||||
done; \
|
||||
done
|
||||
|
||||
clean:
|
||||
rm -f validate
|
Loading…
Add table
Add a link
Reference in a new issue