[sh] Remove dimswitch tests
Removed dimswitch, kept its tests. That will work well.
This commit is contained in:
parent
e5a6c3e350
commit
3f1443c546
2 changed files with 0 additions and 63 deletions
|
@ -1,63 +0,0 @@
|
|||
setup() {
|
||||
fut="$BATS_TEST_DIRNAME/../dimswitch"
|
||||
}
|
||||
|
||||
@test "[-v flag] Displays version information" {
|
||||
run $fut -v
|
||||
[ "$status" -eq 0 ]
|
||||
match='^.* [0-9]\.[0-9]\.[0-9]$'
|
||||
echo $output
|
||||
if echo "$output" | grep "$match";then true;else false; fi
|
||||
}
|
||||
|
||||
@test "[--version flag] Displays version information" {
|
||||
run $fut --version
|
||||
[ "$status" -eq 0 ]
|
||||
match='^.* [0-9]\.[0-9]\.[0-9]$'
|
||||
echo $output
|
||||
if echo "$output" | grep "$match";then true;else false; fi
|
||||
}
|
||||
|
||||
@test "[-h flag] Displays usage information" {
|
||||
run $fut -h
|
||||
[ "$status" -eq 0 ]
|
||||
match='^.*Usage:.*$'
|
||||
echo $output
|
||||
if echo "$output" | grep "$match";then true;else false; fi
|
||||
}
|
||||
|
||||
@test "[--help flag] Displays usage information" {
|
||||
run $fut --help
|
||||
[ "$status" -eq 0 ]
|
||||
match='^.*Usage:.*$'
|
||||
echo $output
|
||||
if echo "$output" | grep "$match";then true;else false; fi
|
||||
}
|
||||
|
||||
#### _findfile
|
||||
|
||||
@test "[-i flag] Displays config file for alacritty" {
|
||||
export DIM_PROGRAMS="alacritty"
|
||||
export DIM_ALACRITTY_CONF="$BATS_TEST_DIRNAME/files/alacritty_conf.yml"
|
||||
|
||||
run $fut -i
|
||||
[ "$status" -eq 0 ]
|
||||
match="^alacritty - $DIM_ALACRITTY_CONF"
|
||||
|
||||
echo $output
|
||||
|
||||
if echo "$output" | grep "$match";then true;else false;fi
|
||||
}
|
||||
|
||||
@test "[-i flag] Displays error if no config file found" {
|
||||
export DIM_PROGRAMS="alacritty"
|
||||
export DIM_ALACRITTY_CONF="$BATS_TEST_DIRNAME/files/nonexisting_alacritty_conf.yml"
|
||||
|
||||
run $fut -i
|
||||
[ "$status" -eq 0 ]
|
||||
match="^alacritty - No associated configuration file found."
|
||||
|
||||
echo $output
|
||||
|
||||
if echo "$output" | grep "$match";then true;else false;fi
|
||||
}
|
Loading…
Reference in a new issue