1
0
Fork 0

Add integration test for oni-conf

This commit is contained in:
Tom Willemse 2020-01-12 15:34:34 -08:00
parent 5fe2bca5cc
commit 28e10b8e89
2 changed files with 18 additions and 0 deletions

View file

@ -208,6 +208,13 @@ integration-test-oni-bats:
- package - package
script: make integration-test-oni-bats TEST_ARCHIVE=$(realpath bin/) 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: integration-test-oni-bookmark:
stage: integration-test stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config image: registry.gitlab.com/ryuslash/emacs-config

View 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" ]
}