From 28e10b8e893bec387e1feec42784151ff032b058 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 12 Jan 2020 15:34:34 -0800 Subject: [PATCH] Add integration test for oni-conf --- .gitlab-ci.yml | 7 +++++++ test/integration/oni-conf.bats | 11 +++++++++++ 2 files changed, 18 insertions(+) create mode 100644 test/integration/oni-conf.bats diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c4ac375..a988f44 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/test/integration/oni-conf.bats b/test/integration/oni-conf.bats new file mode 100644 index 0000000..1f9f2d3 --- /dev/null +++ b/test/integration/oni-conf.bats @@ -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" ] +}