Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
261e44c3fa | ||
|
|
0999df51b8 | ||
|
|
26792c770b | ||
|
|
13f9485252 | ||
|
|
d5d139af27 | ||
|
|
5db07614a8 | ||
|
|
4758ee4fda | ||
|
|
25bf954aac |
4 changed files with 11 additions and 23 deletions
24
README.md
24
README.md
|
|
@ -1,23 +1,5 @@
|
|||
# javapackages-validator-tests
|
||||
# Deprecated
|
||||
|
||||
This repository contains the `.fmf` test files referenced by packages that are tested by _javapackages-validator_ tool.
|
||||
This repository is deprecated.
|
||||
|
||||
## Versioning
|
||||
|
||||
The version scheme is based on Fedora versions (`f<NUM>`).
|
||||
Changes made to a single branch must be backwards compatible or fix a bug.
|
||||
Breaking changes can be made to a branch that corresponds to the Rawhide branch at the time of submission.
|
||||
Packages then explicitly update their git reference and new versions of the package will be tested with the new tests.
|
||||
|
||||
This approach ensures that changes to old versions of packages will not be tested with possibly incompatible tests.
|
||||
|
||||
## Forking
|
||||
|
||||
If you wish to fork this project and add your own tests, you should follow these steps:
|
||||
|
||||
1. Add a source directory (e.g. `src`) with your own validators.
|
||||
2. Add a text [service file](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/ServiceLoader.html) named `org.fedoraproject.javapackages.validator.Validator` into the same directory.
|
||||
This file contains fully-qualified class names of validators which you want to use, one name per line.
|
||||
|
||||
Javapackages-validator will run all the validators listed in the service file, unless they have been explicitly filtered using per-package configuration.
|
||||
This is explained in the project documentation.
|
||||
Javapackages tests were moved to https://gitlab.com/redhat/centos-stream/tests/javapackages
|
||||
|
|
|
|||
|
|
@ -68,7 +68,10 @@ public class FilesValidatorJP extends FilesValidator {
|
|||
prefixes.put("javacc", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("java_cup", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("jflex", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("jline", List.of(Prefix.USR_LIB_BUILD_ID));
|
||||
prefixes.put("junit5", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("maven", List.of(Prefix.ETC_PKG, Prefix.ETC_JAVA, Prefix.JPBINDING, Prefix.USR_BIN));
|
||||
prefixes.put("maven4", List.of(Prefix.ETC_PKG, Prefix.ETC_JAVA, Prefix.JPBINDING, Prefix.USR_BIN));
|
||||
prefixes.put("modello", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("objectweb-asm", List.of(Prefix.USR_BIN));
|
||||
prefixes.put("xerces-j2", List.of(Prefix.USR_BIN));
|
||||
|
|
@ -81,7 +84,9 @@ public class FilesValidatorJP extends FilesValidator {
|
|||
static {
|
||||
exceptionalFiles.put("aqute-bnd", List.of("/etc/ant.d/aqute-bnd"));
|
||||
exceptionalFiles.put("maven", List.of("/etc/m2.conf"));
|
||||
exceptionalFiles.put("maven4", List.of("/etc/m24.conf"));
|
||||
exceptionalFiles.put("jansi", List.of("/usr/lib/jansi", "/usr/lib/jansi/libjansi.so", "/usr/lib/java/jansi"));
|
||||
exceptionalFiles.put("jline", List.of("/usr/lib/jline", "/usr/lib/jline/libjlinenative.so", "/usr/lib/java/jline"));
|
||||
}
|
||||
|
||||
private static boolean namesRelated(String lhs, String rhs) {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public class RpmFilesizeValidatorJP extends RpmFilesizeValidator {
|
|||
}
|
||||
|
||||
if (Common.getPackageName(rpm).equals("javapackages-bootstrap")) {
|
||||
return sizeBytes <= 40_000_000;
|
||||
return sizeBytes <= 60_000_000;
|
||||
}
|
||||
|
||||
// javadoc rpms
|
||||
|
|
@ -33,6 +33,6 @@ public class RpmFilesizeValidatorJP extends RpmFilesizeValidator {
|
|||
}
|
||||
}
|
||||
|
||||
return sizeBytes <= 3_500_000;
|
||||
return sizeBytes <= 4_000_000;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ public class LicenseCheck {
|
|||
private static final Set<String> PUBLIC_DOMAIN_PACKAGES = Set.of( //
|
||||
"aopalliance", //
|
||||
"plexus-utils", //
|
||||
"plexus-utils4", //
|
||||
"xz-java", //
|
||||
"javapackages-bootstrap" // special case, as it it bundles all the above
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue