import sources
This commit is contained in:
parent
7e522dcb5b
commit
160136a236
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
SOURCES/v1.0.6.tar.gz
|
||||
/v1.0.6.tar.gz
|
||||
/v*.tar.gz
|
||||
*.src.rpm
|
||||
|
34
tests/test-brotli-with-curl.sh
Normal file
34
tests/test-brotli-with-curl.sh
Normal 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
12
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user