#!/bin/bash

# jkqtplotter-tests installs tests and examples in /usr/bin
# six basic tests are run as build-time tests

# Other files are example tests, but they do not respond to command-line options
# and have no mechanism to run and exit (i.e. must be closed manually)
# so we only run the basic tests

# avoid accessing the window system directly
export QT_QPA_PLATFORM=offscreen

BASIC_TESTS="JKQTPStringTools_test JKQTPCSSParser_test JKQTPDataCache_test JKQTPDataCache_benchmark jkqtpstatisticstools_test test_jkqtpdatastore"

for t in $BASIC_TESTS; do
  echo "Running $t"
  $t
done
