libotr: add test

pull/1714/head
Boris Nagaev 7 years ago committed by Boris Pek
parent 0758a5b0f4
commit b57256b51f

@ -0,0 +1,14 @@
/*
* This file is part of MXE. See LICENSE.md for licensing information.
*/
#include <libotr/proto.h>
#include <libotr/userstate.h>
int main() {
OtrlUserState userstate;
OTRL_INIT;
userstate = otrl_userstate_create();
otrl_userstate_free(userstate);
return 0;
}

@ -26,4 +26,9 @@ define $(PKG)_BUILD
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' \
$(if $(BUILD_SHARED), LDFLAGS=-no-undefined) $(MXE_DISABLE_CRUFT)
$(MAKE) -C '$(BUILD_DIR)' -j 1 install $(MXE_DISABLE_CRUFT)
'$(TARGET)-gcc' \
-W -Wall -Werror -ansi -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
`'$(TARGET)-pkg-config' $(PKG) --cflags --libs`
endef

Loading…
Cancel
Save