nuclei/integration_tests/run.sh

22 lines
434 B
Bash
Raw Normal View History

#!/bin/bash
echo "::group::Build nuclei"
rm integration-test nuclei 2>/dev/null
cd ../v2/cmd/nuclei
go build
2021-06-15 06:16:02 +00:00
mv nuclei ../../../integration_tests/nuclei
echo "::endgroup::"
echo "::group::Build nuclei integration-test"
cd ../integration-test
go build
2021-06-15 06:16:02 +00:00
mv integration-test ../../../integration_tests/integration-test
cd ../../../integration_tests
echo "::endgroup::"
./integration-test
2021-02-27 07:12:35 +00:00
if [ $? -eq 0 ]
2021-02-27 07:29:26 +00:00
then
2021-02-27 07:12:35 +00:00
exit 0
else
exit 1
fi