# How to run nginx unit tests?

**URL:** <https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745>\
**Category:** NGINX\
**Created:** [July 22, 2015, 7:49pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745 "2015-07-22T19:49:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [July 22, 2015, 7:49pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745/1 "2015-07-22T19:49:20Z")

</div>

Hello … I just built and installed nginx on my Linux system. Are there  
any  
unit/smoke/regression tests available to test the install?

Thanks for your help.

Posted at Nginx Forum:

> **[How to run nginx unit tests?](https://forum.nginx.org/read.php?2,260481,260481#msg-260481)**
>
> Hello .. I just built and installed nginx on my Linux system. Are there any unit/smoke/regression tests available to test the install? Thanks for your help.

---

<div class="post-metadata">

**Author:** ![rms](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@rms](https://www.ruby-forum.com/u/rms)\
**Post date:** [July 22, 2015, 7:56pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745/2 "2015-07-22T19:56:20Z")

</div>

Hello!

On Wed, Jul 22, 2015 at 01:48:31PM -0400, rms wrote:

> Hello .. I just built and installed nginx on my Linux system. Are there any  
> unit/smoke/regression tests available to test the install?

Our test suite is available at [hg.nginx.org is decommissioned](http://hg.nginx.org/nginx-tests/).  
It is designed for developers though, not for end users.

–  
Maxim D.

> **[nginx](http://nginx.org/)**

---

<div class="post-metadata">

**Author:** ![rms](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@rms](https://www.ruby-forum.com/u/rms)\
**Post date:** [July 22, 2015, 8:53pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745/3 "2015-07-22T20:53:37Z")

</div>

Thanks Maxim. So from end user’s perspective is there something I can  
do to  
test the validity of build/install?

Posted at Nginx Forum:

> **[Re: How to run nginx unit tests?](https://forum.nginx.org/read.php?2,260481,260489#msg-260489)**
>
> Hello .. I just built and installed nginx on my Linux system. Are there any unit/smoke/regression tests available to test the install? Thanks for your help.

---

<div class="post-metadata">

**Author:** ![rms](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f6c823/32.png) [@rms](https://www.ruby-forum.com/u/rms)\
**Post date:** [July 27, 2015, 9:30pm UTC](https://www.ruby-forum.com/t/how-to-run-nginx-unit-tests/242745/4 "2015-07-27T21:30:59Z")

</div>

On Wed, Jul 22, 2015 at 3:53 PM, rms [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks Maxim. So from end user’s perspective is there something I can do to  
> test the validity of build/install?

Not sure what kind of confirmation you want, but you can try starting  
the service perphaps? Does that work?

You can also test the config with:

$ sudo nginx -t

Hope that helps,

Regards,

–  
Thiago F.
