Skip to content
Snippets Groups Projects
python34.sh 608 B
#!/bin/sh
# Copyright © 2016-2018 Simon McVittie
# Copyright © 2019-2020 Collabora Ltd.
#
# SPDX-License-Identifier: MIT

set -e
set -u

n=0
fail=

if [ -z "$(command -v python3.4)" ]; then
    echo "1..0 # SKIP python3.4 not found"
    exit 0
fi

for script in \
    tests/depot/*.py \
; do
    n=$(( n + 1 ))
    if python3.4 "$script" --help >/dev/null; then
        echo "ok $n - $script --help succeeded with python3.4"
    else
        echo "not ok $n - $script --help failed with python3.4"
        fail=yes
    fi
done

echo "1..$n"

if [ -n "$fail" ]; then
    exit 1
fi

# vim:set sw=4 sts=4 et: