-
Notifications
You must be signed in to change notification settings - Fork 49
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
Make check doesn't run tests in src/tests #25
Comments
@blippy would you mind looking at this? AFAIK there was no |
@zbeekman Sure, I'll take a look at it. I've never done a test harness before, but the way I understand it is that autotools uses a program's exit code to determine if there's been a pass or fail. So I may have to modify the test program to effect this. |
I may be mistaken, but I didn't see anything running with Don't worry about the stop code yet; most compilers respect Fortran |
@zbeekman That's correct, nothing runs when you do Stay tuned. |
Added some test functionality as part of recent commits. It's clunky in how it does it, but doing 'make check' should now work. A better solution would be to have datetime_tests output lines: test PASS empty datetime() constructor test FAIL semi-empty datetime() constructor instead of test emtpy datetime() constructor : PASS test semi-empty datetime() constructor : FAIL and so on, and avoid the use of escape sequences. |
@blippy 🙇 🎉 |
Ideally I think we should engineer the output format of datetime_tests so that not so much data munging is required. It works for now, I guess, which is the main thing. I generally don't run 'make check' when I install software, although it light of some of the problems that are highlighted, it is a worthwhile exercise. It took me awhile to figure out how to do the checking, as the autotools documentation was a bit on the sparse side. Apparently it can do parallel checking, but I'm not sure I want to go there. |
@blippy fair. I just returned from the gym, and need to cleanup and run an errand, but then I plan on taking your PR for a spin. I think if that all looks good, I'll merge it (assuming @milancurcic doesn't have any objections, mint a new release, and then submit the Homebrew formula PR. I agree with you about the tests, but maybe we can include a command line flag to the test program to include or exclude color escape sequences... Also, what do you think about:
wouldn't that be even easier to parse? |
Either way will work. What happens is that datetime_tests get written to a log file. So anyone can have a look at the original output. The testing script then takes the output and creates a trs file having lines like It looks as though autotools picks up these lines and performs a count. |
So, let's scrap the colon in the output I suggested, and then we can just prepend the |
AFAIK
make check
will build the package and also, I think, the tests, but doesn't actually execute them.The text was updated successfully, but these errors were encountered: