Commit graph

12 commits

Author SHA1 Message Date
7756515f96
rename module to awesomeindex 2024-03-14 13:37:42 +01:00
Adrian Perez de Castro
823f162085
Use the BSD license consistently
The t/preamble file incorrectly mentioned the MIT license before.
While at it, use SPDX license identification headers.

Closes #149
2022-05-26 00:40:58 +03:00
Ryan Schmidt
e505eb2a13 Tests: Wait for nginx to create pid file
When nginx is started, it returns control before it has created its pid
file. Since this test suite relies on the existence of the pid file,
wait until the pid file exists before returning from nginx_start. Time
out after 2 seconds so that if there is a real problem starting nginx
we don't wait forever.

Fixes #144
2022-05-25 23:52:58 +03:00
Ryan Schmidt
20ba8038ac Tests: Use netstat to list occupied ports on macOS
Use netstat instead of ss to list the occupied ports on macOS since
macOS doesn't have ss.

Closes #139
2022-05-10 19:46:26 +03:00
Adrian Perez de Castro
b0e1fa83a8 CI: Move over to GitHub Actions 2021-10-26 01:12:26 +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
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
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
85ad712764
Tests: Move preamble out of t/run 2016-08-18 00:44:07 +03:00