Debian Codegraph @

debian/tests/build

raw
1 #!/bin/sh
2
3 set -e
4 exec 2>&1
5 set -u
6 set -x
7
8 cd "$AUTOPKGTEST_TMP"
9 cat > example.c <<'EOF'
10 /* A very much simplified version of examples/simple/simple.c */
11 #include <openhmd.h>
12
13 int main(void)
14 {
15 ohmd_context *ctx = ohmd_ctx_create();
16 ohmd_ctx_destroy(ctx);
17 return 0;
18 }
19 EOF
20
21 gcc -o example example.c $(pkg-config --cflags --libs openhmd)
22 test -x ./example
23 ./example