Running nginx tests fails with error nginx: invalid option: "e"
Maxim Dounin
mdounin at mdounin.ru
Mon Oct 10 15:24:36 UTC 2022
Hello!
On Mon, Oct 10, 2022 at 09:31:28AM -0400, ankitpatodiya wrote:
> I am trying to run nginx test using below command (nginx version is 1.16.1)
>
> TEST_NGINX_BINARY=/usr/sbin/nginx TEST_NGINX_UNSAFE=true prove
> ${PROJECT_SOURCE_DIR}/nginx-tests
>
> but get below error -
>
> nginx: invalid option: "e"
> Can't start nginx at lib/Test/Nginx.pm line 350.
>
> Can someone please clarify the reason for the error?
You are trying to run tests with an nginx version which is
obsolete and no longer supported by the test suite, see this
commit:
http://hg.nginx.org/nginx-tests/rev/ba625d5a02e4
Supported versions are mainline 1.23.x and stable 1.22.x.
Hope this helps.
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx
mailing list