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