mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-24 16:04:37 +03:00
18 lines
566 B
Bash
18 lines
566 B
Bash
#!/bin/bash
|
|
|
|
# This test file will be executed against one of the scenarios devcontainer.json test that
|
|
# includes the 'color' feature with "favorite": "gold" option.
|
|
|
|
set -e
|
|
|
|
# Optional: Import test library bundled with the devcontainer CLI
|
|
source dev-container-features-test-lib
|
|
|
|
# Feature-specific tests
|
|
# The 'check' command comes from the dev-container-features-test-lib.
|
|
check "execute command" bash -c "color | grep 'my favorite color is gold'"
|
|
|
|
# Report result
|
|
# If any of the checks above exited with a non-zero exit code, the test will fail.
|
|
reportResults
|