#!/bin/bash

# If not run from automake, fake it
if [ -z "$srcdir" ]; then
    srcdir="$(dirname "$0")"
fi

if [ @WITH_PYTHON2@ = 1 ]; then
    python2 ${srcdir}/libbytesize_unittest.py
fi

if [ @WITH_PYTHON3@ = 1 ]; then
    python3 ${srcdir}/libbytesize_unittest.py
fi

if [ @WITH_PYTHON2@ = 1 ]; then
    python2 ${srcdir}/libbytesize_unittest.py fr_FR.UTF8
fi

if [ @WITH_PYTHON3@ = 1 ]; then
    python3 ${srcdir}/libbytesize_unittest.py fr_FR.UTF8
fi

#!/bin/bash

status=0

# If not run from automake, fake it
if [ -z "$srcdir" ]; then
    srcdir="$(dirname "$0")"
fi

if [ @WITH_PYTHON2@ = 1 ]; then
    python2 ${srcdir}/libbytesize_unittest.py || status=1
fi

if [ @WITH_PYTHON3@ = 1 ]; then
    python3 ${srcdir}/libbytesize_unittest.py || status=1
fi

if [ @WITH_PYTHON2@ = 1 ]; then
    python2 ${srcdir}/libbytesize_unittest.py fr_FR.UTF8 || status=1
fi

if [ @WITH_PYTHON3@ = 1 ]; then
    python3 ${srcdir}/libbytesize_unittest.py fr_FR.UTF8 || status=1
fi

exit $status

Make sure the test script fails if one of the test runs fail
Make sure the test script fails if one of the test runs fail
