HEX
Server: Apache
System: Linux server.enlacediseno.com 4.18.0-553.62.1.el8_10.x86_64 #1 SMP Wed Jul 16 04:08:25 EDT 2025 x86_64
User: maor (1069)
PHP: 7.3.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/doc/python3-pycurl/tests/ext/test-suite.sh
# 

dir=$(dirname "$0")

export PATH="$(pwd)/tests/bin":$PATH

. "$dir"/test-lib.sh

setup

desc 'setup.py without arguments'
fails 'python setup.py'
succeeds 'python setup.py 2>&1 |grep "usage: setup.py"'

desc 'setup.py --help'
succeeds 'python setup.py --help'
# .* = Unix|Windows
succeeds 'python setup.py --help |grep "PycURL .* options:"'
# distutils help
succeeds 'python setup.py --help |grep "Common commands:"'

desc 'setup.py --help with bogus --curl-config'
succeeds 'python setup.py --help --curl-config=/dev/null'
succeeds 'python setup.py --help --curl-config=/dev/null |grep "PycURL .* options:"'
# this checks that --curl-config is consumed prior to
# distutils processing --help
fails 'python setup.py --help --curl-config=/dev/null 2>&1 |grep "option .* not recognized"'