Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec2c651ed0 |
||
|
|
ce80e06239 |
8 changed files with 125 additions and 0 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
19
gating.yaml
Normal file
19
gating.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
subject_type: koji_build
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpmdeplint.functional}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.rpminspect.static-analysis}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.installability.functional}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
||||
59
libmaa.spec
Normal file
59
libmaa.spec
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
Name: libmaa
|
||||
Version: 1.4.7
|
||||
Release: 1%{?dist}
|
||||
Summary: Library that implements some basic data structures and algorithms
|
||||
URL: https://github.com/cheusov/libmaa
|
||||
License: MIT
|
||||
|
||||
Source0: https://github.com/cheusov/libmaa/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: mk-configure
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
%description
|
||||
This library implements some basic data structures and algorithms such
|
||||
as command line arguments handling, base26 and base64 routines, bits
|
||||
manipulation, debugging and error reporting routines, hash tables,
|
||||
sets, lists, stacks, skip lists, string pool routines, memory
|
||||
management routines, parsing routines, process management routines,
|
||||
source code management routines and timer support.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for libmaa
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files (Headers, etc) for libmaa.
|
||||
|
||||
%global env \
|
||||
export MKSTATICLIB=no \
|
||||
export NOSUBDIR=doc
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%{env}
|
||||
%mkcmake
|
||||
|
||||
%install
|
||||
%{env}
|
||||
%mkcmake install DESTDIR=%{buildroot}
|
||||
chmod +x %{buildroot}/%{_libdir}/*.so.*
|
||||
|
||||
%check
|
||||
%mkcmake test
|
||||
|
||||
%files
|
||||
%license doc/LICENSE
|
||||
%doc README doc/NEWS
|
||||
%{_libdir}/libmaa.so.4{,.*}
|
||||
|
||||
%files devel
|
||||
%{_includedir}/maa*
|
||||
%{_libdir}/libmaa.so
|
||||
|
||||
%changelog
|
||||
* Sun Jan 7 2024 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 1.4.7-1
|
||||
- First release
|
||||
5
plans/main.fmf
Normal file
5
plans/main.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
summary: smoke tests
|
||||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (libmaa-1.4.7.tar.gz) = c85687e320ec0ec4f5acccaa56b75e42566465c35b58fb21310ee193e63475e3765dbfb43ef961c31032070d821d5aab17e856c89bc86a927053cf075afb3d99
|
||||
14
tests/data/main.c
Normal file
14
tests/data/main.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <maa.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
maa_init(argv[0]);
|
||||
|
||||
printf("major version: %d\n", maa_version_major());
|
||||
|
||||
maa_shutdown();
|
||||
return 0;
|
||||
}
|
||||
4
tests/main.fmf
Normal file
4
tests/main.fmf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
summary: smoke tests
|
||||
test: ./test.sh
|
||||
framework: beakerlib
|
||||
require: [gcc,libmaa-devel]
|
||||
22
tests/test.sh
Executable file
22
tests/test.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlRun "pushd data/"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "gcc -lmaa -Wall -g3 -o main main.c"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "./main"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "rm main"
|
||||
rlRun "popd"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue