Commit Graph

832 Commits

Author SHA1 Message Date
Nick Terrell
3dcafd35d4 Fix test mode and write to null
Fix test mode to not always return success.
Don't ask for permission to overwrite `nulmark`.

Before:

    > echo "hello world" > file
    > lz4 -t file
    successfully decoded 12 bytes
    > lz4 -tf file
    successfully decoded 12 bytes
    > lz4 file null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists
    > lz4 file /dev/null
    Warning : /dev/null already exists
    Overwrite ? (Y/n) : n
    Error 12 : No. Operation aborted : /dev/null already exists

After:

    > lz4 -t file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 -tf file
    Error 44 : Unrecognized header : file cannot be decoded
    > lz4 file null
    Compressed 12 bytes into 31 bytes ==> 258.33%
    > lz4 file /dev/null
    Compressed 12 bytes into 31 bytes ==> 258.33%
2016-11-03 15:41:09 -07:00
Yann Collet
6f68a1692e fixed travis badges 2016-11-03 10:52:03 -07:00
Yann Collet
99d11120bd Merge pull request #249 from inikep/dev
Dev
2016-11-03 10:49:33 -07:00
Yann Collet
46b49af37c fixed clang conversion warning 2016-11-03 10:39:35 -07:00
Yann Collet
c66108ceb2 check fread() operation results (#243) 2016-11-03 09:27:35 -07:00
Przemyslaw Skibinski
8847faffbf updated programs/README.md 2016-11-03 16:17:38 +01:00
Przemyslaw Skibinski
f38adde9e0 versionsTests moved to tests/ 2016-11-03 16:01:50 +01:00
Przemyslaw Skibinski
74ba377d72 updated .travis.yml 2016-11-03 15:28:50 +01:00
Przemyslaw Skibinski
9f15a4c6e6 updated Visual Studio projects 2016-11-03 15:18:59 +01:00
Przemyslaw Skibinski
84cedb4632 updated links to LZ4 repository 2016-11-03 15:12:57 +01:00
Przemyslaw Skibinski
e624978ea2 test programs moved to tests/ 2016-11-03 15:03:43 +01:00
Przemyslaw Skibinski
88cef262ec documentation moved to doc/ 2016-11-03 13:25:20 +01:00
Przemyslaw Skibinski
b768da8ad8 Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev 2016-11-03 13:12:51 +01:00
Yann Collet
59adfd82d6 fix for ARM platform 2016-11-01 21:04:56 -07:00
Yann Collet
67500142c1 Clarified license (#115, #244) 2016-11-01 19:14:04 -07:00
Yann Collet
f173027690 moved cmake and debian directories to contrib (#245) 2016-11-01 17:29:15 -07:00
Yann Collet
d05ca2ff6d fixed #247, reported by Felix Bolte 2016-11-01 16:54:33 -07:00
Yann Collet
7e112cfa5c fixes static compilation under Windows (#246) 2016-10-21 09:49:30 -07:00
Yann Collet
e64a926924 Merge pull request #242 from vapier/dev
README: fix minor typo
2016-09-23 23:47:24 +02:00
Mike Frysinger
92408d3381 README: fix minor typo 2016-09-23 17:38:58 -04:00
Yann Collet
52cdb4a5f4 Merge pull request #241 from vapier/dev
add a flag to disable static libs
2016-09-23 15:59:39 +02:00
Yann Collet
c5cb4aa52a Merge pull request #238 from kou/add-lz4lib-api
Add LZ4LIB_API
2016-09-23 08:54:24 +02:00
Yann Collet
544abacedc Merge pull request #240 from kou/add-missin-ext
Add missing $(EXT) to lz4 program name
2016-09-23 08:51:35 +02:00
Mike Frysinger
43b631223b add a flag to disable static libs 2016-09-22 23:59:02 -04:00
Kouhei Sutou
829941e5a8 Add missing $(EXT) to lz4 program name 2016-09-23 10:43:12 +09:00
Kouhei Sutou
59771f41cd Use different prefix for each file to avoid conflict 2016-09-23 10:38:44 +09:00
Yann Collet
1ca408105d Merge pull request #239 from kou/use-lower-case-for-header-name
Use lower case for header file name
2016-09-22 19:13:05 +02:00
Kouhei Sutou
012c66536c Add LZ4LIB_API
It's based on Zstandard's ZSTDLIB_API.

See also: https://github.com/Cyan4973/lz4/issues/216#issuecomment-226245432

Deprecated functions aren't LZ4LIB_API targets. Because we don't need to
export deprecated functions from now.

There are same LZ4LIB_API definitions in each header files instead of
including a common header file because LZ4_DEPRECATED is defined so.
2016-09-23 00:39:45 +09:00
Kouhei Sutou
46a7b94e8c Use lower case for header file name
"WinIoCtl.h" works on Windows because Windows uses case insensitive file
system. But it doesn't work on GNU/Linux (for cross compiling with
MinGW) because GNU/Linux uses case sensitive file system.
2016-09-23 00:34:42 +09:00
Yann Collet
3b9439ccd0 updated uninstall 2016-09-17 11:59:13 +02:00
Yann Collet
8eae1320c2 Merge pull request #236 from inikep/dev
fix bug #232 at https://github.com/Cyan4973/lz4/issues/232
2016-09-06 16:49:34 +02:00
Yann Collet
33993542af removed test artefacts 2016-09-06 16:46:52 +02:00
inikep
3eb143fffa fix bug #232 at https://github.com/Cyan4973/lz4/issues/232 2016-09-06 10:36:16 +02:00
Yann Collet
c8a78dba1f datagen depends on lz4.h for version string 2016-09-05 06:49:55 -07:00
Yann Collet
53515b05e6 Merge pull request #235 from inikep/dev
updated .travis.yml
2016-09-05 05:59:58 -07:00
inikep
92ee3e0ea9 fixed LZ4 repository links 2016-09-05 13:39:35 +02:00
inikep
39be6f16a2 versionTests require 32-bit gcc libraries 2016-09-05 12:32:33 +02:00
inikep
122fdd13a3 versionTests require python3 2016-09-05 10:53:53 +02:00
inikep
6adf7392a2 updated .travis.yml 2016-09-05 10:34:58 +02:00
Yann Collet
8ac619afef Merge pull request #233 from inikep/dev
Appveyor tests
2016-09-02 23:34:18 -07:00
inikep
58a1616d7b Merge remote-tracking branch 'refs/remotes/Cyan4973/dev' into dev
# Conflicts:
#	programs/Makefile
2016-09-03 08:10:16 +02:00
inikep
c77fdb44f1 disabled <RunCodeAnalysis> for Win32 2016-09-03 07:53:38 +02:00
Yann Collet
28f98647e3 lz4 version source from lz4.h 2016-09-02 22:04:16 -07:00
Yann Collet
dd51ca6300 frametest depends on standard C time.h only 2016-09-02 21:46:02 -07:00
Yann Collet
f327a8bddd fullbench depends on standard C time.h only 2016-09-02 20:17:19 -07:00
Yann Collet
32a31663c3 fuzzer depends on standard C time.h only 2016-09-02 19:48:24 -07:00
Yann Collet
64f556e610 lz4cli version number from lz4.h 2016-09-02 19:32:06 -07:00
Yann Collet
5871585b6a coding style change 2016-09-02 19:06:01 -07:00
inikep
e5b0f1ea14 CFLAGS += $(MOREFLAGS) 2016-09-03 02:05:01 +02:00
inikep
829ae75871 remove EnablePREfast=true for Win32 2016-09-03 01:35:00 +02:00