-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the use of cp
in the testsuite
#10327
Merged
shindere
merged 21 commits into
ocaml:trunk
from
shindere:ocamltest-files-subdirectories
Apr 22, 2021
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7c0d049
ocamltest: rename the files variable to readonly_files
shindere e8cee96
ocamltest: introduce the subdirectories variable
shindere da1920e
Rewrite the lib-dynlink-native test to use ocamltest's subdirectories…
shindere ad828c2
Rewrite the lib-dynlink-pr4229 test to use ocamltest's subdirectories…
shindere 2e5a4d0
Rewrite the lib-dynlink-pr4839 test to use ocamltest's subdirectories…
shindere 3804a99
Slightly simplify the lib-dynlink-private test
shindere 66297e6
Put lib-dynlink-private in a correct form
shindere e8a1b21
Rewrite the lib-dynlink-private test to use ocamltest's subdirectorie…
shindere 97198d6
Rewrite the opaque test to use ocamltest's subdirectories variable
shindere 6d69290
Rewrite the missing_set_of_closures test to use ocamltest's subdirect…
shindere ddd910d
Rewrite the tool-ocamldep-shadowing test to use ocamltest's subdirect…
shindere 8b565ab
Rewrite the typing-missing-cmi test to use ocamltest's subdirectories…
shindere 823a8e9
Slightly simplify the tool-ocamldep-modalias test
shindere c9181a1
no-alias-deps/aliases.ml: rename b.cmi.invalid to b.cmi
shindere c5a82d9
ocamltest: implement a copy action
shindere 43ede50
Use the copy action in the opaque/test.ml test
shindere b16c2f5
Use the copy action in the missing_set_of_closures test
shindere d841571
Use the copy action in the tool-ocamldep-modalias/main.ml test
shindere 9256944
Use the copy action in the tool-ocamlopt-save-ir/start_from_emit.ml test
shindere e5baa87
Get rid of the setup-links.sh script in the tool-ocamldep-modalias test
shindere 7b44b53
Add a Changes entry
shindere File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,3 +49,5 @@ val script : Actions.t | |
val check_program_output : Actions.t | ||
|
||
val file_exists : Actions.t | ||
|
||
val copy : Actions.t |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "mainarith.c" | ||
readonly_files = "mainarith.c" | ||
arguments = "mainarith.c" | ||
* asmgen | ||
*) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=catch_fact main.c" | ||
* asmgen | ||
*) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=catch_exit main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DCHECKBOUND main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_FLOAT -DFUN=is_even main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=is_even main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files= "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=is_even main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=fib main.c" | ||
* asmgen | ||
*) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=pgcd_30030 main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DSORT -DFUN=quicksort main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DSORT -DFUN=quicksort main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DUNIT_INT -DFUN=solitaire main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_INT -DFUN=fib main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DINT_FLOAT -DFUN=test main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DSORT -DFUN=quicksort main.c" | ||
* asmgen | ||
*) | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(* TEST | ||
files = "main.c" | ||
readonly_files = "main.c" | ||
arguments = "-DUNIT_INT -DFUN=takmain main.c" | ||
* asmgen | ||
*) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation can be tripped up by symlinks - I don't think it matters, but we could pull
Unix.stat
intoocamltest_unix
(as the machinery is there for other reasons) and reject directories containing symlinks?