File: python3

package info (click to toggle)
gpgmepy 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,576 kB
  • sloc: sh: 12,050; python: 5,958; ansic: 1,001; makefile: 368; sed: 37
file content (19 lines) | stat: -rwxr-xr-x 326 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

unset bad
for x in $(py3versions -s); do
    printf "%s testing...\n" "$x"
    script='import gpg; c = gpg.Context()'
    if "$x" -c "$script"; then
        printf "%s OK\n" "$x"
    else
        printf "%s FAILED\n" "$x" >&2
        bad=true
    fi
done

if [ "$bad" = true ]; then
    exit 1
else
    exit 0
fi