• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3dump_log_and_quit() {
4        local exitcode=$1
5
6        cat meson-logs/testlog.txt
7
8        exit $exitcode
9}
10
11export SDKROOT=$( xcodebuild -version -sdk macosx Path )
12export CPPFLAGS=-I/usr/local/include
13export LDFLAGS=-L/usr/local/lib
14export OBJC=$CC
15export PATH=$HOME/tools:$PATH
16
17srcdir=$( pwd )
18builddir=$( mktemp -d build_XXXXXX )
19
20meson ${BUILDOPTS} $builddir $srcdir || exit $?
21
22cd $builddir
23
24ninja || exit $?
25meson test || dump_log_and_quit $?
26
27cd ..
28