File: upstream-tests

package info (click to toggle)
cjson 1.7.19-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,996 kB
  • sloc: ansic: 16,797; ruby: 3,083; makefile: 338; python: 220; sh: 26
file content (22 lines) | stat: -rw-r--r-- 404 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
#!/bin/sh

# run upstream's test suite

set -e

# copy source tree to temp dir
cp -r . "$AUTOPKGTEST_TMP" ; cd "$AUTOPKGTEST_TMP"

# patch upstream's tests/CMakeLists.txt to run standalone
patch -p1 <debian/tests/standalone-tests.patch

# set compiler
export CC="gcc"

# build
mkdir build ; cd build
cmake ../tests/ 2>&1
cmake --build . -j $(nproc) 2>&1

# run
ctest --output-on-failure -j $(nproc) 2>&1