diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:06:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:06:05 +0000 |
commit | 1aa22fd5afd692a2411ab2ffd42bdd96db3e2b9f (patch) | |
tree | ccc43985c0c11bc84e775e54f4aab6b6545bcf7e /debian/tests | |
parent | Adding upstream version 2.0.13. (diff) | |
download | klibc-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')
-rw-r--r-- | debian/tests/control | 2 | ||||
-rwxr-xr-x | debian/tests/klcc | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..0be8559 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: klcc +Depends: build-essential, libklibc-dev 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" |