[DEV] start add unitary test
This commit is contained in:
22
test/test-c/lutin_test-c.py
Normal file
22
test/test-c/lutin_test-c.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
import lutin.module as module
|
||||
import lutin.tools as tools
|
||||
import lutin.debug as debug
|
||||
import os
|
||||
|
||||
def get_type():
|
||||
return "BINARY"
|
||||
|
||||
def get_desc():
|
||||
return "Text C compilation"
|
||||
|
||||
def create(target, module_name):
|
||||
my_module = module.Module(__file__, module_name, get_type())
|
||||
my_module.add_extra_compile_flags()
|
||||
my_module.add_src_file([
|
||||
'test.c'
|
||||
])
|
||||
if target.name=="Android":
|
||||
my_module.compile_version("c", 1999)
|
||||
return my_module
|
||||
|
6
test/test-c/test.c
Normal file
6
test/test-c/test.c
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int _argc, char* _argv[]) {
|
||||
printf("Hello World\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user