blob: 5a768a36057d39f943c9f1928e666f4c4cd3fec5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!/usr/bin/env bats
@test "Opening a .groovy file loads oni-groovy" {
run emacs -batch -l package -f package-initialize \
-visit test.groovy \
-eval "(prin1 (featurep 'oni-groovy))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening a Jenkinsfile loads oni-groovy" {
run emacs -batch -l package -f package-initialize \
-visit Jenkinsfile \
-eval "(prin1 (featurep 'oni-groovy))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening a .pipeline file loads oni-groovy" {
run emacs -batch -l package -f package-initialize \
-visit test.pipeline \
-eval "(prin1 (featurep 'oni-groovy))"
echo "$output"
[[ "$output" == *"t" ]]
}
@test "Opening a .pipeline file loads jenkinsfile-mode" {
run emacs -batch -l package -f package-initialize \
-visit "test.pipeline" \
-eval "(prin1 major-mode)"
echo "$output"
[[ "$output" == *"jenkinsfile-mode" ]]
}
|