5 TWEEPER="/usr/share/php/tweeper/tweeper"
20 echo " does not exist"
27 URL="file://twitter.com/$FILE"
28 OUTPUT=$($TWEEPER $URL)
29 check_result "$URL" "$FILE" "$OUTPUT"
32 file_exists_on_server() {
35 URL="file://twitter.com/$FILE"
36 OUTPUT=$(curl $SERVER/tweeper.php?src_url=$URL 2> /dev/null)
37 check_result "$URL" "$FILE on $SERVER" "$OUTPUT"
40 file_exists /etc/passwd || true
41 file_exists /etc/file_with_an_unlikely_name || true
43 echo "Staring a test server"
46 php -S localhost:8000 -t $(dirname $TWEEPER) > /dev/null 2>&1 &
50 file_exists_on_server http://localhost:8000 /etc/passwd || true
51 file_exists_on_server http://localhost:8000 /etc/file_with_an_unlikely_name || true
53 echo "Shutting down the test server"