blob: 7951c7e2a912a8da8161b15cf8954b206c539e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
(* TEST
readonly_files = "first_arg_fail.txt last_arg_fail.txt";
setup-ocaml-build-env;
{
flags = "-args ${test_source_directory}/first_arg_fail.txt";
compiler_reference = "${test_source_directory}/first_arg_fail.txt.reference";
compiler_output = "${test_build_directory}/first_arg_fail.output";
ocaml_exit_status = "2";
ocaml;
check-ocaml-output;
}{
flags = "-args ${test_source_directory}/indirect_first_arg_fail.txt";
compiler_reference = "${test_source_directory}/indirect_first_arg_fail.txt.reference";
compiler_output = "${test_build_directory}/indirect_first_arg_fail.output";
ocaml_exit_status = "2";
ocaml;
check-ocaml-output;
}{
flags = "-args ${test_source_directory}/indirect_last_arg_fail.txt";
compiler_reference = "${test_source_directory}/indirect_last_arg_fail.txt.reference";
compiler_output = "${test_build_directory}/indirect_last_arg_fail.output";
ocaml_exit_status = "2";
ocaml;
check-ocaml-output;
}{
flags = "-args ${test_source_directory}/last_arg_fail.txt";
compiler_reference = "${test_source_directory}/last_arg_fail.txt.reference";
compiler_output = "${test_build_directory}/last_arg_fail.output";
ocaml_exit_status = "2";
ocaml;
check-ocaml-output;
}{
flags = "-args ${test_source_directory}/working_arg.txt";
compiler_reference = "${test_source_directory}/working_arg.txt.reference";
compiler_output = "${test_build_directory}/working_arg.output";
ocaml;
check-ocaml-output;
}{
flags = "${test_source_directory}/print_args.ml foo bar";
compiler_reference = "${test_source_directory}/print_args.reference";
compiler_output = "${test_build_directory}/print_args.output";
ocaml;
check-ocaml-output;
}
*)
printf "Test succeeds\n";;
|