Add a gating test

This commit is contained in:
Richard W.M. Jones 2024-04-23 16:26:09 +01:00
parent fbec83a0fd
commit b735628a74
4 changed files with 34 additions and 0 deletions

6
gating.yaml Executable file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -132,6 +132,7 @@ popd
* Mon Apr 22 2024 Richard W.M. Jones <rjones@redhat.com> - 10.0-1
- Import package into CentOS Stream 10
- Remove resolves refs to work around check-gitbz bug (RHELBLD-14966)
- Add gating tests
* Thu Aug 31 2023 Richard W.M. Jones <rjones@redhat.com> - 9.3-1
- Rebase to ntfs-3g 2022.10.3

15
tests/basic-test.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash -
set -e
set -x
# Create an NTFS filesystem and mount.
guestfish -vx <<EOF
set-program "virt-foo"
sparse test.img 1G
run
part-disk /dev/sda mbr
mkfs ntfs /dev/sda1
mount /dev/sda1 /
touch /tested
umount-all
EOF

12
tests/tests.yml Executable file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- libguestfs-winsupport
- libguestfs
tests:
- simple:
dir: .
run: ./basic-test.sh