File: build-tests

package info (click to toggle)
libcommuni 3.7.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,452 kB
  • sloc: cpp: 18,969; sh: 298; ansic: 139; makefile: 13
file content (24 lines) | stat: -rw-r--r-- 509 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

# testscript to run libcommuni unit tests.
# Part of the Debian package for libcommuni

set -e

# copying source as the build is in-source.
WORKDIR=$(mktemp -d)
echo "this is our $WORKDIR"

trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM

# Copy the source tree
cp -r . "$WORKDIR" ; cd "$WORKDIR"

# Build it and run tests.
./configure --nomake examples --nomake qml

# build only the tests and run them.
# This will make sure the libs from the package are used.:
cd tests
make check -j $(nproc)