Cross Reference: epoxy-ci-linux.sh
xref: /xsrc/external/mit/libepoxy/dist/.travis/epoxy-ci-linux.sh
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /xsrc/external/mit/libepoxy/dist/.travis/
1ca86eba8Smrg#!/bin/bash
2ca86eba8Smrg
3ca86eba8Smrgdump_log_and_quit() {
4ca86eba8Smrg        local exitcode=$1
5ca86eba8Smrg
6ca86eba8Smrg        cat meson-logs/testlog.txt
7ca86eba8Smrg
8ca86eba8Smrg        exit $exitcode
9ca86eba8Smrg}
10ca86eba8Smrg
11ca86eba8Smrg# Start Xvfb
12ca86eba8SmrgXVFB_WHD=${XVFB_WHD:-1280x720x16}
13ca86eba8Smrg
14ca86eba8SmrgXvfb :99 -ac -screen 0 $XVFB_WHD -nolisten tcp &
15ca86eba8Smrgxvfb=$!
16ca86eba8Smrg
17ca86eba8Smrgexport DISPLAY=:99
18ca86eba8Smrg
19ca86eba8Smrgsrcdir=$( pwd )
20ca86eba8Smrgbuilddir=$( mktemp -d build_XXXXXX )
21ca86eba8Smrg
22ca86eba8Smrgmeson --prefix /usr "$@" $builddir $srcdir || exit $?
23ca86eba8Smrg
24ca86eba8Smrgcd $builddir
25ca86eba8Smrg
26ca86eba8Smrgninja || exit $?
27ca86eba8Smrgmeson test || dump_log_and_quit $?
28ca86eba8Smrg
29ca86eba8Smrgcd ..
30ca86eba8Smrg
31ca86eba8Smrg# Stop Xvfb
32ca86eba8Smrgkill -9 ${xvfb}
33

Indexes created Sat Nov 29 09:09:30 GMT 2025