aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-06-02 03:52:15 +0000
committerterry%mozilla.org <>1999-06-02 03:52:15 +0000
commit7269f798ab677e0e7e395ada7ac45a59c489f87d (patch)
tree762b22c383bd2f7641c7dbdbb70c209c79c72f11 /sanitycheck.cgi
parentOops; was flailing if rankdir wasn't defined. (diff)
downloadbugzilla-7269f798ab677e0e7e395ada7ac45a59c489f87d.tar.gz
bugzilla-7269f798ab677e0e7e395ada7ac45a59c489f87d.tar.bz2
bugzilla-7269f798ab677e0e7e395ada7ac45a59c489f87d.zip
Added simple sanity checking of the dependencies table.
Diffstat (limited to 'sanitycheck.cgi')
-rwxr-xr-xsanitycheck.cgi18
1 files changed, 18 insertions, 0 deletions
diff --git a/sanitycheck.cgi b/sanitycheck.cgi
index 969cfd3c4..f13fb4a13 100755
--- a/sanitycheck.cgi
+++ b/sanitycheck.cgi
@@ -166,3 +166,21 @@ while (@row = FetchSQLData()) {
Alert("Bad who $who in " . BugLink($id));
}
}
+
+
+Status("Checking dependency table");
+
+SendSQL("select blocked, dependson from dependencies");
+while (@row = FetchSQLData()) {
+ my ($blocked, $dependson) = (@row);
+ if (!defined $bugid{$blocked}) {
+ Alert("Bad blocked " . BugLink($blocked));
+ }
+ if (!defined $bugid{$dependson}) {
+ Alert("Bad dependson " . BugLink($dependson));
+ }
+}
+
+
+
+Status("Sanity check completed.");