diff options
Diffstat (limited to 'embedded-test.sh')
-rwxr-xr-x | embedded-test.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/embedded-test.sh b/embedded-test.sh index e7e6926..f038bf7 100755 --- a/embedded-test.sh +++ b/embedded-test.sh @@ -948,6 +948,19 @@ cat >> $file << EOF /opt/ltp/runltp $tee EOF fi + # native test + if [ $test = "native" ]; then +cat >> $file << EOF +echo '#include <stdio.h>\nint main() {\n printf("Hello World");\n return 0; \n}'> /hello.c +gcc -o /hello /hello.c $tee +/hello $tee +if [ \$? -eq 0 ]; then + echo "\nsuccess" +else + echo "\nfailed" +fi +EOF + fi # mksh test if [ $test = "mksh" ]; then cat >> $file << EOF |