File: curl-ldapi-test

package info (click to toggle)
curl 8.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,016 kB
  • sloc: ansic: 202,975; perl: 20,695; python: 10,293; sh: 6,684; makefile: 1,529; pascal: 239; cpp: 174
file content (24 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (8)
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

cleanup() {
    if [ $? -ne 0 ]; then
        set +e
        echo "## Something failed, gathering logs"
        echo
        echo "## syslog"
        tail -n 50 /var/log/syslog
        echo
        echo "## slapd journal"
        journalctl -u slapd
    fi
}

trap cleanup EXIT

echo "## Building ldap-test app"
gcc debian/tests/LDAP-bindata.c $(pkgconf --cflags --libs ldap libcurl) -o "$AUTOPKGTEST_TMP"/ldap-test

echo "## calling ldap-test"
"$AUTOPKGTEST_TMP"/ldap-test