Skip to content

Commit f40bad2

Browse files
committed
extensive testing for data structures
1 parent d703a9e commit f40bad2

14 files changed

+10591
-136
lines changed

jscomp/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,14 @@ bin/all_ounit_tests.ml:./bin/bspack.exe
342342
$< -bs-MD -I ounit -I ounit_tests -I stubs -I bsb -I common -I ext -I syntax -I depends -I bspp -I core -bs-main Ounit_tests_main -o $@
343343
-include bin/all_ounit_tests.d
344344

345+
346+
345347
bin/all_ounit_tests.exe: stubs/ext_basic_hash_stubs.c bin/all_ounit_tests.mli bin/all_ounit_tests.ml
346-
$(NATIVE) -g -I bin -w -a unix.cmxa $^ -o $@
348+
ocamloptp -g -I bin -w -a unix.cmxa $^ -o $@
347349

348350
test:bin/all_ounit_tests.exe
349-
$^
351+
$^ && ocamlprof bin/all_ounit_tests.ml > bin/all_ounit_tests.i.ml && rm ocamlprof.dump
352+
350353

351354
# bin/all_ounit_tests.i.exe: stubs/ext_basic_hash_stubs.c bin/all_ounit_tests.mli bin/all_ounit_tests.ml
352355
# $(NATIVE) -ppx /Users/hzhang295/.opam/4.02.3+local-git-master/lib/bisect_ppx/bisect_ppx -g -I bin -w -a unix.cmxa $^ -o $@

jscomp/all.depend

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,12 +558,14 @@ ounit_tests/ounit_scc_tests.cmx : ounit/oUnit.cmx ext/int_vec_vec.cmx \
558558
ounit_tests/ounit_json_tests.cmx : ext/string_map.cmx ounit/oUnit.cmx \
559559
bsb/bsb_json.cmx
560560
ounit_tests/ounit_map_tests.cmx : ounit/oUnit.cmx ext/int_map.cmx
561-
ounit_tests/ounit_ordered_hash_set_tests.cmx : ounit/oUnit.cmx
561+
ounit_tests/ounit_ordered_hash_set_tests.cmx : \
562+
ext/ordered_hash_set_string.cmx ounit/oUnit.cmx ext/ext_util.cmx
562563
ounit_tests/ounit_vec_test.cmx : ounit/oUnit.cmx ext/int_vec.cmx \
563564
bsb/bsb_json.cmx
564565
ounit_tests/ounit_tests_main.cmx : ext/resize_array.cmx \
565566
ounit_tests/ounit_vec_test.cmx ounit_tests/ounit_union_find_tests.cmx \
566567
ounit_tests/ounit_scc_tests.cmx ounit_tests/ounit_path_tests.cmx \
568+
ounit_tests/ounit_ordered_hash_set_tests.cmx \
567569
ounit_tests/ounit_map_tests.cmx ounit_tests/ounit_list_test.cmx \
568570
ounit_tests/ounit_json_tests.cmx ounit_tests/ounit_hash_stubs_test.cmx \
569571
ounit_tests/ounit_hash_set_tests.cmx ounit_tests/ounit_bal_tree_tests.cmx \

jscomp/bin/all_ounit_tests.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ bin/all_ounit_tests.ml : ounit_tests/ounit_list_test.ml
4848
bin/all_ounit_tests.ml : ext/int_map.ml
4949
bin/all_ounit_tests.ml : ext/int_map.mli
5050
bin/all_ounit_tests.ml : ounit_tests/ounit_map_tests.ml
51+
bin/all_ounit_tests.ml : ounit_tests/ounit_ordered_hash_set_tests.ml
5152
bin/all_ounit_tests.ml : ext/ext_pervasives.ml
5253
bin/all_ounit_tests.ml : ext/ext_pervasives.mli
5354
bin/all_ounit_tests.ml : ext/literals.ml

0 commit comments

Comments
 (0)