I am trying to write some tests for a chef Nginx cookbook. I have come to a block. I need to write a test for the code below. I can test for the core_lock
released. I am unsure how to test for the make install
as well as ./autogen.sh
and ./configure --enable-standalone-module
The docs have not been too helpful since this is a bash command the docs are a bit sparse.
Code need test for
bash 'compile_modsecurity' do
cwd modsec_compile_path
code <<-EOH
./autogen.sh
./configure --enable-standalone-module
make
make install
EOH
action :nothing
notifies :run, 'bash[release_core_nginx_lock]', :immediately
end