Compare commits

...

No commits in common. "c8" and "c8s" have entirely different histories.
c8 ... c8s

12 changed files with 161 additions and 1 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

53
.gitignore vendored
View File

@ -1 +1,52 @@
SOURCES/ibus-table-1.9.18.tar.gz
ibus-table-1.3.0.20100621.tar.gz
/ibus-table-1.3.9.20110827.tar.gz
/ibus-table-1.4.99.20120907.tar.gz
/ibus-table-1.4.99.20121113.tar.gz
/ibus-table-1.4.99.20130103.tar.gz
/ibus-table-1.4.99.20130108.tar.gz
/ibus-table-1.4.99.20130110.tar.gz
/ibus-table-1.5.0.tar.gz
/ibus-table-1.5.0.20130419.tar.gz
/ibus-table-1.5.0.20140203.tar.gz
/ibus-table-1.5.0.20140205.tar.gz
/ibus-table-1.5.0.20140218.tar.gz
/ibus-table-1.5.0.20140306.tar.gz
/ibus-table-1.5.0.20140311.tar.gz
/ibus-table-1.5.0.20140312.tar.gz
/ibus-table-1.5.0.20140402.tar.gz
/ibus-table-1.5.0.20140409.tar.gz
/ibus-table-1.5.0.20140416.tar.gz
/ibus-table-1.5.0.20140519.tar.gz
/ibus-table-1.5.0.20140527.tar.gz
/ibus-table-1.5.0.20140528.tar.gz
/ibus-table-1.8.0.tar.gz
/ibus-table-1.8.1.tar.gz
/ibus-table-1.8.2.tar.gz
/ibus-table-1.8.3.tar.gz
/ibus-table-1.8.4.tar.gz
/ibus-table-1.8.5.tar.gz
/ibus-table-1.8.6.tar.gz
/ibus-table-1.8.7.tar.gz
/ibus-table-1.8.8.tar.gz
/ibus-table-1.8.9.tar.gz
/ibus-table-1.8.10.tar.gz
/ibus-table-1.8.11.tar.gz
/ibus-table-1.9.0.tar.gz
/ibus-table-1.9.1.tar.gz
/ibus-table-1.9.2.tar.gz
/ibus-table-1.9.3.tar.gz
/ibus-table-1.9.4.tar.gz
/ibus-table-1.9.5.tar.gz
/ibus-table-1.9.6.tar.gz
/ibus-table-1.9.7.tar.gz
/ibus-table-1.9.8.tar.gz
/ibus-table-1.9.9.tar.gz
/ibus-table-1.9.10.tar.gz
/ibus-table-1.9.11.tar.gz
/ibus-table-1.9.12.tar.gz
/ibus-table-1.9.13.tar.gz
/ibus-table-1.9.14.tar.gz
/ibus-table-1.9.15.tar.gz
/ibus-table-1.9.16.tar.gz
/ibus-table-1.9.17.tar.gz
/ibus-table-1.9.18.tar.gz

6
gating.yaml Normal file
View File

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

9
plans/basic.fmf Normal file
View File

@ -0,0 +1,9 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt
prepare:
how: shell
script:
- dnf config-manager --enable rhel-CRB --enable rhel-buildroot

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (ibus-table-1.9.18.tar.gz) = 3f28269be1987023402eb6075b8e68b3bbba3c572a94551d072281677fde5fa14f8f4186455f8f9156b252934580c7a3837555d0edb46c76f13c8b109e26aca2

44
tests/main.fmf Normal file
View File

@ -0,0 +1,44 @@
test: ./runtest.sh
duration: 50m
framework: beakerlib
require:
# This stuff is only needed if gnome-desktop-testing
# cannot be required as a package and needs to be cloned
# from the git repo and build from source:
- git
- make
- gcc
- diffutils
- autoconf
- automake
- libtool
- glib2-devel
- systemd-devel
# Other requirements:
- gnome-session
- gnome-shell
- ibus
- ibus-devel
- ibus-desktop-testing
- ibus-table
- ibus-table-tests
- rsync
- xorg-x11-server-Xvfb
- libappstream-glib
- desktop-file-utils
- python3-mock
- python3-gobject
- python3-gobject-base
- glib2
- gtk3
- dconf
- dbus-x11
- python3-devel
- python3-pyxdg
- xorg-x11-server-Xvfb
- ibus-table-chinese-wubi-jidian
- ibus-table-chinese-cangjie
- ibus-table-chinese-stroke5
recommend:
# this is not available on RHEL9
- gnome-desktop-testing

48
tests/runtest.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh || exit 1
NAME=ibus-table
rlJournalStart
rlPhaseStartSetup
rlAssertRpm ${NAME}
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
if ! rlCheckRpm gnome-desktop-testing; then
echo "gnome-desktop-testing is not available."
echo "Trying to download and compile it:"
git clone https://gitlab.gnome.org/GNOME/gnome-desktop-testing.git
pushd gnome-desktop-testing
git checkout v2021.1
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make
make install
popd
fi
rlPhaseEnd
rlPhaseStartTest
rlRun "ibus-desktop-testing-runner \
--no-graphics \
--runner=gnome \
--timeout=1500 \
--tests=${NAME} \
--output=${NAME}.log \
--result=test.log \
" 0 "Running ${NAME} tests"
echo "==== ${NAME}.log: ===="
cat ${NAME}.log
echo "==== EOF ${NAME}.log: ===="
echo "==== test.log ===="
cat test.log
echo "==== EOF test.log: ===="
rlAssertGrep "^FAIL:[[:space:]]*0$" test.log
rlFileSubmit ${NAME}.log
rlFileSubmit test.log
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd