File: build

package info (click to toggle)
libselinux 3.9-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,388 kB
  • sloc: ansic: 17,687; makefile: 396; sh: 78; python: 21
file content (20 lines) | stat: -rwxr-xr-x 316 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -eux

cd "$AUTOPKGTEST_TMP"
cat <<EOF > libselinux.c
#include <selinux/selinux.h>

int main(void)
{
    is_selinux_enabled();
    return 0;
}
EOF

gcc -o libselinux-test libselinux.c $(pkg-config --cflags --libs libselinux)
echo "build (libselinux): OK"

./libselinux-test
echo "run (libselinux): OK"