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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
f30e61a2
Commit
f30e61a2
authored
Mar 04, 1999
by
terry%netscape.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a "component/product" sanity check.
parent
caae0bde
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
sanitycheck.cgi
sanitycheck.cgi
+20
-2
No files found.
sanitycheck.cgi
View file @
f30e61a2
...
...
@@ -50,12 +50,30 @@ PutHeader("Bugzilla Sanity Check");
print
"OK, now running sanity checks.<P>\n"
;
my
@row
;
Status
(
"Checking components/products"
);
my
@checklist
;
SendSQL
(
"select distinct product, component from bugs"
);
while
(
@row
=
FetchSQLData
())
{
my
@copy
=
@row
;
push
(
@checklist
,
\
@copy
);
}
foreach
my
$ref
(
@checklist
)
{
my
(
$product
,
$component
)
=
(
@$ref
);
SendSQL
(
"select count(*) from components where program = '$product' and value = '$component'"
);
if
(
FetchOneColumn
()
!=
1
)
{
Alert
(
"Bug(s) found with invalid product/component: $product/$component"
);
}
}
Status
(
"Checking profile ids..."
);
SendSQL
(
"select userid,login_name from profiles"
);
my
@row
;
my
%
profid
;
while
(
@row
=
FetchSQLData
())
{
...
...
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