mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
avoid dune stanza for inline tests
simpler to just do the testing ourselves
This commit is contained in:
parent
e5d5f60e67
commit
8a914448c9
6 changed files with 21 additions and 8 deletions
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
|
|
@ -14,9 +14,6 @@ jobs:
|
|||
with:
|
||||
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
||||
- run: opam pin -n .
|
||||
# dune 2.8 breaks the inline tests… because of warn-error 😱. So we use an
|
||||
# older version
|
||||
- run: opam pin dune 1.11.0 -y -n
|
||||
- run: opam depext -yt tiny_httpd tiny_httpd_camlzip
|
||||
- run: opam install -t . --deps-only
|
||||
- run: opam exec -- dune build
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
(lang dune 1.1)
|
||||
(lang dune 2.0)
|
||||
|
|
|
|||
1
src/dune
1
src/dune
|
|
@ -3,6 +3,5 @@
|
|||
(name tiny_httpd)
|
||||
(public_name tiny_httpd)
|
||||
(libraries threads)
|
||||
(inline_tests (backend qtest.lib))
|
||||
(flags :standard -safe-string -warn-error -a+8)
|
||||
(wrapped false))
|
||||
|
|
|
|||
17
src/qtest/dune
Normal file
17
src/qtest/dune
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
(executable
|
||||
(name qtest)
|
||||
(modes native)
|
||||
(flags :standard -warn-error -a+8 -w -33)
|
||||
(libraries qcheck-core qcheck ounit2
|
||||
threads threads.posix tiny_httpd))
|
||||
|
||||
(rule
|
||||
(deps (glob_files ../*.ml{,i}))
|
||||
(targets qtest.ml)
|
||||
(action (run qtest extract --quiet %{deps} -o %{targets})))
|
||||
|
||||
(rule
|
||||
(alias runtest)
|
||||
(action (run ./qtest.exe)))
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ build: [
|
|||
["dune" "runtest" "-p" name] {with-test}
|
||||
]
|
||||
depends: [
|
||||
"dune" { >= "1.1" } # for now, since qtest needs old dune
|
||||
"dune" { >= "2.0" }
|
||||
"base-threads"
|
||||
"ocaml" { >= "4.04.0" }
|
||||
"odoc" {with-doc}
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ build: [
|
|||
["dune" "runtest" "-p" name] {with-test}
|
||||
]
|
||||
depends: [
|
||||
"dune" { >= "1.1" }
|
||||
"dune" { >= "2.0" }
|
||||
"camlzip"
|
||||
"tiny_httpd" { = version }
|
||||
"ocaml" { >= "4.03.0" }
|
||||
"ocaml" { >= "4.04.0" }
|
||||
"odoc" {with-doc}
|
||||
]
|
||||
tags: [ "http" "thread" "server" "gzip" "camlzip" ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue