Blame tests/curl/test_curl_encoding.sh

Packit Service cfa43d
#!/bin/bash
Packit Service cfa43d
Packit Service cfa43d
set -e -o pipefail
Packit Service cfa43d
Packit Service cfa43d
. $builddir/tests/test_common.sh
Packit Service cfa43d
Packit Service cfa43d
function curl_accept_encoding {
Packit Service cfa43d
	local DF="${srcdir}/ds.xml"
Packit Service cfa43d
	local RF="results.xml"
Packit Service cfa43d
	local LOG="verbose.log"
Packit Service cfa43d
Packit Service cfa43d
	$OSCAP xccdf --verbose=DEVEL eval --fetch-remote-resources --results $RF $DF 2>$LOG || echo "OK"
Packit Service cfa43d
Packit Service cfa43d
	grep -P "Accept-Encoding.*gzip" $LOG
Packit Service cfa43d
Packit Service cfa43d
	return 0
Packit Service cfa43d
}
Packit Service cfa43d
Packit Service cfa43d
test_init
Packit Service cfa43d
Packit Service cfa43d
test_run "cURL: Accept-Encoding" curl_accept_encoding
Packit Service cfa43d
Packit Service cfa43d
test_exit