Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
Description
Reduce duplication of paths etc. between config.sh and CMakeList.txt. Provide a way to run the tests on an installed system.
The config.sh in the proton root directory does all the environmental configuration necessary for each of the bindings to find appropriate modules, etc. It's really handy for when you want to run code/examples on the command line out of a source tree build rather than having to install everything. I believe much of that logic is duplicated here. I know the config.sh isn't exactly cross-platform, but is there a way to eliminate or reduce some of the duplication?
A related question is how to run these tests off of an installed system. Right now the tests appear to pass, however if you actually try and install the ruby binding and run anything you can't even import the module because the install is messed up.