From 59d538d699543a77d9318ee201ab0c8b70122e72 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 17 Sep 2021 12:56:45 +0900 Subject: [PATCH] Add CI test Resolves: rhbz#2005186 --- fribidi.spec | 2 +- tests/basic/test.sh | 12 ++++++++++++ tests/tests.yml | 11 +++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 tests/basic/test.sh create mode 100644 tests/tests.yml diff --git a/fribidi.spec b/fribidi.spec index 57a0049..30e7c36 100644 --- a/fribidi.spec +++ b/fribidi.spec @@ -1,7 +1,7 @@ Summary: Library implementing the Unicode Bidirectional Algorithm Name: fribidi Version: 1.0.10 -Release: 6%{?dist} +Release: 6%{?dist}.1 URL: https://github.com/fribidi/fribidi/ Source: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz License: LGPLv2+ and UCD diff --git a/tests/basic/test.sh b/tests/basic/test.sh new file mode 100755 index 0000000..56e4b93 --- /dev/null +++ b/tests/basic/test.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +# spec file runs make check or whatever +# which contains some functionality check. +# So We don't do detailed check here. +if fribidi --help > /dev/null 2>&1; then + echo PASS +else + echo FAIL + false +fi + diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..c15b842 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + become: yes + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - fribidi + tests: + - basic: + run: ./test.sh