File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 11#use " internal_test_header.ml" ;;
22
3+ let () =
4+ let long_file i = Printf. sprintf " f%0100d" i in
5+ let last1 = ref " 0" in
6+ let last2 = ref " 1" in
7+ let files = List. init 200 (fun i ->
8+ let name = long_file i in
9+ let prev1 = ! last1 in
10+ let prev2 = ! last2 in
11+ last1 := ! last2;
12+ last2 := (String. capitalize_ascii name) ^ " .x" ;
13+ T. f (name ^ " .ml" ) ~content: (Printf. sprintf " let x = %s + %s" prev1 prev2)
14+ )
15+ in
16+ let files = T. f " fib.ml" ~content: (Printf. sprintf " print_int %s" ! last2) :: files in
17+ test " LongCommand"
18+ ~options: []
19+ ~description: " Check that ocamlbuild can handle long commands"
20+ ~tree: files
21+ ~targets: (" fib.byte" ,[] ) () ;;
322
423let () = test " Preprocess"
524 ~description: " Check that preprocessor works"
You can’t perform that action at this time.
0 commit comments