-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Added test integrity for the cfile compressors #225
Conversation
… since most of them shows the message with file status to STDERR instead of STDOUT whe should show both in Test result window.
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 really don't know how to test this. engrampa master currently supports integrity testing on some filetypes, but the option to integrity test a .xz file was greyed out in both this PR and master. Integrity testing a .gz file worked the same in either one
I didn't understood what do you mean "test a .xz file was greyed out ". I know only one place to trigger the integrity: main menu/Archive/Test integrity |
I have .xz support on my system and use it all the time. The engrampa menubar's archive>test integrity menu item is the one I had greyed out. Same thing happened with xz in #226 for some reason, even though I can both pack and unpack .xz archives with no problem in Engrampa on my system. |
Hi @lukefromdc |
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.
It worked here with .gz, but it did't work with .br, I see in terminal:
Test integrity in unsupported for application/x-brotli
I am not running Ubuntu but rather Debian Unstable without any of Debian's default MATE packages. I have all of MATE locally compiled |
This may depend on #227 in order to work for .xz files. |
I just got this build error after pulling the branch:
|
fixed, pls merge |
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.
Builds and runs, though I still only get an integrity test menu option that is not greyed out for gzip (.zip) and brotl(no output results) and not for xz or tar.bzip2 files. Might be something local to my system, but be advised this is something I have not used other than for these tests and I am really NOT the best tester for thus due to the fact that I deal with only a few compressed file types in normal usage.
tar.bzip2 and .zip are not affected by the change. And yes, brotli will show empty output until google/brotli#729 fixed. |
This branch is ready to be merged. Is anything needs to be done? Thanks |
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.
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 just retested this, integrity test for .zip and .xz files now works, while it does not with master as of 12-22-2018. A tar.gz or tar.xz files does NOT offer an integrity test, but I am assuming that is a matter for another PR requiring different coding. That is because this PR only mentions the compressors themselves.
memory management in fr_window_view_last_output_print looks OK. char *utf8_line is freed, and char *line is initialized to scan->data which I am presuming is in use elsewhere and thus should not be freed. This was the only place I noticed a new dynamically allocated variable.
Unless this is also intended to offer integrity testing of tar.(something) files, it looks ready to go
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.
looks ok
Added test integrity for the cfile compressors: gzip, bzip2, etc.
But since most of them shows the message with file status to STDERR instead of STDOUT whe should show both in Test result window.
To validate:
Open *.gz file (or *.bz2, *.lzip...), then File/Test integrity. You should see output of test command.
The only one archive which doesn't support test is rzip.
Also in #225 contains support of test brotli but this needs for #224 to be merged first.