parent
7437d9862a
commit
b8052f9e50
4 changed files with 37 additions and 1 deletions
@ -0,0 +1,17 @@ |
||||
#include <stdio.h> |
||||
|
||||
int main (int argc, char * argv[]) |
||||
{ |
||||
const char *out = "SUCCESS!"; |
||||
|
||||
if (argc != 2) { |
||||
printf ("%s\n", out); |
||||
} else { |
||||
int ret; |
||||
FILE *f = fopen (argv[1], "w"); |
||||
ret = fwrite (out, sizeof (out), 1, f); |
||||
if (ret != 1) |
||||
return -1; |
||||
} |
||||
return 0; |
||||
} |
@ -0,0 +1,6 @@ |
||||
project('run native test', ['c']) |
||||
|
||||
executable('terget_exe', 'main.c') |
||||
|
||||
native_exe = executable('native_exe', 'main.c', native: true) |
||||
test('native_exe', native_exe, args: ['native_test_has_run.stamp']) |
Loading…
Reference in new issue