From 7ca5e650efb494f8d543b223bd864706d65aceaa Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Jun 04 2019 07:41:21 +0000 Subject: [PATCH 1/2] Added CI tests --- diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh new file mode 100644 index 0000000..438ad19 --- /dev/null +++ b/tests/scripts/run_tests.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/usr/bin/python3 /usr/share/doc/langtable/test_cases.py diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..aaf3946 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - simple: + dir: scripts/ + run: ./run_tests.sh From d30119817b56d13f5b799fac079590f477cac214 Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Jun 04 2019 08:43:59 +0000 Subject: [PATCH 2/2] Make a CI test fail on purpose to see what happens if a test fails: --- diff --git a/tests/scripts/run_tests.sh b/tests/scripts/run_tests.sh index 438ad19..f50c61c 100644 --- a/tests/scripts/run_tests.sh +++ b/tests/scripts/run_tests.sh @@ -1,3 +1,6 @@ #!/bin/bash +# Make a test fail on purpose to see what happens if a test fails: +perl -pi -e "s,pl_PL.UTF-8,xx_PL.UTF-8," /usr/share/doc/langtable/test_cases.py + /usr/bin/python3 /usr/share/doc/langtable/test_cases.py