Commit Graph

100 Commits

Author SHA1 Message Date
3d88b43520 Travis docs updates. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877122 13f79535-47bb-0310-9956-ffa450edef68
2020-04-28 07:21:04 +00:00
30ecef2e87 For future debugging ease, output the Travis tag & branch. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875923 13f79535-47bb-0310-9956-ffa450edef68
2020-03-31 10:08:39 +00:00
7e0e79de7a Add simple test for apxs to catch regression in r1872042.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1875465 13f79535-47bb-0310-9956-ffa450edef68
2020-03-20 10:52:25 +00:00
c9d6d9e5ab Update docs. The expr_string.t failure has not been seen since
the workaround was added AFAICT.  The async filter bug
is still breaking the tests regularly. [skip ci].


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874775 13f79535-47bb-0310-9956-ffa450edef68
2020-03-04 08:23:55 +00:00
20d26e0c6c Switch to using httpd-tests git repo.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874716 13f79535-47bb-0310-9956-ffa450edef68
2020-03-03 11:33:43 +00:00
10ddf63930 Add gcc 9 job, enable enhanced malloc debugging for pool-debug job.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874256 13f79535-47bb-0310-9956-ffa450edef68
2020-02-20 14:36:46 +00:00
08aaaea5fe Add Travis job which runs under UBSan ("Undefined Behaviour Sanitizer").
mod_http2 disabled for now until https://github.com/icing/mod_h2/pull/194
is merged.

Github: closes #96


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874190 13f79535-47bb-0310-9956-ffa450edef68
2020-02-19 11:18:21 +00:00
2fe910c05b Back off a little when svn export is timing out.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1874128 13f79535-47bb-0310-9956-ffa450edef68
2020-02-17 11:59:28 +00:00
85760859ca Fix spelling errors found by codespell. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
2020-02-13 18:15:57 +00:00
fd88f1c0cf Non-x86 testing seems reasonably reliable; note some known failures
currently.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872732 13f79535-47bb-0310-9956-ffa450edef68
2020-01-13 17:13:08 +00:00
debdedc681 Add Travis job running the litmus WebDAV test suite.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872588 13f79535-47bb-0310-9956-ffa450edef68
2020-01-10 10:20:07 +00:00
272634c29f Add arm64 support for Travis testing.
This support is experimental.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872519 13f79535-47bb-0310-9956-ffa450edef68
2020-01-08 21:41:22 +00:00
0bd4a3d88c Add Travis job which runs tests in random order.
Github: closes #86


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872373 13f79535-47bb-0310-9956-ffa450edef68
2020-01-06 11:52:48 +00:00
ff26c75f33 Cache SVN checkout of test/framework across Travis builds. Should
improve reliability (the checkout fails frequently) and performance,
plus reduces load on ASF infra.

Github: closes #85


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872372 13f79535-47bb-0310-9956-ffa450edef68
2020-01-06 10:36:39 +00:00
c09b6d3f49 test/travis_before_linux.sh: increase backoff time before executing svn export
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872309 13f79535-47bb-0310-9956-ffa450edef68
2020-01-04 09:23:10 +00:00
a604fac5d9 Work around a build failure when a cached APR branch install
is used but APR-util needs to be rebuilt; currently this fails
because the APR build directory is not available.

e.g. https://travis-ci.org/apache/httpd/jobs/630885203

Disable caching for this combination for now.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872106 13f79535-47bb-0310-9956-ffa450edef68
2019-12-30 11:26:21 +00:00
6786fbf847 test/travis_before_linux.sh: move retry logic to function
Move the retry logic to a bash function and restore the -e
failure policy in the script (to have cleaner log traces
in base of build failures).



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872073 13f79535-47bb-0310-9956-ffa450edef68
2019-12-29 10:27:50 +00:00
2688e472ff test/travis_before_linux.sh: make for loop more resilient
This is a follow up to my last commit to this file, to make
the for loop more resilient with the following:
- use --force in svn export, otherwise the second attempt will
  always fail due to the dest directory already present.
- exit 1 in case the 5 tries end up in a non zero exit code
  (to fail fast the build).



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872045 13f79535-47bb-0310-9956-ffa450edef68
2019-12-28 08:29:30 +00:00
250e722770 test/travis_before_linux.sh: remove bash -e flag
To allow a proper fail/retry, -e needs to be removed.
Ideally this shouldn't happen, so I'd consider this
a test to see if the bash for workaround is a viable
option or not.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1871908 13f79535-47bb-0310-9956-ffa450edef68
2019-12-22 10:45:03 +00:00
e4aa805aba test/travis_before_linux.sh: add a simple bash retry to svn export
Sometimes a build is killed by Travis due to svn export taking
a long time to complete (> 10m). This change should be a test to see
if a simple workaround reduces the noise to the dev@ mailing list.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1871907 13f79535-47bb-0310-9956-ffa450edef68
2019-12-22 10:30:59 +00:00
f4a5437af2 Remove check for committer status
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870763 13f79535-47bb-0310-9956-ffa450edef68
2019-12-03 17:37:42 +00:00
08898cc764 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870738 13f79535-47bb-0310-9956-ffa450edef68 2019-12-03 00:31:08 +00:00
828f8ecc2e Note that APU_VERSION=trunk doesn't work per rpluem's mail. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870150 13f79535-47bb-0310-9956-ffa450edef68
2019-11-22 09:09:08 +00:00
ff510e162b Doc updates for Travis. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870086 13f79535-47bb-0310-9956-ffa450edef68
2019-11-21 13:00:47 +00:00
0220567ff3 Build on s390x (interesting test target since it's big-endian).
IRC notifications work, e-mail doesn't; branches are done.
ppc64le builds also work but are extremely slow, so not enabled.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870080 13f79535-47bb-0310-9956-ffa450edef68
2019-11-21 10:46:38 +00:00
e18b2f5a72 Support travis builds against APR/APR-util non-trunk branches.
Add job for APR 1.7.x + APR-util 1.7.x.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870077 13f79535-47bb-0310-9956-ffa450edef68
2019-11-21 09:30:34 +00:00
1e92527390 Specify make flags globally and work around PR 63942 for regeneration
of server/util_expr parser.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1870047 13f79535-47bb-0310-9956-ffa450edef68
2019-11-20 09:38:14 +00:00
d8306deb92 Minor Travis doc updates and a todo list. [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869708 13f79535-47bb-0310-9956-ffa450edef68
2019-11-12 17:18:32 +00:00
2dd0046f30 Add buildconf option to force (rather than suppress) regeneration of
the ap_expr parser.  Add a Travis job which uses this, so a patch
which changes the parser sources is tested appropriately (e.g PR#72).

* buildconf: Add --with-regen-expr to force ap_expr regeneration.

* .travis.yml, test/travis_run_linux.sh: Pass BUILDCONF to buildconf
  and add job which uses the new option.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869697 13f79535-47bb-0310-9956-ffa450edef68
2019-11-12 12:45:57 +00:00
53ec69f3ca Add shared-mpms build, add build against APR trunk (httpd trunk only).
Fix handling and ensure safe caching of APR trunk build.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869564 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 14:29:17 +00:00
a740f191a8 Start sketching out some travis docs and check we can -> [skip ci]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869550 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 12:37:04 +00:00
7a55a801e7 Revert r1869541 and always run httpd's buildconf against the Debian APR,
which does include the *.m4 files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869543 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 11:23:19 +00:00
cc470ff559 Run buildconf using the specific APR/APR-util versions if configured.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869541 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 11:02:16 +00:00
5602cda609 Add Travis support for multiple APR/APR-util versions.
Add an APR build with --enable-pool-debug.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869533 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 09:46:50 +00:00
c096af4bcc Support 2.4.x builds, which lacks --with-test-suite support.
Build with --enable-load-all-modules only when the test suite is run.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869527 13f79535-47bb-0310-9956-ffa450edef68
2019-11-08 07:45:55 +00:00
d5e989b778 Move before/run scripts out of .travis.yml.
Reviewed by: elukey


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869459 13f79535-47bb-0310-9956-ffa450edef68
2019-11-06 11:45:21 +00:00
c42ef53578 #pragma GCC diagnostic push/pop exist in gcc >= 4.6 only.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827372 13f79535-47bb-0310-9956-ffa450edef68
2018-03-20 22:39:48 +00:00
a01e89c885 httpdunit: include .h to avoid code duplication.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810761 13f79535-47bb-0310-9956-ffa450edef68
2017-10-03 09:33:17 +00:00
21857e40fa Follow up to r1804123 r1809633.
Silence "-Wunknown-pragmas" on GCC...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810723 13f79535-47bb-0310-9956-ffa450edef68
2017-10-03 09:26:47 +00:00
aaa695b07a On the trunk:
Fix for maintainer-mode compiler errors when including check.h in unit tests.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1809633 13f79535-47bb-0310-9956-ffa450edef68
2017-09-25 14:20:47 +00:00
2302082b33 httpdunit: merge CVE-2017-9788 regression tests from feature branch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1801998 13f79535-47bb-0310-9956-ffa450edef68
2017-07-14 22:33:45 +00:00
0dc9280e94 CVE-2017-9788: add unit tests for get_digest_rec()
Including the module source is a dirty hack, but maybe the direct way is
best for now. More functional tests are still TODO.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1801996 13f79535-47bb-0310-9956-ffa450edef68
2017-07-14 22:30:17 +00:00
e0852fd12e util.c: add a strict Base64 decoding function
ap_pbase64decode_strict() adds to the functionality of
ap_pbase64decode() in two ways:

- the length of the decoded buffer is returned, allowing embedded NULLs
  to be retained by the caller
- the input string is strictly checked for Base64 validity, including
  correct zero-padding at the end of the string

(This was originally added to the httpdunit feature/backport branch in
r1796208, then reverted in r1799376, since it's currently intended for
trunk only.)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1799380 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:55:20 +00:00
78a4c3c46e ap_get_basic_auth_components: add unit tests
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1799379 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:55:17 +00:00
63047d39ba ap_find_token: add unit tests
Add previously embargoed test case for CVE-2017-7668.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1799377 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:34:30 +00:00
f50be63ee1 Revert new base64 function and tests
This should be trunk-only, not part of the backport branch.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1799376 13f79535-47bb-0310-9956-ffa450edef68
2017-06-20 23:34:18 +00:00
6a1008ee10 util.c: add a strict Base64 decoding function
ap_pbase64decode_strict() adds to the functionality of
ap_pbase64decode() in two ways:

- the length of the decoded buffer is returned, allowing embedded NULLs
  to be retained by the caller
- the input string is strictly checked for Base64 validity, including
  correct zero-padding at the end of the string

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796208 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:42 +00:00
589866e7e5 httpdunit: fix check.h on Windows
Check seems to have trouble with type definitions when using a
CMake+Windows toolchain. Include apr.h before check.h to ensure pid_t
exists.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796205 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:36 +00:00
d3289c73ee httpdunit: a Check-based unit test suite
Add a unit test suite based on Check:

    https://libcheck.github.io/check/

The suite depends on the build system to automatically generate the code
stubs that call every test case.

httpdunit is automatically enabled in the build if configure is able to
find Check via pkg-config. At the moment pkg-config is the only official
(non-deprecated) way to build and link against Check with an autoconf
system, since platforms may distribute Check as a static library.

Note that Check is an LGPL'd library, so we can't distribute test
objects and binaries. Building and running the suite remains optional
and is not required to run the server.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpdunit@1796202 13f79535-47bb-0310-9956-ffa450edef68
2017-05-25 21:18:32 +00:00
d79b514c4b Fix spelling in comments and text files.
No functional change.
PR 59990


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
2016-08-11 19:50:02 +00:00