From e78929b429114a790a9e1c39ddbea388bc301ef0 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Tue, 25 May 2021 14:06:12 +0530 Subject: [PATCH] Add gating tests Signed-off-by: Parag Nemade --- tests/smoke/runtest.sh | 20 ++++++++++++++++++++ tests/tests.yml | 11 +++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tests/smoke/runtest.sh create mode 100644 tests/tests.yml diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh new file mode 100644 index 0000000..017055f --- /dev/null +++ b/tests/smoke/runtest.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# If one of the commands below returns non-zero then exit immediately +set -e + +echo "m17n-db version: `m17n-db --version`" +echo "m17n-db directory: `m17n-db`" +echo " " +echo " " +echo "Test minimal syntax presence for mim files" +for file in `ls /usr/share/m17n/*.mim`; do + grep "(input-method" $file + if [ $? == 0 ]; then + echo "PASSED: minimal syntax for $file" + else + echo "FAILED: minimal syntax for $file" + exit 1 + fi +done + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..b559be4 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - smoke + required_packages: + - m17n-db +