Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e164c7a5
Commit
e164c7a5
authored
Mar 06, 1999
by
terry%netscape.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check to make sure versions table is OK.
parent
378bc502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
sanitycheck.cgi
sanitycheck.cgi
+19
-1
No files found.
sanitycheck.cgi
View file @
e164c7a5
...
@@ -51,10 +51,28 @@ PutHeader("Bugzilla Sanity Check");
...
@@ -51,10 +51,28 @@ PutHeader("Bugzilla Sanity Check");
print
"OK, now running sanity checks.<P>\n"
;
print
"OK, now running sanity checks.<P>\n"
;
my
@row
;
my
@row
;
my
@checklist
;
Status
(
"Checking version/products"
);
SendSQL
(
"select distinct product, version from bugs"
);
while
(
@row
=
FetchSQLData
())
{
my
@copy
=
@row
;
push
(
@checklist
,
\
@copy
);
}
foreach
my
$ref
(
@checklist
)
{
my
(
$product
,
$version
)
=
(
@$ref
);
SendSQL
(
"select count(*) from versions where program = '$product' and value = '$version'"
);
if
(
FetchOneColumn
()
!=
1
)
{
Alert
(
"Bug(s) found with invalid product/version: $product/$version"
);
}
}
Status
(
"Checking components/products"
);
Status
(
"Checking components/products"
);
my
@checklist
;
@checklist
=
()
;
SendSQL
(
"select distinct product, component from bugs"
);
SendSQL
(
"select distinct product, component from bugs"
);
while
(
@row
=
FetchSQLData
())
{
while
(
@row
=
FetchSQLData
())
{
my
@copy
=
@row
;
my
@copy
=
@row
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment