File: cmake

package info (click to toggle)
dh-ada-library 9.9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: sh: 293; perl: 273; makefile: 119; ada: 58; ansic: 7
file content (29 lines) | stat: -rw-r--r-- 696 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
set -Ceu
cp -a tests/template-pkg "$AUTOPKGTEST_TMP/pkg"
cd "$AUTOPKGTEST_TMP/pkg"

export so_name=libfoo.so.5
export so_file=libfoo.so.5.0.0
export so_link=$so_name

DEB_RULES_REQUIRES_ROOT=no \
DEB_BUILD_OPTIONS=noopt debian/rules binary

cd debian

DEB_HOST_MULTIARCH=`dpkg-architecture -qDEB_HOST_MULTIARCH`
DEB_LIB_DIR=usr/lib/$DEB_HOST_MULTIARCH

echo 'Shared library'
test -e libfoo5/$DEB_LIB_DIR/$so_file

echo 'Ldconfig link'
test -h libfoo5/$DEB_LIB_DIR/$so_name
test $(readlink -v libfoo5/$DEB_LIB_DIR/$so_name) = $so_file

echo 'Development symbolic link'
test -h libfoo-dev/$DEB_LIB_DIR/libfoo.so
test $(readlink -v libfoo-dev/$DEB_LIB_DIR/libfoo.so) = $so_link

echo 'OK'