summaryrefslogtreecommitdiffstats
path: root/debian/tests/klcc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 17:06:05 +0000
commit1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f (patch)
treeccc43985c0c11bc84e775e54f4aab6b6545bcf7e /debian/tests/klcc
parentAdding upstream version 2.0.13. (diff)
downloadklibc-1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f.tar.xz
klibc-1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f.zip
Adding debian version 2.0.13-4.debian/2.0.13-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/klcc')
-rwxr-xr-xdebian/tests/klcc13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/klcc b/debian/tests/klcc
new file mode 100755
index 0000000..4dc76b4
--- /dev/null
+++ b/debian/tests/klcc
@@ -0,0 +1,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"