Closed cshenry closed 12 years ago
@cshenry For tar: Archive::Tar is a core module; does it work in Windows?
For curl: LWP::Simple is already required by FIGMODEL; I'm assuming it works?
It's the "2> /dev/null " part that doesn't work in windows.
For some reason, tar doesn't work because it want's to spawn a child process... it's a pain... not sure how to resolve it.
I've created a test branch using Archive::Tar and LWP::Simple at https://github.com/devoid/Model-SEED-core/tree/TestingHelper-win-fix
Try checking that out and let me know if it works.
Closing this issue because TestingHelper will no longer dl a ModelDB database.
So the code below does not work in windows for a variety of reasons. I am proposing we include ModelDB.db in the test data directory instead of the sql file. Would this cause problems? I also suggest adding the test directory to the standard flatfile install so it's immediately in place for tests to be performed on a fresh installation. We'll need some way of indicating when an data update would be run. This is something to think about.
TestingHelper.pm: line 182... if ( !-d $TestDataDir ) {
If we don't have the database try to download it