70 Commits

Author SHA1 Message Date
cyqsimon
fa2d214fee Feature-gate RAR support 2023-12-14 23:32:17 -03:00
cyqsimon
1c30f51051 Make test outputs identical on all platforms 2023-12-13 19:32:55 -03:00
cyqsimon
23936c3d2c Run tests on every target 2023-12-13 19:32:55 -03:00
João Marcos P. Bezerra
4314a3bbdd Mention Rar support in README and help 2023-12-05 13:04:08 -03:00
Ilya Grigoriev
e2796cef78 Mention 7z support in README and help 2023-12-05 13:04:08 -03:00
Ilya Grigoriev
9f82c9a655 Clarify that .sz refers to Google's Snappy format
It needs to be disambiguated from the unfortunately named
SZ compression, see https://szcompressor.org/.

Fixes #563
2023-12-05 13:04:08 -03:00
João Marcos P. Bezerra
f3db923d83 Decrease memory usage in ARMv7 CI
Our GitHub Actions CI was failing because the ARMv7 systems use QEMU
which consumes more memory than usual, by decreasing the memory usage,
we expect to make it all work again.
2023-11-28 20:29:28 -03:00
João Marcos P. Bezerra
d07c65508a Removing redundant code 2023-11-25 21:33:22 -03:00
Flat
69b1db4a35 chore: cargo fmt 2023-11-25 21:33:22 -03:00
Flat
97b4356aa8 feat: implement 7zip support for compression and decompression
This also fixes symlink canonicalization for Windows and fixes UI tests on Windows.
2023-11-25 21:33:22 -03:00
figsoda
4bea6af526 add 7z to tests 2023-11-25 21:33:22 -03:00
Łukasz Krawiec
dade163243 added support for listing and decompressing .rar archives 2023-11-15 08:59:00 -03:00
João M. Bezerra
a26d3d34ce Improve hints when decompressing with no extension
refactored `check_missing_formats_when_decompressing` to be aware of
missing extensions and unsupported extensions in order to give a more
detailed error message
2023-09-17 20:05:54 -03:00
João M. Bezerra
bc1d9457f0 ui tests: fix for MacOS and skip for Windows 2023-09-17 19:06:14 -03:00
João M. Bezerra
af7e95ae98 add UI tests guide in CONTRIBUTING.md 2023-09-17 19:06:14 -03:00
João M. Bezerra
192eaca5dc add ui snapshot tests
these tests are used to assert on Ouch's output for error reports and
progress logging
2023-09-17 19:06:14 -03:00
João M. Bezerra
dd51525c6c decrease RAM usage in integration tests
by decreasing the size of extension chains
2023-09-16 15:21:08 -03:00
João M. Bezerra
0151238c87 make CI faster by decreasing size of tests
make fuzzing tests create less files, with half the size and run less
test cases

should speed up by a magnitude of ~5.0x
2023-09-16 15:21:08 -03:00
figsoda
c58d2b416a tests: reduce maximum compression level 2023-03-20 14:35:41 -04:00
xgdgsc
e92b9ff723 option level tests 2023-03-18 12:23:59 +08:00
xgdgsc
653ff976f5 clamp , merge test 2023-03-17 22:09:20 +08:00
xgdgsc
d9ffd42c8f 🐛 fix 2023-03-17 21:36:31 +08:00
xgdgsc
ffa16c7d6e add test, move 2023-03-17 17:59:53 +08:00
figsoda
fe464213b3 fix typos 2023-01-31 14:21:19 -05:00
João M. Bezerra
c737956a4e check for EOF when asking questions
when invoking Ouch from shell scripts, it is likely that questions will
be left unanswered with EOF, this commit fixes Ouch interpreting EOF as
Yes in Y/N questions
2022-11-23 00:43:53 -03:00
figsoda
628e14f281 reactivate ci targets for arm linux and windows mingw 2022-10-14 14:33:00 -04:00
João M. Bezerra
14025c6816 remove use_small_heuristics = "Max" from rustfmt
and update edition to 2021
2022-06-04 13:06:52 -03:00
LovecraftianHorror
ec6c3b92a5
Cleanup integration tests (#238)
* Actually fill dummy files with random data

* Switch rem logic to more obvious random range

* Test all available formats

* Enable accessibility mode in tests to drastically reduce runtime
2022-01-13 14:40:03 -03:00
figsoda
52a8acf2e1 support snappy format 2021-12-07 13:59:56 -05:00
João Marcos Bezerra
3bf9a1e7a1 Revert "Add interactive integration tests (#208)"
This reverts commit 4d9f5e412f69e60d0b71819f5f0d8181e42e897e.
2021-11-16 18:25:25 -03:00
sigmaSd
4d9f5e412f
Add interactive integration tests (#208) 2021-11-16 17:43:17 -03:00
Nbiba Bedis
0660c2fe59 Remove Lzip because its incorrect, and improve extention comparison 2021-11-13 09:46:08 +01:00
figsoda
dedd254ace switch from lz4_flex to lzzzz, enable lz4 tests 2021-11-09 21:26:04 -05:00
figsoda
2b9023e180 misc comments and wording changes 2021-11-05 23:27:20 -04:00
figsoda
253cedcf60 crate dir-diff -> fn assert_same_directory 2021-11-05 23:27:20 -04:00
figsoda
35df50857d rewrite tests 2021-11-05 23:27:20 -04:00
figsoda
296826b4d3 add support for lz4 format 2021-11-02 17:37:24 -04:00
João M. Bezerra
27b6970eda Updating rustfmt 2021-11-02 16:15:36 -03:00
João M. Bezerra
a85eb68a60 Merge branch 'pr/completions-manpage' 2021-10-31 02:23:21 -03:00
João M. Bezerra
4e731f8af3 Merge branch 'dir-flag' 2021-10-31 01:49:33 -03:00
figsoda
614f2aa6d5
Merge branch 'master' into completions-manpage 2021-10-30 16:59:24 -04:00
Gabriel Simonetto
704a4efdd7 Merge branch 'master' into issue-56 2021-10-30 11:31:09 -03:00
Gabriel Simonetto
09b050d836 Introduce fs_err as a replacement for fs 2021-10-30 11:17:38 -03:00
figsoda
d6054ba3ee move QuestionPolicy to lib 2021-10-21 19:13:29 -04:00
figsoda
2816b837e2
Merge branch 'master' into completions-manpage 2021-10-21 18:57:24 -04:00
Anton Hermann
10f7462b8b Introduce new type for policy on how to handle questions 2021-10-21 23:31:53 +02:00
figsoda
7efac2e55d generate completions 2021-10-20 22:18:39 -04:00
Spyros Roum
bc33ccc99c Update tests 2021-10-19 14:55:37 +03:00
João Marcos Bezerra
9d7c8a9abb
Merge pull request #100 from figsoda/cleanup
Minor cleanups and refactors
2021-10-18 02:01:02 -03:00
Dominik Nakamura
06af320595
Add support for short tar archive extensions 2021-10-18 00:42:35 +09:00