File: compile-run-shared

package info (click to toggle)
lowdown 2.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,484 kB
  • sloc: ansic: 21,512; sh: 1,892; xml: 861; makefile: 518
file content (15 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
  CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
else
  CROSS_COMPILE=
fi

${CROSS_COMPILE}gcc -o $AUTOPKGTEST_TMP/test-html-shared \
   $(dirname $0)/test-html.c \
   $(${CROSS_COMPILE}pkg-config --libs --shared lowdown)

$AUTOPKGTEST_TMP/test-html-shared | grep -q '<h1>This is a header</h1>'