Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to ocrd_all #80

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
✨ Add a simple test runner and move tests to subdirectory
mikegerber committed May 7, 2024
commit 7b5f593709250fe10c21902518520ea74e7b3878
24 changes: 24 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh
set -e

count_ok=0
count_failed=0

for test in tests/*.sh; do
echo "== $test"
$test && result=$? || result=$?

if [[ $result = 0 ]]; then
echo "✔"
count_ok=$((count_ok+1))
else
echo "❌"
count_failed=$((count_failed+1))
fi
echo
done

echo "$count_ok ok, $count_failed failed"
if [[ $count_failed -gt 0 ]]; then
exit 1
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.