Skip to content

Commit

Permalink
CI: unit tests
Browse files Browse the repository at this point in the history
In the automated tests, add a section `unit`for unit tests.

The unit tests are checked by the CI.

They can be run using `make unit`.
  • Loading branch information
strub committed Dec 11, 2023
1 parent 9c1ec6b commit bbe5e6d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [stdlib, examples]
target: [unit, stdlib, examples]
steps:
- uses: actions/checkout@v3
- name: Update OPAM & EasyCrypt dependencies
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ install: build
uninstall:
$(DUNE) uninstall

check: stdlib examples
unit: build
$(CHECK) unit

stdlib: build
$(CHECK) prelude stdlib

examples: build
$(CHECK) examples mee-cbc

check: stdlib examples
check: unit stdlib examples
@true

clean:
Expand Down
3 changes: 3 additions & 0 deletions config/tests.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ exclude = examples/MEE-CBC examples/old examples/old/list-ddh !examples/incomple

[test-mee-cbc]
okdirs = examples/MEE-CBC

[test-unit]
okdirs = tests
1 change: 1 addition & 0 deletions tests/req_allcore.ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require import AllCore.

0 comments on commit bbe5e6d

Please sign in to comment.