forked from ocaml/ocaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
testsuite/tests/tool-ocamlc-stop-after/stop_after_scheduling.compilers.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
wrong argument 'scheduling'; option '-stop-after' expects one of: parsing typing. |
14 changes: 14 additions & 0 deletions
14
testsuite/tests/tool-ocamlc-stop-after/stop_after_scheduling.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(* TEST | ||
* setup-ocamlc.byte-build-env | ||
compiler_output = "compiler-output.raw" | ||
** ocamlc.byte | ||
flags = "-stop-after scheduling" | ||
ocamlc_byte_exit_status = "2" | ||
*** script | ||
script = "sh ${test_source_directory}/stop_after_scheduling.sh" | ||
output = "compiler-output" | ||
**** check-ocamlc.byte-output | ||
compiler_output = "compiler-output" | ||
*) | ||
|
||
(* this file is just a test driver, the test does not contain real OCaml code *) |
3 changes: 3 additions & 0 deletions
3
testsuite/tests/tool-ocamlc-stop-after/stop_after_scheduling.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
grep "wrong argument 'scheduling'" compiler-output.raw | grep "stop-after" | sed 's/^.*: wrong argument/wrong argument/' |
12 changes: 12 additions & 0 deletions
12
testsuite/tests/tool-ocamlopt-stop-after/stop_after_scheduling.ml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(* TEST | ||
* native-compiler | ||
** setup-ocamlopt.byte-build-env | ||
*** ocamlopt.byte | ||
flags = "-stop-after scheduling -S" | ||
ocamlopt_byte_exit_status = "0" | ||
**** check-ocamlopt.byte-output | ||
***** script | ||
script = "sh ${test_source_directory}/stop_after_scheduling.sh" | ||
*) | ||
|
||
(* this file is just a test driver, the test does not contain real OCaml code *) |
24 changes: 24 additions & 0 deletions
24
testsuite/tests/tool-ocamlopt-stop-after/stop_after_scheduling.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
asm=stop_after_scheduling.${asmext} | ||
obj=stop_after_scheduling.${objext} | ||
cmx=stop_after_scheduling.cmx | ||
|
||
# Check that cmx is generated but asm and obj are not | ||
if [ -e "$asm" ] ; then | ||
echo "unexpected $asm found" > ${ocamltest_response} | ||
test_result=${TEST_FAIL} | ||
else if [ -e "$obj" ] ; then | ||
echo "unexpected $obj found" > ${ocamltest_response} | ||
test_result=${TEST_FAIL} | ||
else if [ -e "$cmx" ] ; then | ||
test_result=${TEST_PASS} | ||
else | ||
echo "not found expected $cmx" > ${ocamltest_response} | ||
test_result=${TEST_FAIL} | ||
fi | ||
fi | ||
fi | ||
exit ${test_result} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters