Skip to content

Commit e3c7181

Browse files
committed
Tests: check prims 5.4
1 parent 176fae6 commit e3c7181

File tree

4 files changed

+468
-1
lines changed

4 files changed

+468
-1
lines changed

compiler/tests-check-prim/dune.inc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,48 @@
133133
+toplevel.js
134134
%{dep:unix.bc}))))
135135

136+
(rule
137+
(targets main.5.4.output)
138+
(mode
139+
(promote (until-clean)))
140+
(enabled_if (and (>= %{ocaml_version} 5.4)(< %{ocaml_version} 5.5)))
141+
(action
142+
(with-stdout-to
143+
%{targets}
144+
(run
145+
%{bin:js_of_ocaml}
146+
check-runtime
147+
+dynlink.js
148+
+toplevel.js
149+
%{dep:main.bc}))))
150+
151+
(rule
152+
(targets unix-Win32.5.4.output)
153+
(mode
154+
(promote (until-clean)))
155+
(enabled_if (and (>= %{ocaml_version} 5.4)(< %{ocaml_version} 5.5)(= %{os_type} Win32)))
156+
(action
157+
(with-stdout-to
158+
%{targets}
159+
(run
160+
%{bin:js_of_ocaml}
161+
check-runtime
162+
+dynlink.js
163+
+toplevel.js
164+
%{dep:unix.bc}))))
165+
166+
(rule
167+
(targets unix-Unix.5.4.output)
168+
(mode
169+
(promote (until-clean)))
170+
(enabled_if (and (>= %{ocaml_version} 5.4)(< %{ocaml_version} 5.5)(= %{os_type} Unix)))
171+
(action
172+
(with-stdout-to
173+
%{targets}
174+
(run
175+
%{bin:js_of_ocaml}
176+
check-runtime
177+
+dynlink.js
178+
+toplevel.js
179+
%{dep:unix.bc}))))
180+

compiler/tests-check-prim/gen_dune.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ let rule bc ocaml_version os_type =
8585
bc
8686

8787
let () =
88-
let versions : version list = [ `V4_14; `V5_2; `V5_3 ] in
88+
let versions : version list = [ `V4_14; `V5_2; `V5_3; `V5_4 ] in
8989
List.iter
9090
(fun ocaml_version ->
9191
List.iter
Lines changed: 199 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,199 @@
1+
Missing
2+
-------
3+
4+
From main.bc:
5+
caml_assume_no_perform
6+
caml_continuation_use
7+
caml_int_as_pointer
8+
caml_reset_afl_instrumentation
9+
debugger
10+
11+
Unused
12+
-------
13+
14+
From +array.js:
15+
caml_check_bound
16+
17+
From +bigarray.js:
18+
caml_ba_create_from
19+
caml_ba_init
20+
21+
From +bigstring.js:
22+
caml_bigstring_blit_ba_to_ba
23+
caml_bigstring_blit_ba_to_bytes
24+
caml_bigstring_blit_bytes_to_ba
25+
caml_bigstring_blit_string_to_ba
26+
caml_bigstring_memcmp
27+
caml_hash_mix_bigstring
28+
29+
From +effect.js:
30+
jsoo_effect_not_supported
31+
32+
From +fs.js:
33+
caml_ba_map_file
34+
caml_ba_map_file_bytecode
35+
caml_fs_init
36+
jsoo_create_file
37+
jsoo_create_file_extern
38+
39+
From +graphics.js:
40+
caml_gr_arc_aux
41+
caml_gr_blit_image
42+
caml_gr_clear_graph
43+
caml_gr_close_graph
44+
caml_gr_close_subwindow
45+
caml_gr_create_image
46+
caml_gr_current_x
47+
caml_gr_current_y
48+
caml_gr_display_mode
49+
caml_gr_doc_of_state
50+
caml_gr_draw_arc
51+
caml_gr_draw_char
52+
caml_gr_draw_image
53+
caml_gr_draw_rect
54+
caml_gr_draw_str
55+
caml_gr_draw_string
56+
caml_gr_dump_image
57+
caml_gr_fill_arc
58+
caml_gr_fill_poly
59+
caml_gr_fill_rect
60+
caml_gr_lineto
61+
caml_gr_make_image
62+
caml_gr_moveto
63+
caml_gr_open_graph
64+
caml_gr_open_subwindow
65+
caml_gr_plot
66+
caml_gr_point_color
67+
caml_gr_remember_mode
68+
caml_gr_resize_window
69+
caml_gr_set_color
70+
caml_gr_set_font
71+
caml_gr_set_line_width
72+
caml_gr_set_text_size
73+
caml_gr_set_window_title
74+
caml_gr_sigio_handler
75+
caml_gr_sigio_signal
76+
caml_gr_size_x
77+
caml_gr_size_y
78+
caml_gr_state
79+
caml_gr_state_create
80+
caml_gr_state_get
81+
caml_gr_state_init
82+
caml_gr_state_set
83+
caml_gr_synchronize
84+
caml_gr_text_size
85+
caml_gr_wait_event
86+
caml_gr_window_id
87+
88+
From +hash.js:
89+
caml_hash_mix_int64
90+
91+
From +ints.js:
92+
caml_div
93+
caml_mod
94+
95+
From +jslib.js:
96+
caml_is_js
97+
caml_trampoline
98+
caml_trampoline_return
99+
caml_wrap_exception
100+
101+
From +marshal.js:
102+
caml_marshal_constants
103+
104+
From +mlBytes.js:
105+
caml_array_of_bytes (deprecated)
106+
caml_array_of_string (deprecated)
107+
caml_bytes_of_utf16_jsstring
108+
caml_new_string (deprecated)
109+
caml_string_concat
110+
caml_to_js_string (deprecated)
111+
112+
From +runtime_events.js:
113+
caml_runtime_events_create_cursor
114+
caml_runtime_events_free_cursor
115+
caml_runtime_events_read_poll
116+
caml_runtime_events_user_resolve
117+
118+
From +stdlib.js:
119+
caml_build_symbols
120+
caml_is_printable
121+
caml_maybe_print_stats
122+
caml_register_global
123+
jsoo_toplevel_reloc
124+
125+
From +sys.js:
126+
caml_fatal_uncaught_exception
127+
caml_format_exception
128+
caml_is_special_exception
129+
caml_set_static_env
130+
caml_sys_const_naked_pointers_checked
131+
132+
From +toplevel.js:
133+
jsoo_get_runtime_aliases
134+
jsoo_toplevel_init_compile
135+
jsoo_toplevel_init_reloc
136+
137+
From +unix.js:
138+
caml_strerror
139+
caml_unix_access
140+
caml_unix_chdir
141+
caml_unix_chmod
142+
caml_unix_cleanup
143+
caml_unix_close
144+
caml_unix_closedir
145+
caml_unix_fchmod
146+
caml_unix_filedescr_of_fd
147+
caml_unix_findclose
148+
caml_unix_findfirst
149+
caml_unix_findnext
150+
caml_unix_fstat
151+
caml_unix_fstat_64
152+
caml_unix_fsync
153+
caml_unix_ftruncate
154+
caml_unix_ftruncate_64
155+
caml_unix_getegid
156+
caml_unix_geteuid
157+
caml_unix_getgid
158+
caml_unix_getpwnam
159+
caml_unix_gettimeofday
160+
caml_unix_getuid
161+
caml_unix_gmtime
162+
caml_unix_has_symlink
163+
caml_unix_inchannel_of_filedescr
164+
caml_unix_inet_addr_of_string
165+
caml_unix_isatty
166+
caml_unix_link
167+
caml_unix_localtime
168+
caml_unix_lookup_file
169+
caml_unix_lseek
170+
caml_unix_lseek_64
171+
caml_unix_lstat
172+
caml_unix_lstat_64
173+
caml_unix_mkdir
174+
caml_unix_mktime
175+
caml_unix_open
176+
caml_unix_opendir
177+
caml_unix_outchannel_of_filedescr
178+
caml_unix_read
179+
caml_unix_read_bigarray
180+
caml_unix_readdir
181+
caml_unix_readlink
182+
caml_unix_rename
183+
caml_unix_rewinddir
184+
caml_unix_rmdir
185+
caml_unix_single_write
186+
caml_unix_startup
187+
caml_unix_stat
188+
caml_unix_stat_64
189+
caml_unix_symlink
190+
caml_unix_time
191+
caml_unix_times
192+
caml_unix_truncate
193+
caml_unix_truncate_64
194+
caml_unix_unlink
195+
caml_unix_utimes
196+
caml_unix_write
197+
caml_unix_write_bigarray
198+
unix_error_message
199+

0 commit comments

Comments
 (0)