blob: 65a4a40fbcad823f38d4099931809bbec66e8c23 (
plain) (
blame)
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
|
#!/bin/bash
set -e
# Optional: Import test library
source dev-container-features-test-lib
check_info() {
local info=$1
check "devcontainer-info ${info}" sh -c "devcontainer-info | grep test-${info}"
}
# Definition specific tests
check "user" bash -c "whoami | grep vscode"
check_info "version"
check_info "id"
check_info "variant"
check_info "repository"
check_info "release"
check_info "revision"
check_info "time"
check_info "url"
# Report result
reportResults
|