]> git.saurik.com Git - apt.git/blame - test/integration/header-compilation
randomize acquire order for same type index files
[apt.git] / test / integration / header-compilation
CommitLineData
2c1e4917
JAK
1#!/bin/sh
2set -e
3
3abb6a6a
DK
4TESTDIR="$(readlink -f "$(dirname "$0")")"
5. "$TESTDIR/framework"
2c1e4917
JAK
6setupenvironment
7
8(for i in $TESTDIR/../../build/include/apt-pkg/*.h; do echo "#include \"$i\""; done) > include.h
9
10
11testone() {
12 local cxx=$1
13 shift
14
15 if type $cxx 2>&1 1>/dev/null; then
16 testsuccess $cxx -c -o /dev/null include.h
17 testsuccess $cxx -c -o /dev/null -std=c++98 include.h
18 testsuccess $cxx -c -o /dev/null -std=c++11 include.h
19 else
20 msgskip "Compile $cxx is not installed"
21 fi
22}
23
24testone clang++
25testone g++
26testone g++-4.8