Skip to content

Commit

Permalink
Support OCaml 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Jul 20, 2023
1 parent 16cbbaa commit 6bfa014
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 0.4.0

* Switch to cmdliner.1.1.1 from cmdliner.1.0.4 in the API
* Support OCaml 5.1.0
* Require `--package-name` to distinguish multiple installers in the same
project

Expand Down
42 changes: 33 additions & 9 deletions runner/bin/dune
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
(libraries dkml-install-runner.admin))

(rule
(alias runtest)
(package dkml-install-runner)
; (package dkml-install-runner)
(target validate_user.dlls.txt.corrected)
(deps
(:bc validate_user.bc))
Expand All @@ -44,22 +43,47 @@
(run ocamlobjinfo %{bc}))
(with-stdout-to
%{target}
(run awk "/.*:/ {x=0} /Used DLLs:/{x=1} x==1 {print}" %{target}.info))
(diff validate_user.dlls.txt %{target}))))
(run awk "/.*:/ {x=0} /Used DLLs:/{x=1} x==1 {print}" %{target}.info)))))

(rule
(alias runtest)
(package dkml-install-runner)
; (package dkml-install-runner)
(target validate_admin.dlls.txt.corrected)
(deps
(:bc validate_admin.bc))
; (enabled_if (<> %{os_type} Win32))
(action
(progn
(with-stdout-to
%{target}.info
(run ocamlobjinfo %{bc}))
(with-stdout-to
%{target}
(run awk "/.*:/ {x=0} /Used DLLs:/{x=1} x==1 {print}" %{target}.info))
(diff validate_admin.dlls.txt %{target}))))
(run awk "/.*:/ {x=0} /Used DLLs:/{x=1} x==1 {print}" %{target}.info)))))

(rule
(alias runtest)
(package dkml-install-runner)
(enabled_if (< %{ocaml_version} 5.1.0))
(action
(diff validate_user_pre51.dlls.txt validate_user.dlls.txt.corrected)))

(rule
(alias runtest)
(package dkml-install-runner)
(enabled_if (< %{ocaml_version} 5.1.0))
(action
(diff validate_admin_pre51.dlls.txt validate_admin.dlls.txt.corrected)))

(rule
(alias runtest)
(package dkml-install-runner)
(enabled_if (>= %{ocaml_version} 5.1.0))
(action
(diff validate_user_51.dlls.txt validate_user.dlls.txt.corrected)))

(rule
(alias runtest)
(package dkml-install-runner)
(enabled_if (>= %{ocaml_version} 5.1.0))
(action
(diff validate_admin_51.dlls.txt validate_admin.dlls.txt.corrected)))

3 changes: 3 additions & 0 deletions runner/bin/validate_admin_51.dlls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Used DLLs:
dllunixbyt
dllcamlstrbyt
File renamed without changes.
3 changes: 3 additions & 0 deletions runner/bin/validate_user_51.dlls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Used DLLs:
dllunixbyt
dllcamlstrbyt
File renamed without changes.

0 comments on commit 6bfa014

Please sign in to comment.