unit tests and run tests are splitted

run tests can use golden value and test data to process and compare results
This commit is contained in:
Vasily Levchenko
2016-11-01 17:06:23 +03:00
parent 283303210f
commit ac761e0cbf
2 changed files with 71 additions and 28 deletions
+6
View File
@@ -16,7 +16,13 @@ void * resolve_symbol(char *name) {
int
kotlinNativeMain() {
#ifdef RUN_TEST
void (*main)(void *) = resolve_symbol("kfun:main");
main((void *)0);
return 0;
#else
return run_test();
#endif
}
int ktype_kotlin_any asm("_ktype:kotlin.Any");