Add first batch of configuration tests

Summary:
Configuration tests check whether all mandatory dependencies to build
swift are met. They can also be used to check optional dependencies, which
results in certain features to be enabled or disabled.
This first batch tests for mandatory libraries libpng, zlib and OpenGL.
If this is not tested and some libraries are missing, the developer will
be notified very late in the build.

Reviewers: #swift_pilot_client, msutcliffe

Reviewed By: #swift_pilot_client, msutcliffe

Subscribers: msutcliffe, jenkins

Differential Revision: https://dev.swift-project.org/D34
This commit is contained in:
Roland Winklmeier
2017-06-13 10:05:45 +02:00
committed by Mathew Sutcliffe
parent 045caddcc8
commit 7317ddd155
13 changed files with 163 additions and 52 deletions

16
config.tests/gl/gl.pro Normal file
View File

@@ -0,0 +1,16 @@
load(config_test_pre)
CONFIG -= qt
CONFIG += console
SOURCES = gl.cpp
win32 {
DEFINES += Q_OS_WIN
LIBS *= -lopengl32
}
linux: LIBS *= -lGL
macx {
DEFINES += Q_OS_MAC
LIBS += -framework OpenGL
}