-
Notifications
You must be signed in to change notification settings - Fork 26
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
Gives warning when encountering free range .enc files in test directory #464
Conversation
I'll check this out in the afternoon. |
This does what it says, but it adds so much output to some test suites that I'd rather not have this feature. The reason is that so many files are not tests by design. There should at least be a way to disable the warning for files that are supposed to be no test. Example:
|
Would it be an option to add an empty .out file for these? I'm guessing that they can't have a |
The point of the feature is to force the tester to clean up the directory, for instance by putting the relevant file names in the If anything, the warnings about tests occurring in the I do not like the default empty |
I should point out that this feature was present in your original test suite. |
Adding it to DISABLED_TESTS.grep would be much better than the empty .out file (which I do not like either). However, I tried this out, and it does work, but now a different warning appears: I'd be happy to merge if:
If we want to keep an overview of how many tests are warned, we might consider adding an extra counter for number of skipped tests per test suite in a separate PR. |
I'd like to point out that going through |
I can make the two suggested changes. |
And I'll watch this space! |
If |
That's true. |
I've addressed the issues mentioned above and added support for |
cd ${DIR} | ||
${ENCOREC} ${FLAGS} ${NAME}.enc | ||
echo "HEREHERE ${FLAGS}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You forgot to remove these echo calls :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shoot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can actually do that
Thanks. |
The existing test script silently passed over
.enc
files in the test directories that were not set up as proper tests or ignored in theDISABLED_TESTS.grep
file. This patch changes the test script to give a warning when encountering those files.