Codebase list gjs / fe441a8
d/rules: Go back to inlining testing instead of using a separate script Now that we are treating test failures as always bad, we don't need that extra complexity. Simon McVittie 4 years ago
3 changed file(s) with 15 addition(s) and 25 deletion(s). Raw diff Collapse all Expand all
0 debian/temp-home/
2626
2727 override_dh_auto_test:
2828 ifeq (, $(filter nocheck, $(DEB_BUILD_OPTIONS)))
29 TZ=UTC BUILDDIR=${BUILDDIR} DEB_HOST_ARCH=$(DEB_HOST_ARCH) debian/test.sh
29 obj-$$(dpkg-architecture -q DEB_HOST_GNU_TYPE)/gjs-console -c 'print("Smoke-test OK")'
30 mkdir -p -m700 debian/temp-home
31 mkdir -p -m700 debian/temp-home/run
32 env \
33 -u XDG_CACHE_HOME \
34 -u XDG_CONFIG_HOME \
35 -u XDG_CONFIG_DIRS \
36 -u XDG_DATA_HOME \
37 -u XDG_DATA_DIRS \
38 HOME=$(CURDIR)/debian/temp-home \
39 XDG_RUNTIME_DIR=$(CURDIR)/debian/temp-home/run \
40 TZ=UTC \
41 xvfb-run -a \
42 dh_auto_test
3043 endif
3144
3245 override_dh_makeshlibs:
+0
-24
debian/test.sh less more
0 #!/bin/sh
1
2 : "${DEB_HOST_ARCH:=$(dpkg --print-architecture)}"
3 : "${BUILDDIR:=obj-$(dpkg-architecture -q DEB_HOST_GNU_TYPE)}"
4
5 if "${BUILDDIR}/gjs-console" -c 'print("Hello, world")'; then
6 echo "Smoke-test successful, continuing with full test suite"
7 else
8 echo "Smoke-test failed: did interpreter initialization fail? (see #873778)"
9 exit 1
10 fi
11
12 export HOME="$(mktemp -d)"
13 trap 'rm -rf "${HOME}"' EXIT INT HUP QUIT TERM
14
15 mkdir -m700 "$HOME/run"
16 export XDG_RUNTIME_DIR="$HOME/run"
17 unset XDG_CACHE_HOME
18 unset XDG_CONFIG_HOME
19 unset XDG_CONFIG_DIRS
20 unset XDG_DATA_HOME
21 unset XDG_DATA_DIRS
22
23 xvfb-run -a meson test -C "${BUILDDIR}" --verbose --no-stdsplit --print-errorlogs