#!/bin/bash

set -euo pipefail

hideok=chronic
if ! command -v chronic >/dev/null; then
	hideok=
fi
if [ "$#" -gt 0 ] && [ "$1" = -v ]; then
	hideok=
	shift
fi

cachedir="$1"

cd "$(dirname "$0")"
$hideok ./check
$hideok ./check-images "$cachedir"
$hideok ./check-external "$cachedir"

echo "All tests PASS"
