Skip to content

[ fix #5302 ] make 'cabal test' work for part of the test-suite - #5536

Merged
andreasabel merged 9 commits into
masterfrom
issue5302
Sep 2, 2021
Merged

andreasabel merged 9 commits into
masterfrom
issue5302

Conversation

@andreasabel

@andreasabel andreasabel commented Aug 26, 2021 •

Copy link
Copy Markdown
Member

[ fix #5302 ] make cabal test work for part of the test-suite

cabal test will run only some of the tests defined by agda-tests

@andreasabel andreasabel added infra: test suite Issues relating to the test suite (not in changelog) agda-tests devx Developer Experience (IDE setup, linting, dev builds, etc.) (not in changelog) labels Aug 26, 2021
@andreasabel
andreasabel force-pushed the issue5302 branch 3 times, most recently from 053d27b to a50cd27 Compare August 26, 2021 20:08
'cabal test' will run only the tests defined by 'agda-tests'
@andreasabel

Copy link
Copy Markdown
Member Author

Seems like I am stuck on haskell/cabal#7577 (comment): the executable built with cabal build is not available to cabal test because we use built-type: Custom.

A workaround for CI (cabal-test.yml) could be to install Agda rather than just building it. But still, a naive cabal test would remain broken.

An attempt to get `cabal test` to run after *installing* Agda rather
than just building it.
Mainly for CI, so that we do not have to install LaTeX.
Do not work out of the box, need installation of the stdlib (for
`Everything.agda`).
Cabal removes lower-case vowels from package names on macOS, see
haskell/cabal#7209.  Thus Agda might be just Agd in error messages
reporting source locations.
The testsuite fails but does not display diffs.
tasty-silver might not yet be portable, see

  agda/tasty-silver#16
@andreasabel

Copy link
Copy Markdown
Member Author

A workaround for CI (cabal-test.yml) could be to install Agda rather than just building it. But still, a naive cabal test would remain broken.

Implemented this workaround.

For running the testsuite on Windows, agda/tasty-silver#16 might be a show-stopper for now.

Correct reference is `v1-install` in `cabal v1-install --run-tests`.
@andreasabel
andreasabel merged commit b44a0bd into master Sep 2, 2021
@andreasabel andreasabel self-assigned this Sep 2, 2021
@andreasabel
andreasabel deleted the issue5302 branch September 2, 2021 10:37
andreasabel added a commit that referenced this pull request Nov 17, 2021
* [ fix #5302 ] make 'cabal test' work for part of the test-suite

'cabal test' will run only the tests defined by 'agda-tests'

* [ #5302 ] CI: work around haskell/cabal#7577

An attempt to get `cabal test` to run after *installing* Agda rather
than just building it.

* [ #5302 ] disable latex-tests for `cabal test`

Mainly for CI, so that we do not have to install LaTeX.

* [ #5302 ] disable compiler-stdlib tests for `cabal test`

Do not work out of the box, need installation of the stdlib (for
`Everything.agda`).

* [ #5302 ] CI: `cabal test` also on macOS and Windows

* [ #5302 ] `cabal test` macOS: work around haskell/cabal#7209

Cabal removes lower-case vowels from package names on macOS, see
haskell/cabal#7209.  Thus Agda might be just Agd in error messages
reporting source locations.

* [ #5302 ] giving up on `cabal test` under Windows

The testsuite fails but does not display diffs.
tasty-silver might not yet be portable, see

  agda/tasty-silver#16

* [ #5302 ] fix the alert printed by `cabal test`

Correct reference is `v1-install` in `cabal v1-install --run-tests`.

* PR #5536: final polishing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devx Developer Experience (IDE setup, linting, dev builds, etc.) (not in changelog) infra: test suite Issues relating to the test suite (not in changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Run at least the succeed/fail/interaction test also on Windows or macOS building tests with cabal

1 participant