import sources

This commit is contained in:
Adam Samalik 2023-06-21 14:42:45 +02:00
parent 7e522dcb5b
commit 160136a236
3 changed files with 48 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/v1.0.6.tar.gz
/v1.0.6.tar.gz
/v*.tar.gz
*.src.rpm

View File

@ -0,0 +1,34 @@
#!/bin/bash
# exit immediately if any command returns non-zero exit code
set -e
# print commands as they are executed by the shell interpreter
set -x
# list of upstream tests to run
CURL_TESTS="314 315 316"
# obtain source RPM of curl
SRPM_URL=$(yum repoquery -q --srpm curl --location)
SRPM=${SRPM_URL##*/}
curl -Lo "$SRPM" "$SRPM_URL"
# install build-time deps
yum -y builddep "$SRPM"
# extract source RPM
rpmdev-extract "$SRPM"
cd "${SRPM%.rpm}"
# local build of curl
rpmbuild --nodeps -bc curl.spec \
--define "_sourcedir $PWD" \
--define "_builddir $PWD"
# local build of upstream tests
cd curl-*/build-full/tests
make $(rpm --eval '%{_smp_mflags}')
# run selected upstream tests
srcdir=../../tests perl -I../../tests ../../tests/runtests.pl -a -p -v $CURL_TESTS

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
tests:
- simple:
dir: .
run: ./test-brotli-with-curl.sh
required_packages:
- curl
- rpmdevtools