Codebase list gpgme1.0 / e50539a
fix up tests, cover all supported python3 versions Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net> Daniel Kahn Gillmor 4 years ago
2 changed file(s) with 23 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 Tests: python3
1 Depends: python3-gpg
1 Depends:
2 python3-all,
3 python3-gpg,
24
35 Tests: checky2106
4 Depends: gcc
6 Depends:
7 gcc,
8 libc6-dev:amd64,
00 #!/bin/bash
11
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