Add gating tests

Signed-off-by: Parag Nemade <pnemade@fedoraproject.org>
This commit is contained in:
Parag Nemade 2021-05-25 14:06:12 +05:30
parent cdb75b596b
commit e78929b429
No known key found for this signature in database
GPG Key ID: 71932951EB71E972
2 changed files with 31 additions and 0 deletions

20
tests/smoke/runtest.sh Normal file
View File

@ -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

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
tests:
- smoke
required_packages:
- m17n-db