blob: 26ccb109ccbe7d4865856a4f36a35ad1c071565f [file] [log] [blame]
Nobuaki Sukegawaa6ab1f52015-11-28 15:04:39 +09001#!/bin/sh
2set -ev
3
Nobuaki Sukegawa6bb12772016-03-08 01:55:31 +09004CMAKE_FLAGS=$*
5MAKEPROG=make
6
7if ninja --version >/dev/null 2>&1; then
8 MAKEPROG=ninja
9 CMAKE_FLAGS="-GNinja $CMAKE_FLAGS"
10fi
11
Nobuaki Sukegawaa6ab1f52015-11-28 15:04:39 +090012mkdir -p cmake_build && cd cmake_build
Nobuaki Sukegawa6bb12772016-03-08 01:55:31 +090013cmake $CMAKE_FLAGS ..
Nobuaki Sukegawac40018b2016-02-22 21:29:13 +090014for LIB in $BUILD_LIBS; do
15 if ! grep "^BUILD_${LIB}:BOOL=ON$" CMakeCache.txt ; then
16 echo "failed to configure $LIB"
17 exit 1
18 fi
19done
Nobuaki Sukegawa6bb12772016-03-08 01:55:31 +090020$MAKEPROG -j3
Nobuaki Sukegawaa6ab1f52015-11-28 15:04:39 +090021cpack
22ctest -VV -E "(concurrency_test|processor_test)"