Skip to content

Commit a7da5b0

Browse files
author
Richard Cunningham
committed
Add dummy test
1 parent 5a45e18 commit a7da5b0

File tree

2 files changed

+47
-66
lines changed

2 files changed

+47
-66
lines changed

src/devcontainer-rc/install.sh

Lines changed: 0 additions & 66 deletions
This file was deleted.

test/terminal-history/test.sh

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

0 commit comments

Comments
 (0)