commit 44f13a4d16970294463e9f8fab8333504f13f5a0 Author: Daniel Swanson Date: Thu Jul 8 11:59:39 2021 -0500 now properly installable diff --git a/.gitignore b/.gitignore index b25c15b..3ad241c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,12 @@ *~ +/apertium-regtest.pc +/Makefile +/Makefile.in +/INSTALL +/aclocal.m4 +/autom4te.cache/* +/config.log +/config.status +/configure +/install-sh +/missing diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..c808868 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,11 @@ +apertium_regtestdir = $(prefix)/share/apertium-regtest +apertium_regtest_DATA = apertium-regtest.py + +staticdir = $(prefix)/share/apertium-regtest/static +static_DATA = static/index.html static/regtest.css static/regtest.js \ + static/bootstrap.css static/bootstrap.js \ + static/diff.js static/jquery.js + +install-data-hook: + ln -sf $(apertium_regtestdir)/apertium-regtest.py $(prefix)/bin/apertium-regtest + chmod +x $(prefix)/bin/apertium-regtest diff --git a/README b/README new file mode 100644 index 0000000..f053f06 --- /dev/null +++ b/README @@ -0,0 +1,24 @@ +apertium-regtest +---------------- + +Regression testing system for Apertium. + +# Installation + +Can be run as-is by invoking the `apertium-regtest.py` file in this directory or by running + +```bash +$ autoreconf -fvi +$ ./configure +# make install +``` + +Which will install it as the command `apertium-regtest` + +# Usage + +## Static testing +`apertium-regtest test` runs all tests and reports the results, exiting with error code `0` if all pass and `1` otherwise. + +## Interactively updating tests +Test data can be updated either from a browser or from a terminal. For browser mode, run `apertium-regtest web` and for terminal `apertium-regtest cli`. diff --git a/README.md b/README.md new file mode 120000 index 0000000..100b938 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +README \ No newline at end of file diff --git a/apertium-regtest.pc.in b/apertium-regtest.pc.in new file mode 100644 index 0000000..56d6e01 --- /dev/null +++ b/apertium-regtest.pc.in @@ -0,0 +1,7 @@ +prefix=@prefix@ +exec_prefix=${prefix} +srcdir=@datarootdir@/apertium-regtest + +Name: apertium-regtest +Description: Regression test runner for Apertium language data +Version: @VERSION@ diff --git a/regtest.py b/apertium-regtest.py similarity index 100% rename from regtest.py rename to apertium-regtest.py diff --git a/apertium-regtest.sh b/apertium-regtest.sh deleted file mode 100755 index 0eb16d0..0000000 --- a/apertium-regtest.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -python3 ~/apertium-regtest/regtest.py $@ diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..fb7ba7e --- /dev/null +++ b/configure.ac @@ -0,0 +1,5 @@ +AC_PREREQ(2.52) + +AC_INIT([Apertium Regtest], [0.0.1], [awesomeevildudes@gmail.com], [apertium-regtest], [https://wiki.apertium.org/wiki/Regtest]) +AM_INIT_AUTOMAKE +AC_OUTPUT([Makefile apertium-regtest.pc])