2021-07-05 06:50:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
r_log "gcc" "Ensure gcc can build a simple program"
|
|
|
|
OUTPUTPROG=$(mktemp)
|
|
|
|
|
2021-07-06 20:16:01 +00:00
|
|
|
gcc ./common/files/hello.c -o "$OUTPUTPROG"
|
|
|
|
"$OUTPUTPROG" | grep -q "Hello!"
|
2021-07-05 06:50:25 +00:00
|
|
|
r_checkExitStatus $?
|
|
|
|
|
2021-07-06 20:16:01 +00:00
|
|
|
rm "$OUTPUTPROG"
|