diff options
| author | 2020-01-07 16:27:27 -0800 | |
|---|---|---|
| committer | 2020-01-07 16:27:27 -0800 | |
| commit | 487f25a7a6870ca78d7daeeccb7218ed4681a429 (patch) | |
| tree | 23090472d88a8a418f76b89a32900d091132423e /test/integration | |
| parent | e91f599f13660a2d60831455f650aa44a3bfb508 (diff) | |
| download | emacs-config-487f25a7a6870ca78d7daeeccb7218ed4681a429.tar.gz emacs-config-487f25a7a6870ca78d7daeeccb7218ed4681a429.zip | |
Move bats tests to test/integration
Diffstat (limited to 'test/integration')
| -rw-r--r-- | test/integration/oni-alert.bats | 9 | ||||
| -rw-r--r-- | test/integration/oni-scheme.bats | 23 |
2 files changed, 32 insertions, 0 deletions
diff --git a/test/integration/oni-alert.bats b/test/integration/oni-alert.bats new file mode 100644 index 0000000..8c42fdf --- /dev/null +++ b/test/integration/oni-alert.bats @@ -0,0 +1,9 @@ +#!/usr/bin/env bats + +@test "Loading alert loads oni-alert" { + run emacs -batch -l package -f package-initialize \ + -l alert \ + -eval "(prin1 (featurep 'oni-alert))" + + [ "$output" = "t" ] +} diff --git a/test/integration/oni-scheme.bats b/test/integration/oni-scheme.bats new file mode 100644 index 0000000..acfa53d --- /dev/null +++ b/test/integration/oni-scheme.bats @@ -0,0 +1,23 @@ +#!/usr/bin/env bats + +@test "Opening a scheme file loads oni-scheme" { + run emacs -batch -l package -f package-initialize \ + -visit test.scm \ + -eval "(prin1 (featurep 'oni-scheme))" + + [ "$output" = "t" ] +} + +@test "Opening a file with the SCSH interpreter loads scheme-mode" { + filename="$(mktemp)" + + echo "#!/usr/bin/scsh -s" > "$filename" + + run emacs -batch -l package -f package-initialize \ + -visit "$filename" \ + -eval "(prin1 major-mode)" + + rm "$filename" + + [ "$output" = "scheme-mode" ] +} |
