|
|
@ -23,7 +23,9 @@ VAULT_PASSWORD_FILE = vault-password
|
|
|
|
CONSUL_RUNNING := $(shell python consul_running.py)
|
|
|
|
CONSUL_RUNNING := $(shell python consul_running.py)
|
|
|
|
EUID := $(shell id -u -r)
|
|
|
|
EUID := $(shell id -u -r)
|
|
|
|
|
|
|
|
|
|
|
|
all: setup test_test_infra parsing test_var_precedence unicode test_templating_settings environment test_connection non_destructive destructive includes blocks pull check_mode test_hash test_handlers test_group_by test_vault test_tags test_lookup_paths no_log test_gathering_facts
|
|
|
|
UNAME := $(shell uname | tr '[:upper:]' '[:lower:]')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
all: setup test_test_infra parsing test_var_precedence unicode test_templating_settings environment test_connection non_destructive destructive includes blocks pull check_mode test_hash test_handlers test_group_by test_vault test_tags test_lookup_paths no_log test_gathering_facts test_binary_modules
|
|
|
|
|
|
|
|
|
|
|
|
test_test_infra:
|
|
|
|
test_test_infra:
|
|
|
|
# ensure fail/assert work locally and can stop execution with non-zero exit code
|
|
|
|
# ensure fail/assert work locally and can stop execution with non-zero exit code
|
|
|
@ -286,7 +288,15 @@ no_log: setup
|
|
|
|
[ "$$(ansible-playbook no_log_local.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -vvvvv | awk --source 'BEGIN { logme = 0; nolog = 0; } /LOG_ME/ { logme += 1;} /DO_NOT_LOG/ { nolog += 1;} END { printf "%d/%d", logme, nolog; }')" = "6/0" ]
|
|
|
|
[ "$$(ansible-playbook no_log_local.yml -i $(INVENTORY) -e outputdir=$(TEST_DIR) -vvvvv | awk --source 'BEGIN { logme = 0; nolog = 0; } /LOG_ME/ { logme += 1;} /DO_NOT_LOG/ { nolog += 1;} END { printf "%d/%d", logme, nolog; }')" = "6/0" ]
|
|
|
|
|
|
|
|
|
|
|
|
test_binary_modules:
|
|
|
|
test_binary_modules:
|
|
|
|
cd library && GOOS=linux GOARCH=amd64 go build -o helloworld_linux helloworld.go
|
|
|
|
mytmpdir=$(MYTMPDIR); \
|
|
|
|
cd library && GOOS=windows GOARCH=amd64 go build -o helloworld_win32nt.exe helloworld.go
|
|
|
|
ls -al $$mytmpdir; \
|
|
|
|
cd library && GOOS=darwin GOARCH=amd64 go build -o helloworld_darwin helloworld.go
|
|
|
|
curl https://storage.googleapis.com/golang/go1.6.2.$(UNAME)-amd64.tar.gz | tar -xz -C $$mytmpdir; \
|
|
|
|
ansible-playbook test_binary_modules.yml -i $(INVENTORY) -v $(TEST_FLAGS)
|
|
|
|
[ $$? != 0 ] && wget -qO- https://storage.googleapis.com/golang/go1.6.2.$(UNAME)-amd64.tar.gz | tar -xz -C $$mytmpdir; \
|
|
|
|
|
|
|
|
ls -al $$mytmpdir; \
|
|
|
|
|
|
|
|
cd library; \
|
|
|
|
|
|
|
|
GOROOT=$$mytmpdir/go GOOS=linux GOARCH=amd64 $$mytmpdir/go/bin/go build -o helloworld_linux helloworld.go; \
|
|
|
|
|
|
|
|
GOROOT=$$mytmpdir/go GOOS=windows GOARCH=amd64 $$mytmpdir/go/bin/go build -o helloworld_win32nt.exe helloworld.go; \
|
|
|
|
|
|
|
|
GOROOT=$$mytmpdir/go GOOS=darwin GOARCH=amd64 $$mytmpdir/go/bin/go build -o helloworld_darwin helloworld.go; \
|
|
|
|
|
|
|
|
cd ..; \
|
|
|
|
|
|
|
|
rm -rf $$mytmpdir; \
|
|
|
|
|
|
|
|
ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook test_binary_modules.yml -i $(INVENTORY) -v $(TEST_FLAGS)
|
|
|
|