Add integration test for oni-conf
This commit is contained in:
parent
5fe2bca5cc
commit
28e10b8e89
2 changed files with 18 additions and 0 deletions
|
@ -208,6 +208,13 @@ integration-test-oni-bats:
|
|||
- package
|
||||
script: make integration-test-oni-bats TEST_ARCHIVE=$(realpath bin/)
|
||||
|
||||
integration-test-oni-conf:
|
||||
stage: integration-test
|
||||
image: registry.gitlab.com/ryuslash/emacs-config
|
||||
dependencies:
|
||||
- package
|
||||
script: make integration-test-oni-conf TEST_ARCHIVE=$(realpath bin/)
|
||||
|
||||
integration-test-oni-bookmark:
|
||||
stage: integration-test
|
||||
image: registry.gitlab.com/ryuslash/emacs-config
|
||||
|
|
11
test/integration/oni-conf.bats
Normal file
11
test/integration/oni-conf.bats
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
@test "Opening a .conf file loads oni-conf" {
|
||||
run emacs -batch -l package -f package-initialize \
|
||||
-visit test.conf \
|
||||
-eval "(prin1 (featurep 'oni-conf))"
|
||||
|
||||
echo "$output"
|
||||
|
||||
[ "$output" = "t" ]
|
||||
}
|
Loading…
Reference in a new issue