related: RHEL-33616 - Rebuild package to run tests

This commit is contained in:
Andreas Schneider 2024-07-04 08:54:15 +02:00
parent 277e853d45
commit cb8317e0aa
4 changed files with 4589 additions and 0 deletions

10
tests/sanity/Makefile Normal file
View File

@ -0,0 +1,10 @@
ldb_mod_op-test: ldb_mod_op_test.c
gcc ldb_mod_op_test.c -lldb -ltevent -ltalloc -lcmocka -o ldb_mod_op-test
run: ldb_mod_op-test
@echo "Running ldb_mod_op-test"
./ldb_mod_op-test
clean:
rm -f ldb_mod_op-test

File diff suppressed because it is too large Load Diff

4
tests/sanity/ldbtest.sh Executable file
View File

@ -0,0 +1,4 @@
#/bin/bash
make run || exit 1
make clean || exit 2

20
tests/tests.yml Normal file
View File

@ -0,0 +1,20 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- sanity:
dir: sanity
run: ./ldbtest.sh
required_packages:
- make
- gcc
- libldb
- libldb-devel
- libtevent
- libtevent-devel
- libtalloc
- libtalloc-devel
- libcmocka
- libcmocka-devel