diff options
author | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-07 10:08:59 (GMT) |
---|---|---|
committer | Takayuki Matsuoka <t-mat@users.noreply.github.com> | 2022-08-07 10:08:59 (GMT) |
commit | f88f02f78c6c609c912ce0ee1773ee07d6e2e7ac (patch) | |
tree | 8b1c007fabd248a91a25a875cd42a0e5c3e13d68 /tests/Makefile | |
parent | 50915609a9a0c1feb616c4de534f4a388d48f79a (diff) | |
download | lz4-f88f02f78c6c609c912ce0ee1773ee07d6e2e7ac.zip lz4-f88f02f78c6c609c912ce0ee1773ee07d6e2e7ac.tar.gz lz4-f88f02f78c6c609c912ce0ee1773ee07d6e2e7ac.tar.bz2 |
Add LZ4_FREESTANDING test on Linux x86-64 platform
Also added tests/Makefile entry "test-freestanding".
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/Makefile b/tests/Makefile index 4b6ea48..33309b4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -56,7 +56,7 @@ NB_LOOPS ?= -i1 .PHONY: default default: all -all: fullbench fuzzer frametest roundTripTest datagen checkFrame decompress-partial +all: fullbench fuzzer frametest roundTripTest datagen checkFrame decompress-partial freestanding all32: CFLAGS+=-m32 all32: all @@ -115,6 +115,9 @@ decompress-partial: lz4.o decompress-partial.c decompress-partial-usingDict: lz4.o decompress-partial-usingDict.c $(CC) $(FLAGS) $^ -o $@$(EXT) +freestanding: freestanding.c + $(CC) -ffreestanding -nostdlib $^ -o $@$(EXT) + .PHONY: clean clean: @$(MAKE) -C $(LZ4DIR) $@ > $(VOID) @@ -127,7 +130,7 @@ clean: fasttest$(EXT) roundTripTest$(EXT) \ datagen$(EXT) checkTag$(EXT) \ frameTest$(EXT) decompress-partial$(EXT) \ - abiTest$(EXT) \ + abiTest$(EXT) freestanding$(EXT) \ lz4_all.c @$(RM) -rf $(TESTDIR) @echo Cleaning completed @@ -179,7 +182,7 @@ list: check: test-lz4-essentials .PHONY: test -test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-amalgamation listTest test-decompress-partial +test: test-lz4 test-lz4c test-frametest test-fullbench test-fuzzer test-amalgamation listTest test-decompress-partial test-freestanding .PHONY: test32 test32: CFLAGS+=-m32 @@ -606,4 +609,10 @@ test-decompress-partial : decompress-partial decompress-partial-usingDict @echo "\n ---- test decompress-partial-usingDict ----" ./decompress-partial-usingDict$(EXT) +test-freestanding: freestanding + @echo "\n ---- test freestanding ----" + ./freestanding$(EXT) + strace ./freestanding$(EXT) + ltrace ./freestanding$(EXT) + endif |