Copy test data files to the binary directory#8460
Copy test data files to the binary directory#8460duanmeng wants to merge 3 commits intofacebookincubator:mainfrom
Conversation
✅ Deploy Preview for meta-velox canceled.
|
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| add_custom_target(example_file_dir ALL) |
There was a problem hiding this comment.
I get what you are doing here, but I reckon this must be a common enough pattern that there must be a simpler , idiomatic way of doing this.
cc : @assignUser
|
@duanmeng I reckon your original implementation was more idiomatic (or correct) - @assignUser let us know what you think. |
assignUser
left a comment
There was a problem hiding this comment.
I don't have a lot of bw at the moment but reading up on this a bit I am pretty sure that the custom command just implements the same features that file(COPY) gives us as that will also only be executed if the files/dir don't exist or are older. And it is automatically using relative paths.
The only difference would probably be when installing targets (which we don't do yet) where the custom target would work but file(COPY) would not. But I am not entirely sure about that but can't look into it further at the moment. Though it is unlikely people will run tests outside of the build tree (I don't see us installing tests onto the system?)
So file(COPY) as the more concise version is probably the better choice for now/this case.
I do appreciate the contribution, great to see! Thanks @duanmeng
@assignUser Thanks for your help. I've gone back to the |
|
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Conbench analyzed the 1 benchmark run on commit There were no benchmark performance regressions. 🎉 The full Conbench report has more details. |
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
Summary: ParquetReaderTest depends on the test data files in directory examples. It is nice to copy it into the binary directory during the CMake project loading. Pull Request resolved: facebookincubator#8460 Reviewed By: pedroerp Differential Revision: D53482409 Pulled By: kgpai fbshipit-source-id: 45a6be7b041f486bf76344f166d140350345bf63
ParquetReaderTest depends on the test data files in directory examples.
It is nice to copy it into the binary directory during the CMake project loading.