fix up tests, cover all supported python3 versions
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Daniel Kahn Gillmor
4 years ago
0 | 0 |
Tests: python3
|
1 | |
Depends: python3-gpg
|
|
1 |
Depends:
|
|
2 |
python3-all,
|
|
3 |
python3-gpg,
|
2 | 4 |
|
3 | 5 |
Tests: checky2106
|
4 | |
Depends: gcc
|
|
6 |
Depends:
|
|
7 |
gcc,
|
|
8 |
libc6-dev:amd64,
|
0 | 0 |
#!/bin/bash
|
1 | 1 |
|
2 | |
exec python3 debian/tests/python-gpg
|
|
2 |
unset bad
|
|
3 |
for x in $(py3versions -s); do
|
|
4 |
printf "%s testing...\n" "$x"
|
|
5 |
script='import gpg; c = gpg.Context()'
|
|
6 |
if "$x" -c "$script"; then
|
|
7 |
printf "%s OK\n" "$x"
|
|
8 |
else
|
|
9 |
printf "%s FAILED\n" "$x" >&2
|
|
10 |
bad=true
|
|
11 |
fi
|
|
12 |
done
|
|
13 |
|
|
14 |
if [ "$bad" = true ]; then
|
|
15 |
exit 1
|
|
16 |
else
|
|
17 |
exit 0
|
|
18 |
fi
|