forked from cory/tildefriends
Add libsodium to the tree and build what's needed from source.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3859 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
18
deps/libsodium/test/default/sodium_version.c
vendored
Normal file
18
deps/libsodium/test/default/sodium_version.c
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
|
||||
#define TEST_NAME "sodium_version"
|
||||
#include "cmptest.h"
|
||||
|
||||
int
|
||||
main(void)
|
||||
{
|
||||
printf("%d\n", sodium_version_string() != NULL);
|
||||
printf("%d\n", sodium_library_version_major() > 0);
|
||||
printf("%d\n", sodium_library_version_minor() >= 0);
|
||||
#ifdef SODIUM_LIBRARY_MINIMAL
|
||||
assert(sodium_library_minimal() == 1);
|
||||
#else
|
||||
assert(sodium_library_minimal() == 0);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user