testcurl.1 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .\" **************************************************************************
  2. .\" * _ _ ____ _
  3. .\" * Project ___| | | | _ \| |
  4. .\" * / __| | | | |_) | |
  5. .\" * | (__| |_| | _ <| |___
  6. .\" * \___|\___/|_| \_\_____|
  7. .\" *
  8. .\" * Copyright (C) 1998 - 2005, Daniel Stenberg, <[email protected]>, et al.
  9. .\" *
  10. .\" * This software is licensed as described in the file COPYING, which
  11. .\" * you should have received as part of this distribution. The terms
  12. .\" * are also available at http://curl.haxx.se/docs/copyright.html.
  13. .\" *
  14. .\" * You may opt to use, copy, modify, merge, publish, distribute and/or sell
  15. .\" * copies of the Software, and permit persons to whom the Software is
  16. .\" * furnished to do so, under the terms of the COPYING file.
  17. .\" *
  18. .\" * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
  19. .\" * KIND, either express or implied.
  20. .\" *
  21. .\" * $Id$
  22. .\" **************************************************************************
  23. .\"
  24. .TH testcurl.pl 1 "20 May 2005" "Curl 7.14.1" "testcurl"
  25. .SH NAME
  26. testcurl.pl \- (automatically) test curl
  27. .SH SYNOPSIS
  28. .B testcurl.pl [options] [dir] > output
  29. .SH DESCRIPTION
  30. \fItestcurl.pl\fP is the master script to use for automatic testing of curl
  31. off CVS or daily snapshots. It is written for the purpose of being run from a
  32. crontab job or similar at a regular interval. The output is suitable to be
  33. mailed to [email protected] to be dealt with automatically (make sure
  34. the subject includes the word "autobuild" as the mail gets silently discarded
  35. otherwise). The most current build status (with a reasonable backlog) will be
  36. published on the curl site, at http://curl.haxx.se/auto/
  37. \fIoptions\fP may be omitted. See \fI--setup\fP for what happens then.
  38. \fIdir\fP is a curl source dir, possibly a daily snapshot one. Using this will
  39. make testcurl.pl skip the 'buildconf' stage and thus it removes the dependency
  40. on automake, autoconf, libtool, GNU m4 and possibly a few other things.
  41. testcurl.pl will run 'buildconf' (or similar), run configure, build curl and
  42. libcurl in a separate build directory and then run 'make test' to test the
  43. fresh build.
  44. .SH OPTIONS
  45. .IP "--configure=[options]"
  46. Configure options passed to configure.
  47. .IP "--crosscompile"
  48. This is a cross-compile. Makes \fItestcurl.pl\fP skip a few things.
  49. .IP "--desc=[desc]"
  50. Description of your test system. Displayed on the build summary page on the
  51. weba site.
  52. .IP "--email=[email]"
  53. Set email address to report as. Displayed in the build logs on the site.
  54. .IP "--mktarball=[command]"
  55. Generic command to run after completed test.
  56. .IP "--name=[name]"
  57. Set name to report as. Displayed in the build summary on the site.
  58. .IP "--nobuildconf"
  59. Don't run buildconf. Useful when many builds use the same source tree, as then
  60. only one need to do this. Also, if multiple processes run tests simultaneously
  61. on the same source tree (like several hosts on a NFS mounted dir),
  62. simultaneous buildconf invokes may cause problems. (Added in 7.14.1)
  63. .IP "--nocvsup"
  64. Don't update from CVS even though it is a CVS tree. Useful to still be able to
  65. test even though your network is down, or similar.
  66. .IP "--runtestopts=[options]"
  67. Options that is passed to the runtests.pl script. Useful for disabling valgrind
  68. by force, and similar.
  69. .IP "--setup=[file name]"
  70. File name to read setup from (deprecated). The old style of providing info.
  71. If info is missing when testcurl.pl is started, it will prompt you and then
  72. store the info in a 'setup' file, which it will look for on each invoke. Use
  73. \fI--name\fP, \fI--emacs\fP, \fI--configure\fP and \fI--desc\fP instead.
  74. .IP "--target=[your os]"
  75. Specify your target environment. Recognized strings include 'vc', 'mingw32',
  76. \&'borland' and 'netware'.
  77. .SH "INITIAL SETUP"
  78. First you make a checkout from CVS (or you write a script that downloads daily
  79. snapshots automatically, find inspiration at
  80. http://curl.haxx.se/auto/autocurl.txt):
  81. .nf
  82. $ mkdir daily-curl
  83. $ cd daily-curl
  84. $ cvs -d :pserver:[email protected]:/cvsroot/curl login
  85. [enter return when prompted for password ]
  86. $ cvs -d :pserver:[email protected]:/cvsroot/curl checkout curl
  87. .fi
  88. With the curl sources checked out, or downloaded, you can start testing right
  89. away. If you want to use \fItestcurl.pl\fP without command line arguments and
  90. to have it store and remember the config in its 'setup' file, then start it
  91. manually now and fill in the answers to the questions it prompts you for:
  92. .nf
  93. $ ./curl/tests/testcurl.pl
  94. .fi
  95. Now you are ready to go. If you let the script run, it will perform a full
  96. cycle and spit out lots of output. Mail us that output as described above.
  97. .SH "CRONTAB EXAMPLE"
  98. The crontab could include something like this:
  99. .nf
  100. \# autobuild curl:
  101. 0 4 * * * cd daily-curl && ./testit.sh
  102. .fi
  103. Where testit.sh is a shell script that could look similar to this:
  104. .nf
  105. mail="mail -s autobuild [email protected]"
  106. name="--name=whoami"
  107. email="--email=iamme@nowhere"
  108. desc='"--desc=supermachine Turbo 2000"'
  109. testprog="perl ./curl/tests/testcurl.pl $name $email $desc"
  110. opts1="--configure=--enable-debug"
  111. opts2="--configure=--enable-ipv6"
  112. # run first test
  113. $testprog $opts1 | $mail
  114. # run second test
  115. $testprog $opts2 | $mail