Skip to content

Commit 326358c

Browse files
committed
run test-suite on Alpine CI
1 parent 429e29b commit 326358c

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/alpine.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
with:
3636
branch: ${{ matrix.alpine }}
3737
extra-repositories: https://dl-cdn.alpinelinux.org/alpine/edge/testing
38-
packages: rocq dune bash python3 graphviz make
38+
packages: rocq dune bash python3 graphviz make findutils diffutils grep rsync
3939
- name: 'dune build @stdlib-html # depends on stdlib'
4040
shell: alpine.sh {0}
4141
run: 'dune build @stdlib-html # depends on stdlib'
@@ -49,7 +49,6 @@ jobs:
4949
- name: Check for duplicate files
5050
shell: alpine.sh {0}
5151
run: dev/tools/check-duplicate-files.sh
52-
- name: 'COQEXTRAFLAGS=... make -C test-suite -j -k'
52+
- name: 'make -j -k test-suite'
5353
shell: alpine.sh {0}
54-
run: 'COQEXTRAFLAGS="-Q _build/install/default/lib/coq/user-contrib/Stdlib/ Stdlib" make -C test-suite -j -k'
55-
continue-on-error: true
54+
run: 'make -j -k test-suite'

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
DUNE=dev/with-rocq-wrap.sh dune
22

3-
.PHONY: clean all install dune dune-install
3+
.PHONY: clean all install dune dune-install test-suite
44

55
all install:
66
+$(MAKE) -j -C theories $@
@@ -24,5 +24,11 @@ refman-html:
2424
stdlib-html:
2525
$(DUNE) build --root . @stdlib-html
2626

27+
test-suite:
28+
test -d _build/default/theories/
29+
+COQEXTRAFLAGS="-Q ../_build/default/theories/ Stdlib" \
30+
COQCHKEXTRAFLAGS="$$COQEXTRAFLAGS" \
31+
$(MAKE) -C test-suite
32+
2733
clean:
2834
+$(MAKE) -C theories clean

test-suite/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@ else
3030
export FINDLIB_SEP=:
3131
endif
3232

33+
# these variables are meant to be overridden if you want to add *extra* flags
3334
COQEXTRAFLAGS?=
35+
COQCHKEXTRAFLAGS?=
36+
3437
COQFLAGS?=$(COQEXTRAFLAGS)
38+
COQCHKFLAGS?=-silent -o $(COQCHKEXTRAFLAGS)
3539

3640
coqc := rocq c -q -R prerequisite TestSuite $(COQFLAGS)
37-
coqchk := rocqchk -R prerequisite TestSuite
41+
coqchk := rocqchk -R prerequisite TestSuite $(COQCHKFLAGS)
3842
coqdoc := rocq doc
3943
coqtop := rocq repl -q -test-mode -R prerequisite TestSuite
4044

0 commit comments

Comments
 (0)