xref: /freebsd/sys/contrib/libsodium/test/default/sodium_version.c (revision d3d381b2b194b4d24853e92eecef55f262688d1a)
1 
2 #define TEST_NAME "sodium_version"
3 #include "cmptest.h"
4 
5 int
6 main(void)
7 {
8     printf("%d\n", sodium_version_string() != NULL);
9     printf("%d\n", sodium_library_version_major() > 0);
10     printf("%d\n", sodium_library_version_minor() >= 0);
11 #ifdef SODIUM_LIBRARY_MINIMAL
12     assert(sodium_library_minimal() == 1);
13 #else
14     assert(sodium_library_minimal() == 0);
15 #endif
16 
17     return 0;
18 }
19