1
0
Fork 0

Add integration test for oni-c++

This commit is contained in:
Tom Willemse 2020-01-13 18:13:16 -08:00
parent 2bc74ded5b
commit c23059b74e
2 changed files with 18 additions and 0 deletions

View file

@ -229,6 +229,13 @@ integration-test-oni-browse-url:
- package
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:
stage: integration-test
image: registry.gitlab.com/ryuslash/emacs-config

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