File: test.sh

package info (click to toggle)
kwstyle 1.0.1%2Bgit3224cf2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 45,404 kB
  • ctags: 145,645
  • sloc: cpp: 423,059; ansic: 9,347; xml: 588; sh: 102; php: 87; perl: 35; makefile: 7
file content (18 lines) | stat: -rwxr-xr-x 393 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# This is a script to build the modules and run the test suite in the base
# Docker container.

die() {
  echo "Error: $@" 1>&2
  exit 1;
}

cd /usr/src/KWStyle-build || die "Could not cd into the build directory"

cmake \
  -G Ninja \
  -DCMAKE_BUILD_TYPE:STRING=Release \
    /usr/src/KWStyle || die "CMake configuration failed"
ctest -VV -D Experimental || die "ctest failed"