blob: 4dc76b480ed0586ef3e4ec444f2d71dbd76f362a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh -e
cat >"$AUTOPKGTEST_TMP/hello.c" <<EOF
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
}
EOF
klcc "$AUTOPKGTEST_TMP/hello.c" -o "$AUTOPKGTEST_TMP/hello"
"$AUTOPKGTEST_TMP/hello" >"$AUTOPKGTEST_TMP/hello.out"
grep -F 'Hello world' "$AUTOPKGTEST_TMP/hello.out"
|