Misc: Add two test scripts

Add two scripts for testing build.
This commit is contained in:
Richard Grenville
2015-01-11 16:30:41 +08:00
parent 25b217ff52
commit 23d1dd1c0e
2 changed files with 52 additions and 0 deletions

16
tests/make-tests.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Test script for GNU make build
BASE_DIR=$(dirname "$0")/..
. "${BASE_DIR}/functions.sh"
OPTIONS=( NO_XINERAMA NO_LIBCONFIG NO_REGEX_PCRE NO_REGEX_PCRE_JIT
NO_VSYNC_DRM NO_VSYNC_OPENGL NO_VSYNC_OPENGL_GLSL NO_VSYNC_OPENGL_FBO
NO_VSYNC_OPENGL_VBO NO_DBUS NO_XSYNC NO_C2 )
for o in "${OPTIONS[@]}"; do
einfo Building with $o
make "${o}=1" -B "${@}" || die
einfo Build completed.
done