Commit Graph

18 Commits (a983c2c899d223255455854a81759d6c3d04c4a8)

Author SHA1 Message Date
Adrian Perez de Castro a983c2c899
Add test case for sort order by file-size after
This tests the fix from PR #88 and by having it in the test suite
it will make sure that sorting by size dos not get broken again.
2018-07-03 02:41:13 +03:00
Adrian Perez de Castro 6f812eba8e Add a test case which uses pup to check a listing 2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 604b43b336 Add pup() and use() function to allow skipping when pup is unavailable
The "use pup" construct will skip a test case that needs pup installed.
The pup() function ensures that the downloaded binary is used.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 60f09e450d Allow skipping test cases
This defines a skip() function in the tests preamble which can
be used to skip tests. Skipped tests are counted, and a reason
for them being skipped printed after running the tests.
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro 501f9bc63c CI: Add script to fetch and validate a binary build of pup
The script downloads and validates the download against a built-in
list of known checksums for the release ZIP files.

More on pup: https://github.com/ericchiang/pup/
2018-07-03 02:16:45 +03:00
Adrian Perez de Castro b1182f7758
Add test case 2016-12-08 15:33:13 +02:00
Adrian Perez de Castro ee17ca1a65
Use in tests the generic method to pass config options
Instead of having variables being flipped around, just specify which Nginx
directives are needed in the configuration file.
2016-12-07 20:20:34 +02:00
Anders Trier Olesen 6442f26527 Add test for fancyindex_exact_size off 2016-11-04 01:31:05 +02:00
Fernando Costa f2f0cdc9de Randomize test execution. 2016-10-18 23:51:08 +03:00
Adrian Perez de Castro 5e621202bd
Use only the new-style module configuration for dynamic builds
For static builds we still need to manually reorder $HTTP_MODULES, and we
cannot source "auto/module" like the new-style configuration mode needs,
because the "auto/module" snippet modifies $HTTP_MODULES itself, but ignores
the new $ngx_module_order variable when doing a static build.

Fortunately, the old-style way of configuring the module is still working in
all Nginx versions for statically built modules, so we can keep using that
for static builds.

This fixes issue #46.
2016-08-18 20:30:43 +03:00
Adrian Perez de Castro 07fb4ab214
t/run: Add some spacing and formatting to failed test outputs
This makes it easier to identify the outputs for each one of the failed
tests.
2016-08-18 19:19:11 +03:00
Adrian Perez de Castro a1bb63c93b
Script which replicates the build-and-test done by Travis-CI
This allows developers to build nginx and run the test suite locally by
running just one single command.
2016-08-18 18:16:30 +03:00
Adrian Perez de Castro f051caa108
Tests: Add test descriptions 2016-08-18 18:16:16 +03:00
Adrian Perez de Castro 038434dd9f
Ensure that a clean environment is used to launch Nginx in tests
This avoids potential issues when running the tests in environments which
might set variables which Nginx tries to read on startup. For example,
the $NGINX variable was being picked from the Travis-CI build matrix
configuration.
2016-08-18 16:48:28 +03:00
Adrian Perez de Castro 3789187861
Tests: Smoke-test that the module is returning data 2016-08-18 00:44:07 +03:00
Adrian Perez de Castro 8d47b33509
Tests: Check that dynamic module is not built when build is not dynamic 2016-08-18 00:44:07 +03:00
Adrian Perez de Castro 85ad712764
Tests: Move preamble out of t/run 2016-08-18 00:44:07 +03:00
Adrian Perez de Castro 866a9e18a0
Add a rudimentary test harness 2016-08-18 00:44:06 +03:00