-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfiji.sc.t
71 lines (49 loc) · 2.19 KB
/
fiji.sc.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Check IP address:
$ host fiji.sc | sort
fiji.sc has address 144.92.48.190
fiji.sc mail is handled by 10 mx.mailtie.com.
Check www redirect:
$ curl -Is http://www.fiji.sc | grep '^\(HTTP\|Location\)'
HTTP/1.1 301 Moved Permanently
Location: http://fiji.sc/
Check HTTP-to-HTTPS redirect:
$ curl -Is http://fiji.sc/.hello | grep '^\(HTTP\|Location\)'
HTTP/1.1 301 Moved Permanently
Location: https://fiji.sc/.hello
Check hello access:
$ curl -s https://fiji.sc/.hello
fiji.sc on abyssinian
Check front page:
$ curl -Ns https://fiji.sc/ | grep '<title>' | xargs
<title>Fiji: ImageJ, with Batteries Included</title>
Check GitHub Pages content:
$ curl -Ns https://fiji.sc/css/global.css | head -n3
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
$ expected=$(curl -s https://raw.githubusercontent.com/fiji/fiji.github.io/master/css/global.css | md5sum)
$ actual=$(curl -s https://fiji.sc/css/global.css | md5sum)
$ test "$expected" = "$actual" && echo MATCH || echo "$expected != $actual"
MATCH
$ curl -Ns https://fiji.sc/site/css/style.css | head -n4
body {
padding-top: 70px;
padding-bottom: 30px;
}
$ expected=$(curl -s https://raw.githubusercontent.com/fiji/fiji.github.io/master/site/css/style.css | md5sum)
$ actual=$(curl -s https://fiji.sc/site/css/style.css | md5sum)
$ test "$expected" = "$actual" && echo MATCH || echo "$expected != $actual"
MATCH
Check static Fiji BugZilla content:
$ curl -Ns https://fiji.sc/bug/ | grep '<title>' | xargs
<title>Bug List</title>
$ curl -Ns https://fiji.sc/bug/1265 | grep '<title>' | xargs
<title>Bug 1265 – Cell Counter Hates Me</title>
$ curl -Ns https://fiji.sc/attach/100/Exception.txt | head -n1
Fiji/ImageJ 1.47o; Java 1.6.0_24 [64-bit]; Windows 7 6.1; 29MB of 2945MB (<1%)
Check proxying of old samples links over plain HTTP from Java:
$ curl -s -A Java http://fiji.sc/samples/blobs.png | md5sum
c232c35c2b7eaf115139f8b62d4c8087 -
Check site-specific redirects:
$ "$TESTDIR/check-redirects.sh" "$TESTDIR/redirects-fiji.sc.txt"
DONE