File: test-thread.sh

package info (click to toggle)
libcap-ng 0.8.5-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 520 kB
  • sloc: ansic: 2,790; makefile: 138; python: 59; sh: 24
file content (12 lines) | stat: -rwxr-xr-x 185 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

set -e

TEST_PATH="src/test"
touch ${TEST_PATH}/config.h

gcc -Wall ${TEST_PATH}/thread_test.c -o test_thread -lcap-ng -lpthread
echo "build OK"

./test_thread
echo "run OK"