mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 04:24:00 -07:00
Add integration tests for binary modules
This commit is contained in:
parent
35246abb2e
commit
6ad8ec0919
5 changed files with 141 additions and 0 deletions
|
@ -284,3 +284,9 @@ test_lookup_paths: setup
|
|||
no_log: setup
|
||||
# This test expects 7 loggable vars and 0 non loggable ones, if either mismatches it fails, run the ansible-playbook command to debug
|
||||
[ "$$(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:
|
||||
cd library && GOOS=linux GOARCH=amd64 go build -o helloworld_linux helloworld.go
|
||||
cd library && GOOS=windows GOARCH=amd64 go build -o helloworld_win32nt.exe helloworld.go
|
||||
cd library && GOOS=darwin GOARCH=amd64 go build -o helloworld_darwin helloworld.go
|
||||
ansible-playbook test_binary_modules.yml -i $(INVENTORY) -v $(TEST_FLAGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue