Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.02 KB

File metadata and controls

59 lines (38 loc) · 1.02 KB

Testing

Run Tests

Docker

Build Docker

docker build -t mod_perimeterx-test -f Dockerfile-test .

Run tests on Docker

docker run mod_perimeterx-test

Locally (Ubuntu)

Installing Dependencies

cpanminus
apt-get install cpanminus
mod_perimeterx
git clone https://github.com/PerimeterX/mod_perimeterx.git
cd mod_perimeterx
git submodule update --init --recursive
cd ..

Apache 2

2.4
sudo apt-get install --assume-yes apache2-mpm-prefork apache2-utils apache2-dev

Perl dependencies

cpanm --installdeps --notest .

Test scaffolding

perl Makefile.PL -configure -httpd_conf t/setup/apache2.conf -src_dir /usr/lib/apache2/modules

Run tests

./t/TEST -v

Writing Tests

TBD