Add CI test.
Resolves: rhbz#2009159
This commit is contained in:
parent
49b6ae0fad
commit
187a1de9b3
@ -6,7 +6,7 @@
|
||||
|
||||
Name: python-%{pname}
|
||||
Version: 0.1.2
|
||||
Release: 8%{?dist}
|
||||
Release: 8%{?dist}.1
|
||||
Summary: C version of reader, parser and emitter for ruamel.yaml derived from libyaml
|
||||
|
||||
License: MIT
|
||||
@ -56,6 +56,10 @@ rmdir ruamel.yaml.clib
|
||||
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
||||
|
||||
%changelog
|
||||
* Thu Sep 30 2021 Akira TAGOH <tagoh@redhat.com> - 0.1.2-8.1
|
||||
- Add CI test.
|
||||
Resolves: rhbz#2009159
|
||||
|
||||
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.1.2-8
|
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||
Related: rhbz#1991688
|
||||
|
14
tests/basic/test.py
Normal file
14
tests/basic/test.py
Normal file
@ -0,0 +1,14 @@
|
||||
#! /usr/bin/python3
|
||||
|
||||
import sys
|
||||
import os
|
||||
from ruamel.yaml import YAML
|
||||
|
||||
f = open(os.path.abspath(os.path.join(os.path.dirname(__file__),'..', 'tests.yml')), 'r')
|
||||
s = f.read()
|
||||
f.close()
|
||||
|
||||
yaml = YAML()
|
||||
data = yaml.load(s)
|
||||
if data[0]['hosts'] != 'localhost':
|
||||
exit(1)
|
12
tests/tests.yml
Normal file
12
tests/tests.yml
Normal file
@ -0,0 +1,12 @@
|
||||
- hosts: localhost
|
||||
become: yes
|
||||
tags:
|
||||
- classic
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
required_packages:
|
||||
- python3-ruamel-yaml-clib
|
||||
- python3
|
||||
tests:
|
||||
- basic:
|
||||
run: python3 ./test.py
|
Loading…
Reference in New Issue
Block a user