2014-06-24 17:24:54 +01:00
|
|
|
#include <mraa.h>
|
2014-04-10 11:07:05 +01:00
|
|
|
#include "gtest/gtest.h"
|
2014-05-20 15:40:28 +01:00
|
|
|
#include "version.h"
|
2014-04-10 11:07:05 +01:00
|
|
|
|
2014-05-20 15:40:28 +01:00
|
|
|
/* Careful, this test will only attempt to check the returned version is valid,
|
|
|
|
|
* it doesn't try to check the version is a release one.
|
|
|
|
|
*/
|
2014-06-24 17:24:54 +01:00
|
|
|
TEST (basic, mraa_get_version) {
|
2014-05-20 15:40:28 +01:00
|
|
|
char bar[64];
|
2014-06-24 17:24:54 +01:00
|
|
|
strcpy(bar, mraa_get_version());
|
|
|
|
|
ASSERT_STREQ(mraa_get_version(), gVERSION);
|
2014-04-10 11:07:05 +01:00
|
|
|
}
|