#!/bin/bash
set -eu

# Print all ok_* tests that should pass
# without errors with the default command-line.
# E.g. I don't pass ok_macros_off.pas because it results in error
# if --no-macro was not used.

/usr/bin/find . \
  '(' -type d -iname 'todo' -prune ')' -or \
  '(' -type f \
      -iname 'ok_*.pas' -and \
      -not '(' -iname 'ok_macros_off.pas' ')' -and \
      -not '(' -iname 'ok_if_expressions.pas' ')' -and \
      -print \
  ')'
