#!/bin/sh -e cat >"$AUTOPKGTEST_TMP/hello.c" < 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"