File: run-unit-test

package info (click to toggle)
glbinding 3.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,972 kB
  • sloc: cpp: 224,461; javascript: 1,615; sh: 114; makefile: 98
file content (20 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
# Copyright 2016 Ghislain Antony Vaillant
#
# This file is part of the packaging testsuite for glbinding.

set -eux

cp -r /usr/src/googletest "$AUTOPKGTEST_TMP"
cp -r source/tests/* "$AUTOPKGTEST_TMP"
cp -r cmake "$AUTOPKGTEST_TMP"

cd "$AUTOPKGTEST_TMP"

# The RingBuffer test is excluded, since it relies on private headers.
sed -e '/RingBuffer/ s/^/#/' -i glbinding-test/CMakeLists.txt

# Configure, build, test
cmake -B _build
cmake --build _build --verbose
make -C _build test