mirror of
https://github.com/FEX-Emu/xxHash.git
synced 2025-02-20 06:53:25 +00:00
added namespace test
This commit is contained in:
parent
16bbb84a69
commit
fb4d0d4df9
14
Makefile
14
Makefile
@ -103,7 +103,7 @@ test-xxhsum-c: xxhsum
|
||||
echo "00000000 test-expects-file-not-found" | ./xxhsum -c -; test $$? -eq 1
|
||||
|
||||
clean-xxhsum-c:
|
||||
@rm -f .test.xxh32 .test.xxh64
|
||||
@$(RM) -f .test.xxh32 .test.xxh64
|
||||
|
||||
armtest: clean
|
||||
@echo ---- test ARM compilation ----
|
||||
@ -125,19 +125,25 @@ staticAnalyze: clean
|
||||
@echo ---- static analyzer - scan-build ----
|
||||
CFLAGS="-g -Werror" scan-build --status-bugs -v $(MAKE) all
|
||||
|
||||
namespaceTest:
|
||||
$(CC) -c xxhash.c
|
||||
$(CC) -DXXH_NAMESPACE=TEST_ -c xxhash.c -o xxhash2.o
|
||||
$(CC) xxhash.o xxhash2.o xxhsum.c -o xxhsum2 # will fail if one namespace missing (symbol collision)
|
||||
$(RM) *.o xxhsum2 # clean
|
||||
|
||||
xxhsum.1: xxhsum.1.md
|
||||
cat $^ | $(MD2ROFF) $(MD2ROFF_FLAGS) | sed -n '/^\.\\\".*/!p' > $@
|
||||
|
||||
man: xxhsum.1
|
||||
|
||||
clean-man:
|
||||
rm xxhsum.1
|
||||
$(RM) xxhsum.1
|
||||
|
||||
preview-man: clean-man man
|
||||
man ./xxhsum.1
|
||||
|
||||
test-all: clean all test test32 test-xxhsum-c clean-xxhsum-c armtest clangtest gpptest sanitize staticAnalyze
|
||||
test-all: clean all namespaceTest test test32 test-xxhsum-c clean-xxhsum-c armtest clangtest gpptest sanitize staticAnalyze
|
||||
|
||||
clean: clean-xxhsum-c
|
||||
@rm -f core *.o xxhsum$(EXT) xxhsum32$(EXT) xxhsum_inlinedXXH$(EXT) xxh32sum xxh64sum
|
||||
@$(RM) -f core *.o xxhsum$(EXT) xxhsum32$(EXT) xxhsum_inlinedXXH$(EXT) xxh32sum xxh64sum
|
||||
@echo cleaning completed
|
||||
|
Loading…
x
Reference in New Issue
Block a user