File: wlcs

package info (click to toggle)
mir 2.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,636 kB
  • sloc: cpp: 174,574; xml: 13,422; ansic: 8,221; python: 1,337; sh: 874; makefile: 216; javascript: 37
file content (43 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download
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
#!/bin/sh

set -eu

mkdir -p "$(pwd)/debian/home"
mkdir -p "$(pwd)/debian/run"
export HOME="$(pwd)/debian/home"
export XDG_RUNTIME_DIR="$(pwd)/debian/run"

if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
    CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
else
    CROSS_COMPILE=
fi

if [ $(dpkg-architecture -q DEB_HOST_ARCH_ENDIAN) != "little" ]; then
    # Mir doesn't handle rendering on big endian systems
    exit 77
fi

# Extracting the list of known-failures requires stubbing out various bits of CMake functionality in PrintExcludedTests.cmake
# If upstream CMakeLists.txt starts using more CMake functionality, the list of stubs might need to be extended.
KNOWN_FAILURES=$(cmake -DUPSTREAM_WLCS_TESTCASE_FILE=tests/acceptance-tests/wayland/CMakeLists.txt -P debian/tests/PrintExcludedTests.cmake 2>&1) || (echo "Failed to extract list of known-failures: $KNOWN_FAILURES"; exit 1)

for failure in $KNOWN_FAILURES
do
  FILTER=${FILTER:-}${FILTER:+:}${failure}
done

# Add extra failures from the autopkgtest infrastructure
#
# BufferTest.test_truncated_shm_file requries libwayland to be able to handle SIGSEGV from a signal
# handler and continue.
# This fails under some qemu targets and LXD.
FILTER=${FILTER:-}${FILTER:+:}"BadBufferTest.test_truncated_shm_file"

# These tests are incorrect (a correct implementation will fail them)
# Fixed in next WLCS, with a different name so these exclusions should be safe
FILTER=${FILTER:-}${FILTER:+:}"XdgPopupUnstableV6/XdgPopupTest.grabbed_popup_does_not_get_keyboard_focus/0"
FILTER=${FILTER:-}${FILTER:+:}"XdgPopupStable/XdgPopupTest.grabbed_popup_does_not_get_keyboard_focus/0"


$(${CROSS_COMPILE}pkg-config --variable test_runner wlcs) /usr/lib/$(dpkg-architecture -q DEB_HOST_MULTIARCH)/mir/miral_wlcs_integration.so --gtest_filter=-${FILTER}