summaryrefslogtreecommitdiff
path: root/.gitlab-ci/run-tests.sh
blob: d6b39e1f30f00b68e1d9887ee9ae5411afa27aeb (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
#!/bin/bash

set -ex

./.gitlab-ci/check-missing-install-tag.py _build

git fetch origin main
git fetch --tags
git bisect start
git bisect good 2.76.1
git bisect bad origin/main

cat <<"EOF" > /tmp/bisect.sh
# git show d296e9455976f1bcf62a83750606befff72aa06e | patch -f -p1 || true
echo "int main(void) { return 77; }" > gio/tests/appmonitor.c
meson test -v \
        -C _build \
        --suite=core
ret=$?
git diff | patch -Rp1 || true

exit $ret
EOF

chmod +x /tmp/bisect.sh
git bisect run bash -x /tmp/bisect.sh