Debian Codegraph @

debian/tests/assert-http

raw
1 #!/bin/bash
2 # HTTP integration tests
3
4 set -e
5
6 function dump() {
7 cat /var/log/mediawiki/error.log ||:
8 cat /var/log/mediawiki/exception.log ||:
9 cat /var/log/mediawiki/fatal.log ||:
10 }
11
12 trap dump SIGINT
13 trap dump SIGTERM
14 trap dump EXIT
15
16 curl --silent -I "http://localhost/mediawiki/index.php/Main_Page"
17 curl --silent "http://localhost/mediawiki/index.php/Main_Page"
18 curl --silent "http://localhost/mediawiki/index.php/Main_Page" | grep "MediaWiki has been installed"
19 curl --silent "http://localhost/mediawiki/index.php/Special:BlankPage" | grep "This page is intentionally left blank."