2013-04-25 22:37:15 -07:00
|
|
|
|
|
|
|
#define TEST_NAME "sodium_version"
|
|
|
|
#include "cmptest.h"
|
|
|
|
|
2017-02-23 03:24:48 -07:00
|
|
|
int
|
|
|
|
main(void)
|
2013-04-25 22:37:15 -07:00
|
|
|
{
|
2014-09-14 11:32:55 -07:00
|
|
|
printf("%d\n", sodium_version_string() != NULL);
|
|
|
|
printf("%d\n", sodium_library_version_major() > 0);
|
|
|
|
printf("%d\n", sodium_library_version_minor() >= 0);
|
2017-03-06 01:47:09 -07:00
|
|
|
#ifdef SODIUM_LIBRARY_MINIMAL
|
|
|
|
assert(sodium_library_minimal() == 1);
|
|
|
|
#else
|
|
|
|
assert(sodium_library_minimal() == 0);
|
|
|
|
#endif
|
2013-04-25 22:37:15 -07:00
|
|
|
|
2014-09-14 10:34:16 -07:00
|
|
|
return 0;
|
2013-04-25 22:37:15 -07:00
|
|
|
}
|