aboutsummaryrefslogblamecommitdiff
path: root/test/common-utils/devcontainer-info.sh
blob: 65a4a40fbcad823f38d4099931809bbec66e8c23 (plain) (tree)
























                                                                                   
#!/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