#! /bin/sh
set -eux

# This is the expected entry point for Cockpit CI; will be called without
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO

TEST_SCENARIO="${TEST_SCENARIO:-}"
[ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox
export RUN_TESTS_OPTIONS=--track-naughties

TEST_SCENARIO=${TEST_SCENARIO:-}

if [ "$TEST_SCENARIO" = "devel" ]; then
    export TEST_COVERAGE=yes
fi

make codecheck
make check

make po/cockpit-ostree.pot
