Skip to content

Commit

Permalink
promote some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Heuzard committed Nov 4, 2021
1 parent 6a157a9 commit ffe9ede
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions otherlibs/build-info/test/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ Check what the generated build info module looks like:
$ cat _build/default/c/.c.eobjs/build_info_data.ml-gen \
> | sed 's/"dune-build-info".*/"dune-build-info", Some "XXX"/'
let eval s =
let s = Bytes.unsafe_to_string (Bytes.unsafe_of_string s) in
let len = String.length s in
if s.[0] = '=' then
let colon_pos = String.index_from s 1 ':' in
Expand All @@ -99,9 +100,9 @@ Check what the generated build info module looks like:
None
[@@inline never]

let p1 = eval (Sys.opaque_identity "%%DUNE_PLACEHOLDER:64:vcs-describe:1:a%%%%%%%%%%%%%%%%%%%%%%%%%%")
let p2 = eval (Sys.opaque_identity "%%DUNE_PLACEHOLDER:64:vcs-describe:1:b%%%%%%%%%%%%%%%%%%%%%%%%%%")
let p0 = eval (Sys.opaque_identity "%%DUNE_PLACEHOLDER:64:vcs-describe:1:c%%%%%%%%%%%%%%%%%%%%%%%%%%")
let p1 = eval "%%DUNE_PLACEHOLDER:64:vcs-describe:1:a%%%%%%%%%%%%%%%%%%%%%%%%%%"
let p2 = eval "%%DUNE_PLACEHOLDER:64:vcs-describe:1:b%%%%%%%%%%%%%%%%%%%%%%%%%%"
let p0 = eval "%%DUNE_PLACEHOLDER:64:vcs-describe:1:c%%%%%%%%%%%%%%%%%%%%%%%%%%"

let version = p0

Expand Down
1 change: 1 addition & 0 deletions test/blackbox-tests/test-cases/all-alias.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
ocamlc .foo.eobjs/byte/foo.{cmi,cmo,cmt}
ocamlopt .foo.eobjs/native/foo.{cmx,o}
ocamlc foo.bc
ocamlc foo.bc-for-jsoo
ocamlopt foo.exe

@all builds private libs
Expand Down
2 changes: 2 additions & 0 deletions test/blackbox-tests/test-cases/default-targets.t/run.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
Generates targets when modes is set for binaries:
$ dune build --root bins --display short @all 2>&1 | grep '\.bc\|\.exe'
ocamlc byteandnative.bc
ocamlc byteandnative.bc-for-jsoo
ocamlc bytecodeonly.bc
ocamlc bytecodeonly.bc-for-jsoo
ocamlc bytecodeonly.exe
ocamlopt byteandnative.exe
ocamlopt nativeonly.exe
Expand Down

0 comments on commit ffe9ede

Please sign in to comment.