File: gitlab-ci-run-all

package info (click to toggle)
dgit 12.16
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 3,368 kB
  • sloc: perl: 13,443; sh: 6,466; python: 334; makefile: 324; tcl: 69
file content (32 lines) | stat: -rwxr-xr-x 965 bytes parent folder | download | duplicates (3)
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
#!/bin/bash
set -e
set -o pipefail
shopt -s inherit_errexit # #514862, wtf

# Wrapper to run the tests in gitlab CI

x () { echo >&2 "+ $*"; "$@"; }

deps=" $(tests/enumerate-tests dep-packages) "
our_debs=$(find ./debian/output -name '*.deb')

our_pkgs=''; for p in $our_debs; do
    p=${p##*/}
    p=${p%%_*}
    our_pkgs+=" $p"
    deps="${deps// $p / }"
done

# This timeout is per test case, but becauswe of our gnupg serialisation,
# in principle, a test case might end up waiting for ages and ages for
# other test cases.  Empirically, locally, I have seen very alphabetically
# early test cases being the last ones to finish.  This is mad.
# Anyway, we must therefore set this long for the whole test suite.
export DGIT_TEST_RUN_PFX='timeout 2500'

x apt-get -y install $our_debs
x apt-get -y install --no-install-recommends $deps eatmydata moreutils
x apt-get -y build-dep .
x apt-get -y remove $our_pkgs

x eatmydata tests/using-intree tests/run-all "$@"