File: site1http

package info (click to toggle)
weborf 1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,152 kB
  • sloc: sh: 5,272; ansic: 3,505; python: 762; makefile: 119; xml: 44
file content (13 lines) | stat: -rwxr-xr-x 300 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
. testsuite/functions.sh

PORT=12345
run_weborf -b site1 -p $PORT

ROBOTS=$(curl -s http://127.0.0.1:$PORT/robots.txt)
[[ "$ROBOTS" = $(cat site1/robots.txt) ]]

ROBOTS=$(curl -s http://127.0.0.1:$PORT/empty)
[[ "$ROBOTS" = '' ]]

curl -s http://127.0.0.1:$PORT/cgi.py | grep "import os"