Skip to content

Commit

Permalink
Add `gcc hello.c' test scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Nov 20, 2018
1 parent 0bce80c commit d6840ea
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scenarios/coast/gcc/hello.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
meta:
name: "gcc hello.c"
harbours:
- gcc
- binutils

# As there may not be enough free space for temporary
# files on root FS, we copy the source to /tmp and
# compile there.

tasks:
- boot
- command:
args: "cp /src/c/demos/hello/hello.c /tmp/hello.c"
- command:
args: "cd /tmp"
- command:
args: "gcc hello.c"
- command:
args: "./a.out"
assert: "hello!"

0 comments on commit d6840ea

Please sign in to comment.