Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
d9530f44
Commit
d9530f44
authored
14 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
add quick test for manifest attribute
parent
6d54b4db
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
+7
-3
7 additions, 3 deletions
.../src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
with
7 additions
and
3 deletions
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/QuickTestManifests.java
+
7
−
3
View file @
d9530f44
...
...
@@ -17,8 +17,7 @@ import org.osgi.framework.BundleException;
/**
* This simple utility was originally attached to bug 329376
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329376
* and provides a simple
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=329376 and provides a simple
* quick check on one form of incorrect headers. We do not run this test
* routinely, just tested some "old" code to see if they had that form of
* incorrect manifest.
...
...
@@ -32,6 +31,7 @@ public class QuickTestManifests implements IApplication {
private
int
checkedOk
;
private
int
failedCount
;
private
int
errorCount
;
private
int
foundExepected
;
public
Object
start
(
IApplicationContext
context
)
throws
Exception
{
File
root
=
getRoot
(
context
);
...
...
@@ -64,7 +64,8 @@ public class QuickTestManifests implements IApplication {
System
.
out
.
println
();
System
.
out
.
println
(
"Checked bundles under root path: "
+
rootpath
);
System
.
out
.
println
(
"Failed to read manifest (may be normal): "
+
failedCount
);
System
.
out
.
println
(
"Bundles with version attribute errors: "
+
errorCount
);
System
.
out
.
println
(
"Bundles with incorrect 'version' attribute errors: "
+
errorCount
);
System
.
out
.
println
(
"Occurances of 'bundle-version': "
+
foundExepected
);
System
.
out
.
println
(
"CheckedOk: "
+
checkedOk
);
System
.
out
.
println
();
}
...
...
@@ -169,6 +170,9 @@ public class QuickTestManifests implements IApplication {
errorCount
++;
return
;
}
else
if
(
"bundle-version"
.
equals
(
attr
))
{
foundExepected
++;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment