Hello!
On Sun, Jun 21, 2015 at 8:19 AM, Rollin Crittendon wrote:
> Hi AgentZH,
>
Please do not use capital letters in my nick. Thank you.
> One question I have, asking offline since I am daft on this part…
> I installed the Test::Nginx on my work laptop using cpan.
> How do I get the Git Commit in on my system?
>
Easy:
mkdir -p ~/git
cd ~/git
git clone git://
github.com/openresty/test-nginx.git
And then in your own project's repos, just add the -I
~/git/test-nginx/lib option to the prove command, for example,
cd /path/to/my/project
prove -I ~/git/test-nginx/lib -r t
To make the command simpler, you could add an alias to your ~/.bashrc
(assuming you're using bash):
alias prove="prove -I ~/git/test-nginx/lib"
I myself usually create a ./go shell script to automate such things instead.
Regards,
-agentzh
P.S. I'm cc'ing the list.