Skip to content

Commit

Permalink
Moving one testing helper script from languages to giella-core
Browse files Browse the repository at this point in the history
  • Loading branch information
snomos committed May 20, 2024
1 parent 83d682e commit e3d4755
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

## You should have received a copy of the GNU General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
AC_INIT([giella-core], [0.24.0], [[email protected]], [giella-core], [https://github.com/giellalt/giella-core])
AC_INIT([giella-core], [0.25.0], [[email protected]], [giella-core], [https://github.com/giellalt/giella-core])
AC_REVISION([$Revision$])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.9 tar-pax -Wall -Werror foreign])
Expand Down
23 changes: 23 additions & 0 deletions scripts/error-handling-stubs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# This is a shell script that only contains a few tests for the
# morph-tester.py test runners. It is not intended to be used on its
# own, but to be sourced (included) in the main shell scripts:
#
# source error-handling-stubs.sh

# If Skipped=yes (used in lexc tests), no tests were found, and we return 77:
if test "$Skipped" == "yes" ; then
exit 77
fi

# At least one of the Xerox or HFST tests failed:
if test "$Fail" -ge 1; then
exit 1
fi

# Skip if no transducer were found - failing is problematic for lexc tests:
if test "$transducer_found" = 0 ; then
echo "No transducer found"
exit 77
fi

0 comments on commit e3d4755

Please sign in to comment.