Skip to content

Commit

Permalink
test(functions): add case for sdkman (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyoungstudios authored Oct 21, 2024
1 parent 51c4db1 commit 510ca4c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/resources/functions/sdkman/runners.toml
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]
10 changes: 10 additions & 0 deletions test/resources/functions/sdkman/test_config.toml
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 = []

0 comments on commit 510ca4c

Please sign in to comment.