~openjdk/openjdk/openjdk8

« back to all changes in this revision

Viewing changes to debian/tests/jdk

  • Committer: Matthias Klose
  • Date: 2019-10-01 07:38:06 UTC
  • Revision ID: doko@ubuntu.com-20191001073806-06t0tjksdypuh1vk
Tags: 8u232-b07-1
[ Matthias Klose ]
* debian/tests/control: Depend on g++ instead of build-essential or libc6-dev.
* Bump standards vesion.
[ Tiago Stürmer Daitx ]
* Improve and fix build tests and autopkgtests:
  - Update debian/tests/hotspot,jdk,langtools to ignore
    jtreg-autopkgtest.sh return code.
  - Create debian/tests/jtdiff-autopkgtest.in as it depends
    on debian/rules variables.
  - debian/control.in, debian/control: add default-jre-headless
    to Build-Depends with a nocheck clause as jtreg requires
    a JRE in /usr/lib/jvm/default-java.
  - debian/tests/control:
    + Add zip and unzip test dependencies required by jdk's
      test/sun/security/tools/jarsigner/diffend.sh and
      test/sun/security/tools/jarsigner/emptymanifest.sh.
    + Depend on default-jre-headless so jtreg will use the
      JRE from /usr/lib/jvm/default-java.
  - debian/tests/jtdiff-autopkgtest.sh:
    + Fail only if an actual regression is detected.
    + Add the super-diff comparison from jtdiff.
    + Save failed jtr files for all runs.
  - debian/tests/jtreg-autopkgtest.sh:
    + Enable retry of failed tests to trim out flaky tests.
    + Fix unbound variable.
    + Keep .jtr files from failed tests only.
  - debian/patches/jdk-problem-list.diff: ignore failing tests
    that require more investigation.
  - debian/rules:
    + Preserve all JTreport directories in the test output
      directory.
    + Use JDK_DIR instead of JDK_TO_TEST for autopkgtest
      generation.
    + Package all .jtr files from JTwork as jtreg-autopkgtest.sh
      makes sure it contains only failed tests.
* debian/tests/jdk: add our custom debian/tests/jdk-problem-list.txt to the
  exclusion list.
* debian/tests/jdk-problem-list.txt: custom exclusion rules for jdk tests
  that fail to run during a build or autopkgtest run.
* debian/rules: remove debian/patches/jdk-problem-list.diff.
* debian/patches/jdk-problem-list.diff: jtreg allows for extra exclusion
  files thus there's no need to patch upstream's exclusion list.
* debian/tests/control: mark all autopkgtests as flaky.
* debian/tests/hotspot-archs: generated by debian/rules, contains a list of
  archs that supports a hotspot vm.
* debian/tests/jdk: run only when the host arch is a hotspot vm - allow
  override through an environment variable.
* debian/rules: update gen-autopkgtests to echo supported hotspot archs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
export XAUTHORITY="${HOME}/.Xauthority"
20
20
export DISPLAY=:10
21
21
 
 
22
host_arch="${DEB_HOST_ARCH:-$(dpkg --print-architecture)}"
 
23
 
 
24
if ! grep -q -w "${host_arch}" debian/tests/hotspot-archs; then
 
25
  echo "Warning: architecture not listed in debian/tests/hotspot-archs. The jdk testsuite might timeout."
 
26
  if [ -z "${FORCE_JDK_TEST+x}" ]; then
 
27
    echo "Skipping test. Set environment variable FORCE_JDK_TEST to override this check."
 
28
    exit 77
 
29
  fi
 
30
fi
 
31
 
22
32
debian/tests/start-xvfb.sh 10 &
23
33
sleep 3
24
34
 
25
 
debian/tests/jtreg-autopkgtest.sh -exclude:jdk/test/ProblemList.txt -dir:jdk/test \
 
35
debian/tests/jtreg-autopkgtest.sh jdk \
 
36
        -dir:jdk/test \
 
37
        -exclude:jdk/test/ProblemList.txt \
 
38
        -exclude:debian/tests/jdk-problem-list.txt \
26
39
        :jdk_core :jdk_svc :jdk_beans :jdk_imageio :jdk_sound :jdk_sctp \
27
 
        javax/accessibility com/sun/java/swing javax/print sun/pisces com/sun/awt
 
40
        javax/accessibility com/sun/java/swing javax/print sun/pisces com/sun/awt || true
28
41
 
29
42
debian/tests/jtdiff-autopkgtest.sh jdk