Skip to content
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

Consolidate testing data #1276

Open
russelldj opened this issue Apr 15, 2021 · 3 comments
Open

Consolidate testing data #1276

russelldj opened this issue Apr 15, 2021 · 3 comments

Comments

@russelldj
Copy link
Contributor

It would be nice if there was a centralized location for unit test data. As a concrete example of my frustration, I want to write a unit test in ocv which uses the same image as the unit tests in vxl. While I might be able to hack together a mechanism to point it at that data, I'm not even sure that's portable and that seems sub-optimal long term.

@aaron-bray
Copy link
Member

I started to use data.kitware to store example data
https://data.kitware.com/#collection/5991c8df8d777f7d33e9c2d1

And use CMake to pull the files to your build directory for use
https://github.com/Kitware/kwiver/tree/master/examples/external

This works pretty well to store large amounts of data

@russelldj
Copy link
Contributor Author

Thanks Aaron, this is useful. However, it's not exactly what I was talking about. I was mentioning that there are becoming duplicate data files for different arrow tests because each one has its own unit test data directory.

@aaron-bray
Copy link
Member

That makes sense
I think we could probably add a data foler with a hierarchy of folders under it that contain all text/example data
Folders could hold both the actual file in the repo (LFS?) as well as sha512 files
And maybe create config parameters the hold the data root directories you could reference in examples/tests
such as <REPO_DATA_ROOT>\arrow\ocv\test_image1.png and <EXTERNAL_DATA_ROOT>\arrow\ocv\test_movie.mp4

Where REPO_DATA_ROOT is in source and EXTERNAL_DATA_ROOT is in build, and they resolve to paths specific to your machine

something like that..
food for thought...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants