File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66# Feature-specific tests
7- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
8- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
7+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
8+ check " execute command" forc --version | grep ' forc [0-9]. '
99check " execute command" fuelup default | grep ' beta-1'
1010
1111reportResults
Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66# Feature-specific tests
7- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
8- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
7+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
8+ check " execute command" forc --version | grep ' forc [0-9]. '
99check " execute command" fuelup default | grep ' beta-2'
1010
1111reportResults
Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66# Feature-specific tests
7- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
8- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
7+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
8+ check " execute command" forc --version | grep ' forc [0-9]. '
99check " execute command" fuelup default | grep ' beta-3'
1010
1111reportResults
Original file line number Diff line number Diff line change 1818source dev-container-features-test-lib
1919
2020# Feature-specific tests
21- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
22- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
21+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
22+ check " execute command" forc --version | grep ' forc [0-9]. '
2323check " execute command" fuelup default | grep ' latest'
2424
2525# If any of the checks above exited with a non-zero exit code, the test will fail.
Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66# Feature-specific tests
7- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
8- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
7+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
8+ check " execute command" forc --version | grep ' forc [0-9]. '
99check " execute command" fuelup default | grep ' latest'
1010
1111reportResults
Original file line number Diff line number Diff line change 44source dev-container-features-test-lib
55
66# Feature-specific tests
7- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
8- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
7+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
8+ check " execute command" forc --version | grep ' forc [0-9]. '
99check " execute command" fuelup default | grep ' nightly'
1010
1111reportResults
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ source dev-container-features-test-lib
55
66# Feature-specific tests
77check " execute command" whoami | grep ' root'
8- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
9- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
8+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
9+ check " execute command" forc --version | grep ' forc [0-9]. '
1010check " execute command" fuelup default | grep ' latest'
1111
1212reportResults
Original file line number Diff line number Diff line change 1818# --base-image mcr.microsoft.com/devcontainers/base:ubuntu \
1919# /path/to/this/repo
2020
21- set -x
21+ set -e
2222
2323# Optional: Import test library bundled with the devcontainer CLI
2424# Provides the 'check' and 'reportResults' commands.
2525source dev-container-features-test-lib
2626
27- echo $PATH
28- ls ~ /.fuelup/bin
29-
3027# Feature-specific tests
3128# The 'check' command comes from the dev-container-features-test-lib.
32- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
33- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
29+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
30+ check " execute command" forc --version | grep ' forc [0-9]. '
3431check " execute command" fuelup default | grep ' latest'
3532
3633# Report result
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ source dev-container-features-test-lib
55
66# Feature-specific tests
77check " execute command" whoami | grep ' vscode'
8- check " execute command" fuelup --version | grep -E ' fuelup (\d+\.)+\d+ '
9- check " execute command" forc --version | grep -E ' forc (\d+\.)+\d+ '
8+ check " execute command" fuelup --version | grep ' fuelup [0-9]. '
9+ check " execute command" forc --version | grep ' forc [0-9]. '
1010check " execute command" fuelup default | grep ' latest'
1111
1212reportResults
You can’t perform that action at this time.
0 commit comments