re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-10 13:29:58 +02:00
parent b662fae125
commit 50c0eac135
4 changed files with 62 additions and 1 deletions

18
.gitignore vendored
View File

@ -1,2 +1,18 @@
SOURCES/libseccomp-2.5.2.tar.gz
*~
/libseccomp-1.0.0.tar.gz
/libseccomp-1.0.1.tar.gz
/libseccomp-2.0.0.tar.gz
/libseccomp-2.1.0.tar.gz
/libseccomp-2.1.1.tar.gz
/libseccomp-2.2.0.tar.gz
/libseccomp-2.2.1.tar.gz
/libseccomp-2.2.3.tar.gz
/libseccomp-2.3.0.tar.gz
/libseccomp-2.3.1.tar.gz
/libseccomp-2.3.2.tar.gz
/libseccomp-2.3.3.tar.gz
/libseccomp-2.4.1.tar.gz
/libseccomp-2.4.2.tar.gz
/libseccomp-2.4.3.tar.gz
/libseccomp-2.5.1.tar.gz
/libseccomp-2.5.2.tar.gz

View File

@ -0,0 +1,22 @@
#!/bin/bash
set -e
set -x
TEST_SOURCE=test.c
TEST_TARGET="${TEST_SOURCE/\.c/}"
CXXFLAGS="$(rpm --eval '%{build_cxxflags}')"
LDFLAGS="$(rpm --eval '%{build_ldflags}')"
PKGFLAGS="$(pkg-config libseccomp --cflags --libs)"
# build target using distribution-specific flags
gcc -Werror $CXXFLAGS $LDFLAGS $PKGFLAGS -o $TEST_TARGET $TEST_SOURCE
# test that target exists
test -f ./$TEST_TARGET
# test that target is executable
test -x ./$TEST_TARGET
# test that target runs successfully
./$TEST_TARGET

View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <seccomp.h>
int main(void)
{
const struct scmp_version *version = seccomp_version();
printf("Version: %d.%d.%d\n", version->major, version->minor, version->micro);
return 0;
}

14
tests/tests.yml Normal file
View File

@ -0,0 +1,14 @@
---
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
tests:
- devel-usability
required_packages:
- gcc
- rpm
- redhat-rpm-config
- pkgconf-pkg-config
- libseccomp-devel