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
figsoda
1acf6e4d35
tests: apply clippy lints
2021-10-16 10:10:48 -04:00
figsoda
f923423a06
Extension: add support for tgz ( #85 )
...
* extension: add support for tgz
2021-10-14 16:55:34 -03:00
Vinícius Miguel
f46ff3c26e
CI: stop building for ARM and Windows MinGW ( #82 )
2021-10-07 22:30:07 -03:00
Vinícius Rodrigues Miguel
d4862e2b6f
test: check the resulting compressed files through MIME types
2021-10-06 23:54:20 -03:00
Vinícius Rodrigues Miguel
e9bc65a787
Add support for Zstd
2021-10-05 23:56:09 -03:00
João M. Bezerra
89d1e6a752
Document modules
2021-10-03 00:17:57 -03:00
João Marcos Bezerra
7178ae84ff
Fix tests/utils.rs warning suppresion
2021-10-02 23:40:51 -03:00
Gabriel Simonetto
e352f8bc93
Allow empty dirs on tar
2021-10-02 17:33:16 -03:00
João M. Bezerra
d43a93d8bb
Moving some tests utilities to tests/utils.rs
2021-10-02 17:12:59 -03:00
Gabriel Simonetto
4431e8e047
Create failing test
2021-10-02 17:12:59 -03:00
Vinícius Rodrigues Miguel
eabaac0145
Run rustfmt
2021-09-16 21:35:18 -03:00
João M. Bezerra
1a67da03ed
Giving better tests failure messages
2021-08-13 03:21:23 -03:00
João M. Bezerra
7265effd65
Replacing deprecated tempdir by tempfile crate
2021-08-13 03:12:23 -03:00
João M. Bezerra
44e0fcc985
Fixing tests without assert
2021-08-04 12:05:47 -03:00
João M. Bezerra
bb93e46535
Reworked compression
...
Now works with multiple formats, like
archive.zip.gz.lz.gz.gz2.xz
Now with minimum in-memory copying, compressing and decompressing (with
exception to .zip, due to the format limitations) is all done directly
into the final destination file.
2021-08-03 21:18:22 -03:00
João M. Bezerra
ac4948abf7
Decompression: multiple formats, no extra copying
...
Rewrote decompression to use chained decoders, creating a stream and
avoiding in-memory decompression, which caused redundant copying.
Now ouch supports any number of extensions as decompressing formats, not
only two.
2021-08-03 16:58:21 -03:00
João M. Bezerra
abc6f51582
Removing .*.tar and .*.zip from tests
...
Those formats won't be supporte by now, at least for compressing.
Archive formats are are only meant to be used as the first extension,
because archives are meant to be used with multiple files.
2021-08-02 15:46:29 -03:00
João M. Bezerra
57a3d231eb
Turning oof
subcrate into a module
2021-05-26 21:54:50 -03:00
João M. Bezerra
f4e1798cc7
Improving tests performance
2021-05-17 14:42:19 -03:00
João M. Bezerra
a4ca0a6621
Adding tests for compression and decompression
2021-05-17 14:41:29 -03:00