Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff7290a359 | ||
|
|
1de6fcbbc3 | ||
|
|
2dd7d5ff0e | ||
|
|
e3a513ece9 | ||
|
|
db4f4dcda6 |
6 changed files with 54 additions and 1 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
5
plans/basic.fmf
Normal file
5
plans/basic.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Basic smoke test
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
5
tests/basic/main.fmf
Normal file
5
tests/basic/main.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: Concise summary describing what the test does
|
||||
require:
|
||||
- uchardet
|
||||
test: ./test.sh
|
||||
framework: beakerlib
|
||||
26
tests/basic/test.sh
Executable file
26
tests/basic/test.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
|
||||
|
||||
basedir=$(pwd)
|
||||
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
|
||||
rlRun "pushd $tmp"
|
||||
rlRun "set -o pipefail"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "uchardet $basedir/test.sh | tee output" 0 "Check uchardet"
|
||||
rlAssertGrep "ASCII" "output"
|
||||
rlRun "uchardet $basedir/utf8.txt | tee output" 0 "Check uchardet"
|
||||
rlAssertGrep "UTF-8" "output"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "popd"
|
||||
rlRun "rm -r $tmp" 0 "Remove tmp directory"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
2
tests/basic/utf8.txt
Normal file
2
tests/basic/utf8.txt
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
日本語
|
||||
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Name: uchardet
|
||||
Version: 0.0.8
|
||||
Release: 5%{?dist}
|
||||
Release: 9%{?dist}
|
||||
Summary: An encoding detector library ported from Mozilla
|
||||
|
||||
License: MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.0-or-later
|
||||
|
|
@ -32,6 +32,8 @@ for developing tools for uchardet.
|
|||
%autosetup
|
||||
|
||||
%build
|
||||
# TODO: Please submit an issue to upstream (rhbz#2381619)
|
||||
export CMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||
%cmake \
|
||||
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
||||
-DBUILD_STATIC=OFF
|
||||
|
|
@ -66,6 +68,18 @@ popd
|
|||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Tue Nov 11 2025 Cristian Le <git@lecris.dev> - 0.0.8-9
|
||||
- Allow to build with CMake 4.0 (rhbz#2381619)
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.8-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue