File: run-build-test

package info (click to toggle)
libzeep 7.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,372 kB
  • sloc: cpp: 17,430; javascript: 180; makefile: 12; sh: 11
file content (33 lines) | stat: -rw-r--r-- 753 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
30
31
32
33
#!/bin/bash
set -e
set -x

pkg="libzeep-dev"

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cp -r /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP

cmake -S . -B build
cmake --build build --target daemon-sample

# The tests below fail, presumably since asio insists on
# having a resolver available? Will have to find out.
# For now, we know at least that the applications build.
#
# build/daemon-sample start
# build/daemon-sample status
# msg=$(curl http://127.0.0.1:10330/restcall)
# build/daemon-sample stop
# 
# if [ "$msg" = "Hello, world!" ] ; then
# 	echo "Test passed"
# else
# 	echo "Test failed"
# 	exit 1
# fi