mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-30 22:21:02 +01:00
tests/emacs: reorganize darwin and linux
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
e9bde7692e
commit
c283a23ef6
21 changed files with 14 additions and 15 deletions
18
tests/modules/services/emacs/linux/emacs-default-editor.sh
Normal file
18
tests/modules/services/emacs/linux/emacs-default-editor.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
set +u
|
||||
source $TESTED/home-path/etc/profile.d/hm-session-vars.sh
|
||||
set -u
|
||||
|
||||
check_arguments () {
|
||||
if [ "$1" != "$2" ]; then
|
||||
@coreutils@/bin/cat <<- EOF
|
||||
Expected arguments:
|
||||
$1
|
||||
but got:
|
||||
$2
|
||||
EOF
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
check_arguments "--create-frame" "$($EDITOR)"
|
||||
check_arguments "foo bar baz" "$($EDITOR foo bar baz)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue