File: testcpucycles-static

package info (click to toggle)
libcpucycles 0~20260105-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: ansic: 1,174; python: 404; sh: 62; makefile: 41
file content (24 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

dir=`dirname "$0"`

# change directory to $AUTOPKGTEST_TMP
cd "${AUTOPKGTEST_TMP}"

cleanup() {
  ex=$?
  rm -f testcpucycles.bin
  exit "${ex}"
}
trap "cleanup" EXIT TERM INT

CC="cc -O"
LIBDIR="/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH`"

echo 'libcpucycles - static:'
${CC} -o testcpucycles.bin "${dir}/../../command/cpucycles-info.c"  "${LIBDIR}/libcpucycles.a" -lm -lrt
./testcpucycles.bin

exit 0