summaryrefslogtreecommitdiff
path: root/test/scripts/build-appveyor.sh
blob: 43d4789c2d21c93e8646c9ead383f10963943c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash -x

export PREFIX=/usr

#git clone --depth 1 git://anongit.freedesktop.org/git/piglit
# XXX: use personal piglit repo with some additional patches for debugging
git clone --depth 1 git://people.freedesktop.org/~jturney/piglit
export PIGLIT_DIR=$(pwd)/piglit

# currently, the 'xts' test set in piglit expects to be pointed at a built copy
# of xts, not an install (which we could package)
XTS_ARCHIVE="xts-0.99.1-20170616git8809db78-$(uname -m).tar.xz"
wget -nv ftp://cygwin.com/pub/cygwinx/${XTS_ARCHIVE}
tar -xf ${XTS_ARCHIVE}
export XTEST_DIR=$(pwd)/xts

cat > "$PIGLIT_DIR"/piglit.conf << _EOF_
[xts]
path=$XTEST_DIR
_EOF_

# set TET_CONFIG to point to the xts config to be used
export TET_CONFIG=$(pwd)/test/tetexec.cfg

# XTS contains tests which rely on being able to set a fontpath containing this
# directory, but non-existent directories are removed from the fontpath by the
# server, so it must exist
mkdir -p /etc/X11/fontpath.d/

# suppress some bleating about SHM
cygserver-config --yes >/dev/null
cygrunsrv -S cygserver

meson setup --prefix=$PREFIX -Dxv=false -Dxf86bigfont=true -Ddmx=true -Dxephyr=true -Dxnest=true -Dxvfb=true -Dxwin=true -Dxorg=true -Dhal=false -Dudev=false -Dpciaccess=false -Dint10=false build/
DESTDIR=$(pwd)/staging ninja -C build/ install
ninja -C build/ test

status=$?

cat build/meson-logs/testlog.txt
cat build/test/piglit-results/xvfb/long-summary

find -name *.stackdump

exit $status