Skip to content

Commit

Permalink
Add CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
drighetto committed Jan 30, 2024
1 parent 86907c2 commit 78a0762
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
############################################################
# Script to perform the "Continuous Integration" validation
############################################################
# Define the output file destination
OUT=/tmp/out-$RANDOM-$RANDOM.tmp
echo "OUT set to file: $OUT."
# Execute the script
python wpr.py -d righettod.eu -s -n 8.8.8.8 -t 30 > $OUT
# Validate the execution
marker=$(grep -Fc "Reconnaissance finished" $OUT)
echo "Marker occurences found into the OUT file: $marker."
rm $OUT
if [ $marker -eq 0 ]
then
exit -1
else
exit 0
fi

0 comments on commit 78a0762

Please sign in to comment.