Yann Collet
3d91ab74a1
disabled icc tests on Github Actions
2021-02-23 13:25:08 -08:00
Yann Collet
08fef036ec
update FreeBSD image to latest 12.2
2021-02-23 10:40:44 -08:00
Yann Collet
f2c0312889
removing signed integer overflow exception from ubsan tests
2021-02-19 16:30:06 -08:00
Yann Collet
9b0772177c
fix ubsan test errors
...
allows recovering from pointer overflow
2021-02-19 10:42:05 -08:00
Yann Collet
b9748757b0
fixed minor cast warning
2021-02-05 09:55:54 -08:00
Yann Collet
134be2731a
removed flackey gcc6 tests
...
from github actions.
replaced by equivalent "current" gcc tests when it makes sense
2021-02-05 09:25:33 -08:00
Yann Collet
0bad3e5c0f
parallel make build on linux
...
fix #2474
2021-01-18 11:33:03 -08:00
Yann Collet
3324e87cff
Added library version check
2021-01-07 10:37:27 -08:00
Yann Collet
2901b5e675
Merge branch 'dev' into cli-dll
2021-01-07 10:24:09 -08:00
Yann Collet
cefdc023f7
The CLI can be linked to libzstd dynamic library
...
invoking target zstd-dll
2021-01-06 18:00:24 -08:00
Yann Collet
890d85bdb4
removed CLI dependency to legacy unsafe function
...
makint the CLI ons step closer to being linkable to the dynamic library
2021-01-06 16:19:42 -08:00
Yann Collet
9866148e22
removed redundant tests
...
clang v3.8 tests are either flacky or redundant,
prefer using clang-latest.
2021-01-06 15:40:20 -08:00
Yann Collet
a0835b5bab
Merge branch 'dev' into nomsanfuzz
2020-12-29 11:45:42 -08:00
Yann Collet
ff2f888d56
fixed one more minor cast issue
...
can't use address calculation with `void*`
2020-12-29 11:44:37 -08:00
Yann Collet
3fd21d5438
Merge branch 'dev' into nomsanfuzz
2020-12-28 14:08:45 -08:00
Yann Collet
7f8be046b9
fixed minor warnings introduced in #2439
2020-12-28 14:07:31 -08:00
Yann Collet
f1585fefa2
remove flackey msan ossfuzz test
...
while waiting for it to be fixed
2020-12-28 11:18:58 -08:00
Yann Collet
f1225b186e
try to fix 32-bit test on github actions
...
for some reasons, this test fails at _installing_ 32-bit dependencies
using the exact same command that actually works in other tests !!?
It's unclear why it fails repeateadly for this test only.
Try another way to install dependencies to fix that.
2020-12-21 15:47:20 -08:00
Yann Collet
f2ac2b7bcf
try to fix cross-compiler tests
2020-12-21 15:43:14 -08:00
Yann Collet
585196353d
fix ppc64 build on circleci
2020-12-20 21:44:40 -08:00
Yann Collet
8233f55df8
verbose cross-compile tests on circleci
...
for better diagnosis
2020-12-20 21:31:58 -08:00
Yann Collet
52aa7f47dd
updated clang+msan test
2020-12-20 18:29:36 -08:00
Yann Collet
9a9d3f76c4
fixed zstd+sanitizer build
2020-12-20 17:53:04 -08:00
Yann Collet
f9884036c2
fixed zstd recipe
2020-12-20 17:19:23 -08:00
Yann Collet
9648bf027b
try to keep libzstd.a "as is" once created
...
to be compatible with scenarios such as
`make -j allmost`
2020-12-20 17:10:57 -08:00
Yann Collet
eacf1b3bc3
streamlined github action test
2020-12-20 15:03:59 -08:00
Yann Collet
f78917cdd3
streamline zlibwrapper makefile
...
making better usage of default build rules
2020-12-20 12:53:30 -08:00
Yann Collet
7c495e8ea2
updated version number to v1.4.8
2020-12-18 15:52:11 -08:00
Yann Collet
a7cb4af573
added emphasis on the alignment condition of workspace
...
and made it a programming mistake (`assert()`)
rather than a runtime error.
2020-12-18 15:04:09 -08:00
Yann Collet
7f09cdc8a8
removed duplicated release-only tests
...
from travisCI
as they are already part of Github Actions
2020-12-18 12:50:36 -08:00
Yann Collet
54cc01c5be
removed tests duplicated between TravisCI and Github Actions
...
reduce load on TravisCI
2020-12-18 11:01:22 -08:00
Yann Collet
792fdf84f8
Merge branch 'check32' of github.com:facebook/zstd into check32
2020-12-17 15:45:22 -08:00
Yann Collet
3536e9d5ff
removing tests using too much resources for 32-bit address space
2020-12-17 15:44:54 -08:00
Yann Collet
d5eb7d1569
added pre-requisites for 32-bit tests in CI
2020-12-17 15:05:26 -08:00
Yann Collet
c11db9c8b5
additional master->release switches (CI tests)
2020-12-17 15:01:04 -08:00
Yann Collet
4680d817c0
added a simple runtime test in CI for 32-bit binaries
2020-12-17 14:53:36 -08:00
Yann Collet
ce34dc39a0
removed incorrect test
2020-12-16 23:53:13 -08:00
Yann Collet
0b39531d75
moving all references to release branch
...
was previously `master`
2020-12-16 23:00:35 -08:00
Yann Collet
f647a759fe
updated version number to v1.4.7
...
and updated doc
2020-12-15 20:53:05 -08:00
Yann Collet
ecffa77e12
streamlined example recipe
...
better use of default rules
2020-12-15 02:07:08 -08:00
Yann Collet
8ab9bb9d26
added api issues reported by @animalize
2020-12-15 00:27:32 -08:00
Yann Collet
2e9ffdb468
Updated CHANGELOG for v1.4.7
2020-12-14 18:45:57 -08:00
Yann Collet
c2939b96be
refinement : only copy if binary is different
2020-12-10 14:31:35 -08:00
Yann Collet
c56723ab03
replace final links by direct copy
...
link can behave slightly differently from real binaries,
breaking a few scripts relying on "real binary" assumption.
2020-12-10 13:25:08 -08:00
Yann Collet
2477968ee7
fix gcc-10 aliasing warning in zlib_wrapper
2020-12-04 20:25:01 -08:00
Yann Collet
5c0a3489a5
fix aliasing warning in decodecorpus
2020-12-04 19:21:40 -08:00
Yann Collet
6132df8dd3
fix gcc-10 strict aliasing warnings
...
by exposing HUF_CElt declaration.
2020-12-04 16:43:19 -08:00
Yann Collet
68c14bdff2
minor speed improvement to HUF_readCTable()
...
faster by ~+1-2%
2020-12-04 16:33:39 -08:00
Yann Collet
5de5c1d759
fixed fuzzer multithreading tests
2020-12-02 10:34:12 -08:00
Yann Collet
db21d383b5
fixed fuzzer32 to support multithreading tests
...
though it still fails on test33:
`test 33: superblock uncompressible data, too many nocompress superblocks`
2020-12-02 09:13:55 -08:00
Yann Collet
f69d8c027d
removed fullbench-lib from tests/all
...
this build works fine on all my systems,
but since to fail on CI environment.
Unclear why there is a difference.
This build test is not relevant anyway.
2020-12-02 00:21:29 -08:00
Yann Collet
9f8b180d5d
fixed API documentation
2020-12-02 00:15:07 -08:00
Yann Collet
f8d0b46a9f
streamline fuzzer
...
from fuzzer32
2020-12-01 23:44:16 -08:00
Yann Collet
37165f66b7
better usage of default build rules
2020-12-01 23:36:05 -08:00
Yann Collet
343a75d2ef
simplified test makefile
...
removed gzstd target:
relevant tests are unused and broken anyway
2020-12-01 22:33:45 -08:00
Yann Collet
4b5d7e9ddb
fix lz4 test messed by console detection
2020-11-30 06:47:16 -08:00
Yann Collet
b15469203f
added tests presumed to break lz4 console detection
2020-11-30 05:32:43 -08:00
Yann Collet
09e3bb95d2
Merge branch 'dev' into libzstd_autoconf_full
2020-10-28 10:53:08 -07:00
Yann Collet
0adce4631d
Merge branch 'libzstd_autoconf_full' of github.com:facebook/zstd into libzstd_autoconf_full
2020-10-28 10:25:55 -07:00
Yann Collet
ceccd7ae2d
Merge branch 'dev' into libzstd_autoconf_full
2020-10-27 15:45:30 -07:00
Yann Collet
59ab4dcd32
Merge branch 'dev' into libzstd_autoconf_full
2020-10-26 15:17:39 -07:00
Yann Collet
456db0c377
make install only rebuild binaries if they don't exist
...
Now `make` followed by `make install` doesn't rebuild binaries
also : only generated target directories if they don't already exist
2020-10-23 16:46:49 -07:00
Yann Collet
a6ee614a44
make zstd is now differentiated from zstd-nomt
...
avoids mixing object files using different flags
2020-10-23 16:08:21 -07:00
Yann Collet
d3f1a9b5bd
fix partial-build test
...
sometimes, the scope difference is solely determined by the list of source files,
not by the flags.
2020-10-22 21:36:09 -07:00
Yann Collet
98787a3018
Merge branch 'dev' into libzstd_autoconf
2020-10-22 18:55:30 -07:00
Yann Collet
a912ef0952
can integrate later dynamic flags changes
...
for example `libzstd-mt` is `differentiated from `libzstd`
2020-10-22 18:48:06 -07:00
Yann Collet
ce6cd07c33
updated build documentation
2020-10-22 12:31:23 -07:00
Yann Collet
e3867fb735
fixed libzstd.dll compilation on mingw
...
and zstd linking
2020-10-22 11:52:19 -07:00
Yann Collet
de985b1c1a
fix appveyor test
...
was mixing `*.o` object files from different compilation settings
2020-10-16 14:31:40 -07:00
Yann Collet
314c7df170
minor : change test order
...
to reduce a warning with `clang` on Windows
2020-10-16 13:26:47 -07:00
Yann Collet
abf5c0655c
fix zlibwrap parallel build
...
previous recipe would build object files directly within programs/
which could be in competition with other local builds happening in programs/ at the same time.
fixed by generating the relevant object file locally.
2020-10-15 10:56:37 -07:00
Yann Collet
dec1a78d3e
minor fix casting for Visual
2020-09-14 11:46:23 -07:00
Yann Collet
c91a0855f8
check endDirective in ZSTD_compressStream2()
...
fix #2297
also :
- `assert()` `endDirective` in `ZSTD_compressStream_internal()`, for debug mode
- add relevant tests
2020-09-14 10:56:08 -07:00
Yann Collet
8b9cdd2597
fixed overlapping count & workspace special case
2020-07-26 22:40:21 -07:00
Yann Collet
051232223f
optimized histogram
...
new version easier to vectorize
leads to smaller code and faster execution
notably at the last recombination stage
(basically, fixed cost per block).
Assembly inspected with godbolt
On my laptop, with `clang` and `-mavx2` :
2K block : 1280 MB/s -> 1550 MB/s
8K block : 1750 MB/s -> 1860 MB/s
2020-07-26 22:24:22 -07:00
Yann Collet
15c5e20023
updated documentation
2020-07-23 12:10:57 -07:00
Yann Collet
610c41f90f
improved 2-args macro to support both syntaxes
...
both `--long-commmand=arg` and `--long-command arg`
are supported by macro `NEXT_FIELD()`
so that the long-command only needs to be listed once.
This extends the syntax to support new syntaxes like
`-o=FILE` or `-D=dict`,
though there is no need to advertise this capability for the time being.
Also : added `NEXT_UINT32()`,
which is wrapper around `NEXT_FIELD()`
to read integer parameters.
Use the wrapper to new field, such as `--memlimit`
which can now support both syntaxes too.
2020-07-20 17:41:32 -07:00
Yann Collet
23941eec04
added tests for newly enabled syntax
...
for --patch-from origin
and --filelist list
Also : removed some constrained syntax tests,
as the new argument parsing syntax is more permissive.
For example :
zstd file -of dest
used to be disallowed.
It's now allowed, and understood as:
zstd file -o dest -f
2020-07-17 13:31:15 -07:00
Yann Collet
7280c1dafa
extended 2-fields macro usage to number arguments
...
leading to further simplications
2020-07-17 13:09:23 -07:00
Yann Collet
a7e5652672
CLI: simplified handling of separated-fields arguments
...
this patch reduces complexity associated with
commands requiring a separated arguments
such as :
-o filename
-D dictionary
--output-dir-flat dir
--output-dir-mirror dir
It used to be a multi-stage process with explicit context,
it's now simplified as a single macro.
Thanks to this simplification,
separated arguments logic has also been extended to
--patch-from XXX
--filelist XXX
which extends existing capability using =XXX
--patch-from=XXX
--filelist=XXX
Separated argument is useful for filenames and directories,
as it benefits from shell expansion
such as ~/dir/file
where the ~ is automatically translated by the shell.
In contrast --long-command=FILE does not interpret FILE,
so ~/ is transmitted as is to the main() function,
generally resulting in incorrect file name.
2020-07-17 12:46:36 -07:00
Yann Collet
c224367ede
ensure workspace is large enough
...
even when MAX_TABLELOG is reduced
2020-07-16 20:33:50 -07:00
Yann Collet
21c273da84
import some minor fixes from FSE project
2020-07-16 20:25:15 -07:00
Yann Collet
1dcc478796
fix uclibc's st_mtim
...
reported and suggested by @ewildgoose (#1872 )
2020-07-13 14:16:33 -07:00
Yann Collet
c1913ed8c1
added paragraph on static analysis pitfalls
2020-06-15 13:04:45 -07:00
Yann Collet
105b5839de
added comment on $(Q)
2020-05-29 12:40:59 -07:00
Yann Collet
6ac6472988
fixed double-compilation of lib with make -j all
...
also implemented verbose mode (make V=1)
2020-05-29 12:09:51 -07:00
Yann Collet
11a392ce23
minor markdown formatting fix
2020-05-26 13:15:35 -07:00
Yann Collet
bb3c9bf43a
updated spec on dictID==0
...
Specified decoder behavior on receiving a frame with dictID=0.
Pushed paragraph on reserved DictID ranges into the Dictionary Format section.
2020-05-25 08:15:09 -07:00
Yann Collet
39a32f40c9
fixed default rule for lib/Makefile
...
default rule is `lib-release`
`lib-release` wasn't working : it was just skipped.
Removing `lib-release` from the list of .PHONY targets fixes it.
Same for `lib-mt`.
2020-05-25 06:50:45 -07:00
Yann Collet
082755bd3f
do not install zbuff.h
...
this API is deprecated, for a loong time now,
all related symbols will be removed in a future version (likely v1.5.0)
and the header file `zbuff.h` doesn't compile from `include/` anyway,
because it needs to be positioned one directory below `zstd.h`.
Also removed `cover.h` from `cmake` installer,
as it should have never been part of this list to begin with.
2020-05-22 15:35:54 -07:00
Yann Collet
306e922f60
fixed environment variables
2020-05-21 18:06:43 -07:00
Yann Collet
5d0c8a0770
Merge branch 'dev' into visual_playTests
2020-05-21 16:45:02 -07:00
Yann Collet
26b21e481f
fix meson playTests.sh
2020-05-21 15:17:22 -07:00
Yann Collet
a63810e2ac
try to fix PPC64 Qemu tests
2020-05-21 10:26:40 -07:00
Yann Collet
ad0c0d1946
fixed appveyor long tests
...
playTests changed variable name
2020-05-21 00:53:57 -07:00
Yann Collet
14aaa5290a
fixed zbuff test
...
error introduced in https://github.com/facebook/zstd/blame/3b39ce6b527c5cfe395a187c75b77baf5cc7de02/.travis.yml#L192
2020-05-21 00:22:52 -07:00
Yann Collet
18082ce85a
updated CHANGELOG for v1.4.5
2020-05-15 17:19:00 -07:00
Yann Collet
f22b371e31
updated documentation for v1.4.5
...
API manual and man pages
2020-05-14 16:17:03 -07:00
Yann Collet
e001715b3d
fixed asan test
2020-05-11 20:35:47 -07:00
Yann Collet
20bd246045
blindfix for VS macro redefinition
2020-05-11 19:29:36 -07:00