-
Notifications
You must be signed in to change notification settings - Fork 619
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
rewrite Units #60
Comments
When you are on it, could you add a target |
Another small thing I found:
Note that the last two tests are skipped on Windows but not reported as such in the summary. |
If checking them in subshells, their result are not reflected to the parent shell. Issue: #60 Reported-by: Frank Fesevur <ffes@users.sourceforge.net> Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Issue: #60 Suggested-by: Frank Fesevur <ffes@users.sourceforge.net> Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Thank you for reporting. |
Solved And thanks for the |
Not sure I should report this here or open a new issue, tell me. Currently if I run
Apparently all outputs for those from my run are empty but matlab-tg-corpus and matlab_backtracking.m which are completely different (they have a lot more tags). |
@b4n, thank you for reporting. |
Let's hunt them. When a test is failed testing.mak may report a command line for the test like testing.mak connects the stderr to /dev/null, so we cannot know what was happed when failed. I would like to focus on dosbatch_test.cmd. May be the area tested by the test case is simpler than others. |
I'm afraid there's not much more information:
I don't think it does, there is a STDERR.TMP in the unit dir, that contains it. Anyway, it's the same. |
Hum, another issue suggested I don't have regex support builtin for some reason, I guess it might be it? |
OK, with regex enabled, I only have one last failing test: Units/xcmd-coffeetags. This is kind of expected as I don't have coffeetags:
So all tests passes, but we should skip those if one of the requirement is missing (regexes or coffeetags). |
About test cases failed when regex is not avaiable should be skipped. |
…ist-languages output If a unit test expects a language parser and target ctags executable doesn't support the language, the unit test should be skipped. languages file under each unit test case represents the language the test case expects ctags to have. However, matching code that compares languages file and the output of --list-languages was broken. As the result a unit test case is reported as failed though it should be skipped. This patch removes a space in output of --list-languages. Let's consider "coffee" language. If a coffeetags command is not available, the parser should be disabled. $ ./ctags --list-languages coffee [disabled] In testing.mak, this output is used in a for loop. The for loop picked up the output of "ctags --list-languages" word by word. So "coffee" and "[disabled]" are picked up separately. This is the reason why matching didn't work expectedly. With using sed command the for loop picked up the output of "ctags --list-languages" line by line("coffee[disabled]"). Reported by @b4n in #60. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Could you try the latest head? |
Yes it's fixed, thanks :) |
As reported in #60, regex is used in many areas. Test cases using regex internally should be skipped when testing ctags with no regex feature. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Could you try
This runs misc/units internally. |
Nice update, specially when running valgrind! Thanks a lot. |
Something strange happens when a test run segfaults: |
When ctags is crashed, the shell process running the ctags process reports the crash: Testing verilog-sv-nocontext misc/units: line 203: \ 14080 Segmentation fault ${_CMDLINE} 2> "${ostderr}" > "${orawout}" \ failed (unexpected exit status: 139) This report disturbs the well-formatted output of tests. With this patch, ctags is run in a subshell; and the subshell the stderr and stdout are redirected to SHSTDERR.tmp and SHSTDOUT.tmp. As the result the crash report doesn't disturbs the well-formatted output of tests but can be refereed as a separated file later if needed. Issue reporeted by @vhda in #60. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@vhda, could you try the HEAD of master? |
When ctags exits with abnormal status, its parent shell reports it to stderr. This is noise for our purpose. This patch makes the subshell close its stderr. This bug(noise) is reported by in #60 by @vhda. This patch reverts wrong fix (59cfb8d) for the same bug. Signed-off-by: Masatake YAMATO <yamato@redhat.com>
In addition to VG=1, you can specify UNITS_TIMEOUT=N and SHRINK=1. When a crash or timed-out is occured, units tries to find minimal "bad" input with the parameters. |
Most of all things are overhauled. Please, open a new issue if you find a bug. |
help target is needed.
The text was updated successfully, but these errors were encountered: