Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo "---Build Started---"
- cat <<EOF > index.html
- <html>
- <body bgcolor=black>
- <centr>
- <h2><font color=yellow>Hello from build test</font></h2>
- <font color=blue>load.sytes.net</font>
- </centr>
- </body>
- </html>
- EOF
- echo "---Build Finished---"
- echo "--TEST Started--"
- result=`grep "Hello" index.html | wc -l`
- echo $result
- if [ "$result" = "1" ]
- then
- echo "TEST PASSED"
- else
- echo "TEST FAILED"
- exit 1
- fi
- echo "--TEST Finished--"
Advertisement
Add Comment
Please, Sign In to add comment