File tree Expand file tree Collapse file tree 2 files changed +47
-66
lines changed
Expand file tree Collapse file tree 2 files changed +47
-66
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This test file will be executed against an auto-generated devcontainer.json that
4+ # includes the 'hello' Feature with no options.
5+ #
6+ # For more information, see: https://github.com/devcontainers/cli/blob/main/docs/features/test.md
7+ #
8+ # Eg:
9+ # {
10+ # "image": "<..some-base-image...>",
11+ # "features": {
12+ # "hello": {}
13+ # },
14+ # "remoteUser": "root"
15+ # }
16+ #
17+ # Thus, the value of all options will fall back to the default value in
18+ # the Feature's 'devcontainer-feature.json'.
19+ # For the 'hello' feature, that means the default favorite greeting is 'hey'.
20+ #
21+ # These scripts are run as 'root' by default. Although that can be changed
22+ # with the '--remote-user' flag.
23+ #
24+ # This test can be run with the following command:
25+ #
26+ # devcontainer features test \
27+ # --features hello \
28+ # --remote-user root \
29+ # --skip-scenarios \
30+ # --base-image mcr.microsoft.com/devcontainers/base:ubuntu \
31+ # /path/to/this/repo
32+
33+ set -e
34+
35+ # Optional: Import test library bundled with the devcontainer CLI
36+ # See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib
37+ # Provides the 'check' and 'reportResults' commands.
38+ source dev-container-features-test-lib
39+
40+ # Feature-specific tests
41+ # The 'check' command comes from the dev-container-features-test-lib. Syntax is...
42+ # check <LABEL> <cmd> [args...]
43+ check " execute command" bash -c " echo OK"
44+
45+ # Report results
46+ # If any of the checks above exited with a non-zero exit code, the test will fail.
47+ reportResults
You can’t perform that action at this time.
0 commit comments