-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
37 lines (32 loc) · 1.17 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# This test file will be executed against an auto-generated devcontainer.json that
# includes the 'python-launcher' feature with no options.
#
# Eg:
# {
# "image": "<..some-base-image...>",
# "features": {
# "python-launcher": {}
# }
# }
#
# Thus, the value of all options will fall back to the default value in
# the feature's 'devcontainer-feature.json'.
# For the 'python-launcher' feature, that means the default favorite greeting is '4.3.0'.
#
# These scripts are run as 'root' by default. Although that can be changed
# with the --remote-user flag.
#
# This test can be run with the following command (from the root of this repo)
# devcontainer features test \
# --features python-launcher \
# --base-image mcr.microsoft.com/devcontainers/base:ubuntu .
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 "Python Launcher for Unix Help" py --help
# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
reportResults