update modulemd etc
This commit is contained in:
commit
de2b508477
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-8
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: baseos-ci.redhat-module.tier0.functional}
|
29
pmdk.yaml
Normal file
29
pmdk.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
document: modulemd
|
||||
version: 2
|
||||
data:
|
||||
name: pmdk
|
||||
stream: 1_fileformat_v6
|
||||
summary: Persistent Memory Development Kit (former NVML)
|
||||
description: The Persistent Memory Development Kit is a collection
|
||||
of libraries for using memory-mapped persistence,
|
||||
optimized specifically for persistent memory.
|
||||
license:
|
||||
module: [BSD]
|
||||
dependencies:
|
||||
- buildrequires:
|
||||
platform: [el8]
|
||||
requires:
|
||||
platform: [el8]
|
||||
references:
|
||||
community: http://pmem.io/pmdk
|
||||
|
||||
components:
|
||||
rpms:
|
||||
pmdk:
|
||||
rationale: main pmdk library
|
||||
ref: stream-rhel-8.8.0
|
||||
buildorder: 0
|
||||
libpmemobj-cpp:
|
||||
rationale: depends on (recent version of) pmdk
|
||||
ref: stream-rhel-8.8.0
|
||||
buildorder: 10
|
15
tests/is_pmem.c
Normal file
15
tests/is_pmem.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <libpmem.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
void *addr;
|
||||
|
||||
addr = pmem_map_file(argv[1], getpagesize(),
|
||||
PMEM_FILE_CREATE, S_IWUSR|S_IRUSR, NULL, NULL);
|
||||
if (addr)
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
6
tests/run_test.sh
Executable file
6
tests/run_test.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
gcc -o is_pmem is_pmem.c -lpmem || exit 1
|
||||
RET=$(./is_pmem ./testfile)
|
||||
unlink testfile
|
||||
exit $RET
|
12
tests/tests.yml
Normal file
12
tests/tests.yml
Normal file
@ -0,0 +1,12 @@
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
required_packages:
|
||||
- libpmem-devel
|
||||
- gcc
|
||||
tests:
|
||||
- simple:
|
||||
dir: .
|
||||
run: ./run_test.sh
|
Loading…
Reference in New Issue
Block a user