File: build-and-test.sh

package info (click to toggle)
packagekit 1.3.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,824 kB
  • sloc: ansic: 56,491; cpp: 15,652; xml: 5,532; python: 4,932; sh: 316; perl: 60; makefile: 56
file content (28 lines) | stat: -rwxr-xr-x 458 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
#!/bin/sh
set -e

if [ -d "build" ]; then
  rm build -rf
fi
set -x

meson setup build \
    -Dmaintainer=true \
    -Dlocal_checkout=true \
    -Dlegacy_tools=true \
    -Ddaemon_tests=true \
    $@

DUMMY_DESTDIR=/tmp/install-root/
rm -rf $DUMMY_DESTDIR

# Build & Install
ninja -C build
DESTDIR=$DUMMY_DESTDIR ninja -C build install

# Run tests
mkdir -p /run/dbus/
dbus-daemon --system --print-address
meson test -C build \
    -v \
    --print-errorlogs