112 lines
4.0 KiB
Groff
112 lines
4.0 KiB
Groff
.\" generated by cd2nroff 0.1 from testcurl.md
|
|
.TH testcurl.pl 1 "2025-08-16" testcurl
|
|
.SH NAME
|
|
testcurl.pl \- (automatically) test curl
|
|
.SH SYNOPSIS
|
|
\fBtestcurl.pl [options] [dir] > output\fP
|
|
.SH DESCRIPTION
|
|
\fItestcurl\fP is the master script to use for automatic distributed testing of
|
|
curl from git or daily snapshots. It is written for the purpose of being run
|
|
from a crontab job or similar at a regular interval. The output is suitable to
|
|
be mailed to \fBcurl\-autocompile@haxx.se\fP to be dealt with automatically (make
|
|
sure the subject includes the word "autobuild" as the mail gets silently
|
|
discarded otherwise). The most current build status (with a reasonable
|
|
backlog) is published on the curl site, at https://curl.se/dev/builds.html
|
|
|
|
\fIoptions\fP may be omitted. See \fI\--setup\fP for what happens then.
|
|
|
|
\fIdir\fP is a curl source directory, possibly a daily snapshot one. Using this
|
|
makes \fItestcurl\fP skip the \fIautoreconf\fP stage and thus it removes the
|
|
dependency on automake, autoconf, libtool, GNU m4 and possibly a few other
|
|
things.
|
|
|
|
\fItestcurl\fP runs \fIautoreconf\fP (or similar), configure, builds curl and libcurl
|
|
in a separate build directory and then runs \fImake test\fP to test the fresh
|
|
build.
|
|
.SH OPTIONS
|
|
.IP --configure=[options]
|
|
Configure options passed to configure.
|
|
.IP --crosscompile
|
|
\fI\fP
|
|
This is a cross\-compile. Makes \fItestcurl\fP skip a few things.
|
|
.IP --desc=[desc]
|
|
Description of your test system. Displayed on the build summary page on the
|
|
website.
|
|
.IP --email=[email]
|
|
Set email address to report as. Displayed in the build logs on the site.
|
|
.IP --mktarball=[command]
|
|
Generic command to run after completed test.
|
|
.IP --name=[name]
|
|
Set name to report as. Displayed in the build summary on the site.
|
|
.IP --nobuildconf
|
|
Do not run autoreconf. Useful when many builds use the same source tree, as
|
|
then only one need to do this. Also, if multiple processes run tests
|
|
simultaneously on the same source tree (like several hosts on a NFS mounted
|
|
directory), simultaneous autoreconf invokes may cause problems. (Added in
|
|
7.14.1)
|
|
.IP --nogitpull
|
|
Do not update from git even though it is a git tree. Useful to still be able
|
|
to test even though your network is down, or similar.
|
|
.IP --runtestopts=[options]
|
|
Options that is passed to the runtests script. Useful for disabling valgrind
|
|
by force, and similar.
|
|
.IP --setup=[filename]
|
|
filename to read setup from (deprecated). The old style of providing info. If
|
|
info is missing when \fItestcurl\fP is started, it prompts you and then stores the
|
|
info in a \(aqsetup\(aq file, which it looks for on each invoke. Use \fI\--name\fP,
|
|
\fI\--email\fP, \fI\--configure\fP and \fI\--desc\fP instead.
|
|
.IP "--target=[your os]"
|
|
Specify your target environment. Recognized strings include \fIvc\fP, \fImingw32\fP,
|
|
and \fIborland\fP.
|
|
.SH INITIAL SETUP
|
|
First, make a checkout from git (or you write a script that downloads daily
|
|
snapshots automatically):
|
|
|
|
.nf
|
|
$ mkdir curl-testing
|
|
$ cd curl-testing
|
|
$ git clone https://github.com/curl/curl.git
|
|
.fi
|
|
|
|
With the curl sources checked out, or downloaded, you can start testing right
|
|
away. If you want to use \fItestcurl\fP without command line arguments and to have
|
|
it store and remember the config in its \(aqsetup\(aq file, then start it manually
|
|
now and fill in the answers to the questions it prompts you for:
|
|
|
|
.nf
|
|
$ ./curl/tests/testcurl
|
|
.fi
|
|
|
|
Now you are ready to go. If you let the script run, it performs a full cycle
|
|
and spit out lots of output. Mail us that output as described above.
|
|
.SH CRONTAB EXAMPLE
|
|
The crontab could include something like this:
|
|
|
|
.nf
|
|
# autobuild curl:
|
|
0 4 * * * cd curl-testing && ./testit.sh
|
|
.fi
|
|
|
|
Where \fItestit.sh\fP is a shell script that could look similar to this:
|
|
|
|
.nf
|
|
mail="mail -s autobuild curl-autocompile@haxx.se"
|
|
name="--name=whoami"
|
|
email="--email=iamme@nowhere"
|
|
desc='"--desc=supermachine Turbo 2000"'
|
|
testprog="perl ./curl/tests/testcurl.pl $name $email $desc"
|
|
opts1="--configure=--enable-debug"
|
|
opts2="--configure=--enable-ipv6"
|
|
.fi
|
|
|
|
.nf
|
|
# run first test
|
|
$testprog $opts1 | $mail
|
|
.fi
|
|
|
|
.nf
|
|
# run second test
|
|
$testprog $opts2 | $mail
|
|
.SH SEE ALSO
|
|
.BR runtests.pl
|