-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(functions): add case for sdkman (#29)
- Loading branch information
1 parent
51c4db1
commit 510ca4c
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[common] | ||
os = "ubuntu-22.04" | ||
image = "phusion/baseimage:jammy-1.0.4" | ||
|
||
setup-tag = "setup" | ||
|
||
[common.test] | ||
|
||
assert-install-names = ["apt_get_packages", "sdkman"] | ||
|
||
[[common.test.commands]] | ||
|
||
command = "bash" | ||
arguments = ["-ceu", "cat ~/.bashrc"] | ||
assert-stdout-contains = 'export SDKMAN_DIR="$HOME/.sdkman"' | ||
|
||
[[common.test.commands]] | ||
|
||
command = "bash" | ||
arguments = ["-ce", 'source "$HOME/.sdkman/bin/sdkman-init.sh"; sdk help'] | ||
assert-stdout-contains = 'sdk - The command line interface (CLI) for SDKMAN!' | ||
|
||
[case.default] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ apt_get_packages ] | ||
tags = [ "setup" ] | ||
options = [ | ||
"--no-install-recommends", | ||
"unzip", | ||
"zip" | ||
] | ||
|
||
[ sdkman ] | ||
options = [] |