ocarina/tests/version.cpp
Anna Schumaker 34b0c56a70 Move tests out of tests/src/
... and just into the tests/ directory.  I also reworked the Sconscript
to compile everything using only the lib/ files that are needed.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
2014-05-06 08:37:04 -04:00

23 lines
387 B
C++

/*
* Copyright 2013 (c) Anna Schumaker.
*/
#include <version.h>
#include "test.h"
#ifdef CONFIG_DEBUG
const std::string expected = "6.1-debug";
#else
const std::string expected = "6.1";
#endif /* CONFIG_DEBUG */
static void test_version()
{
test_equal((std::string)get_version(), expected);
}
int main(int argc, char **argv)
{
run_test("Version Test", test_version);
return 0;
}