Add CI test

Resolves: rhbz#2005186
This commit is contained in:
Akira TAGOH 2021-09-17 12:56:45 +09:00
parent 7b8b8db4b0
commit 59d538d699
3 changed files with 24 additions and 1 deletions

View File

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

12
tests/basic/test.sh Executable file
View File

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

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
become: yes
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- fribidi
tests:
- basic:
run: ./test.sh