File: build

package info (click to toggle)
libselinux 3.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,288 kB
  • sloc: ansic: 15,414; makefile: 390; sh: 44; 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"