xxhash: add test

This commit is contained in:
Boris Nagaev 2016-07-07 20:50:40 +02:00
parent fbdd57fd8b
commit fc78b0c432
2 changed files with 17 additions and 0 deletions

12
src/xxhash-test.c Normal file
View File

@ -0,0 +1,12 @@
/*
* This file is part of MXE.
* See index.html for further information.
*/
#include <xxhash.h>
int main() {
XXH32_state_t* state = XXH32_createState();
XXH32_freeState(state);
return 0;
}

View File

@ -31,4 +31,9 @@ define $(PKG)_BUILD
echo 'Description: xxHash'; \
echo 'Libs: -lxxhash';) \
> '$(PREFIX)/$(TARGET)/lib/pkgconfig/$(PKG).pc'
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
endef