-
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): adds case for add_ohmyzsh_plugins (#25)
- Loading branch information
1 parent
a3a5da5
commit 9ca6e49
Showing
2 changed files
with
43 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,26 @@ | ||
[common] | ||
setup-tag = "setup" | ||
|
||
[[common.test.commands]] | ||
|
||
command = "bash" | ||
arguments = [ | ||
"-ceu", | ||
"cat ~/.zshrc", | ||
] | ||
assert-stdout-contains = "plugins=(\n git\n copyfile\n ### NEW PLUGINS HERE ###\n)\n" | ||
|
||
[case.linux] | ||
os = "ubuntu-22.04" | ||
image = "phusion/baseimage:jammy-1.0.4" | ||
|
||
[case.linux.test] | ||
|
||
assert-install-names = ["apt_get_packages", "ohmyzsh", "add_ohmyzsh_plugins"] | ||
|
||
[case.macos] | ||
os = "macos-13" | ||
|
||
[case.macos.test] | ||
|
||
assert-install-names = ["ohmyzsh", "add_ohmyzsh_plugins"] |
17 changes: 17 additions & 0 deletions
17
test/resources/functions/add_ohmyzsh_plugins/test_config.toml
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,17 @@ | ||
[ apt_get_packages ] | ||
tags = [ "setup" ] | ||
options = [ | ||
"--no-install-recommends", | ||
"git", | ||
"zsh" | ||
] | ||
|
||
[ ohmyzsh ] | ||
tags = [ "setup" ] | ||
options = [] | ||
|
||
[ add_ohmyzsh_plugins ] | ||
options = [ | ||
"git", | ||
"copyfile" | ||
] |