load-net

Untitled

Mar 14th, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. echo "---Build Started---"
  2. cat <<EOF > index.html
  3. <html>
  4. <body bgcolor=black>
  5. <centr>
  6. <h2><font color=yellow>Hello from build test</font></h2>
  7. <font color=blue>load.sytes.net</font>
  8. </centr>
  9. </body>
  10. </html>
  11. EOF
  12. echo "---Build Finished---"
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. echo "--TEST Started--"
  20. result=`grep "Hello" index.html | wc -l`
  21. echo $result
  22. if [ "$result" = "1" ]
  23. then
  24. echo "TEST PASSED"
  25. else
  26. echo "TEST FAILED"
  27. exit 1
  28. fi
  29. echo "--TEST Finished--"
  30.  
  31.  
  32.  
Advertisement
Add Comment
Please, Sign In to add comment