Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/python2/PKGBUILD
blob: 170811e584ad00271b8976f9924d32d4409df054 (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
# on i686 some tests fail with segfault
# test_replace_overflow (present in test_bytes, test_str, test_string, 
# test_unicode, test_userstring) segfault on i686
# test_bigrepeat (present in test_tuple) segfault on i686

# tests run with -j4 per default effectively killing build slaves,
# forcing single threaded execution of tests

eval "$(
  declare -f build | \
    sed '
      /export OPT=/ s/";$/ -fwrapv";/
      s/make/make EXTRATESTOPTS='"'"'-j 1'"'"' /
    '
  declare -f check | \
    sed '
      /xvfb-run/ s/-x test_idle/-x test_idle test_bytes test_str test_string test_unicode test_userstring test_tuple test_ssl test_httplib test_urllibnet/
      s/ -m test.regrtest/ -m test.regrtest -j1/
    '
)"

checkdepends=(${makedepends[@]//xorg-server-xvfb/})
checkdepends_i686+=(xorg-server-xvfb)
checkdepends_pentium4=("${makedepends_i686[@]}")

# skip xvfb stuff on i486
if [ "$CARCH" = 'i486' ]; then
  eval "$(
    declare -f check | \
      sed '
        s/xvfb-run //
      '
  )"
fi