Blob Blame History Raw
contact:
  - Marian Koncek <mkoncek@redhat.com>
require:
  - bash
  - findutils
  - podman
environment:
  TEST_ARTIFACTS: /var/share/test-artifacts
  JP_VALIDATOR_IMAGE: quay.io/mizdebsk/javapackages-validator
  ENVROOT: /

/symlink:
  description: >
    Check for files inside RPMs. This test checks for dangling symlinks.
    (configurable)
  test: ./jp_validator.sh SymlinkCheck -c /mnt/config/SymlinkConfigJP.java
  adjust:
    - enabled: false
      when: trigger == MBICI

/duplicate_file:
  description: >
    Check for files inside RPMs. This test checks multiple RPMs at once and
    tests for duplicate files.
    (configurable)
  test: ./jp_validator.sh DuplicateFileCheck -c /mnt/config/DuplicateFileConfigJP.java

/rpm_filesize:
  description: >
    Check whether the RPM file has allowed size in bytes.
    (configurable)
  test: ./jp_validator.sh RpmFilesizeCheck -c /mnt/config/RpmFilesizeConfigJP.java

/files:
  description: >
    Check RPM and test whether it contains allowed / disallowed files inside.
    (configurable)
  test: ./jp_validator.sh FilesCheck -c /mnt/config/FilesConfigJP.java

/attributes:
  description: >
    Set of tests to check for RPM attributes.
    (configurable)

  /conflicts:
    test: ./jp_validator.sh attribute.ConflictsCheck

  /enhances:
    test: ./jp_validator.sh attribute.EnhancesCheck

  /obsoletes:
    test: ./jp_validator.sh attribute.ObsoletesCheck

  /order_with_requires:
    test: ./jp_validator.sh attribute.OrderWithRequiresCheck

  /provides:
    test: ./jp_validator.sh attribute.ProvidesCheck

  /recommends:
    test: ./jp_validator.sh attribute.RecommendsCheck

  /requires:
    test: ./jp_validator.sh attribute.RequiresCheck

  /suggests:
    test: ./jp_validator.sh attribute.SuggestsCheck

  /supplements:
    test: ./jp_validator.sh attribute.SupplementsCheck

/java_specific:
  description: >
    Set of tests used for packages that contain Java code.

  /bytecode_version:
    description: >
      Check each .class file present inside each .jar archive inside the RPM
      and test whether its bytecode version is in valid range.
      (configurable)
    test: ./jp_validator.sh BytecodeVersionCheck -c /mnt/config/BytecodeVersionConfigJP.java

  /javadoc_noarch:
    description: >
      Check whether javadoc packages have architecture noarch
    test: ./jp_validator.sh JavadocNoarchCheck

  /java_exclusive_arch:
    description: >
      Check whether java packages have the ExclusiveArch field set correctly
      according to this change https://fedoraproject.org/wiki/Changes/Drop_i686_JDKs
    test: ./jp_validator.sh JavaExclusiveArchCheck