Import Debian changes 6.1+2-ok1

jtreg6 (6.1+2-ok1) yangtze; urgency=medium

  * Build for openkylin.
This commit is contained in:
sufang 2023-04-04 14:01:40 +08:00 committed by su-fang
parent 51326c6126
commit e88ca00e69
14 changed files with 8083 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
jtreg6 (6.1+2-ok1) yangtze; urgency=medium
* Build for openkylin.
-- sufang <sufang@kylinos.cn> Tue, 04 Apr 2023 14:01:40 +0800

4
debian/clean vendored Normal file
View File

@ -0,0 +1,4 @@
dist/
build/
jtdiff.1
jtreg.1

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
11

38
debian/control vendored Normal file
View File

@ -0,0 +1,38 @@
Source: jtreg6
Section: java
Priority: optional
Maintainer: OpenKylin Developers <packaging@lists.openkylin.top>
Build-Depends:
ant,
debhelper (>= 11),
default-jdk,
help2man,
javahelp2,
javahelper,
libjtharness-java (>= 6.0),
libxalan2-java,
libhamcrest-java,
testng
Standards-Version: 4.6.0
Vcs-Git: https://gitee.com/openkylin/jtreg6.git
Vcs-Browser: https://gitee.com/openkylin/jtreg6
Homepage: https://openjdk.java.net/jtreg
Rules-Requires-Root: no
Package: jtreg6
Architecture: all
Depends:
${java:Depends},
${misc:Depends},
javahelp2,
libjtharness-java (>= 6.0),
libhamcrest-java,
libxalan2-java
Recommends: testng
Conflicts: jtreg
Description: Regression Test Harness for the OpenJDK platform
jtreg is the test harness used by the OpenJDK test framework.
This framework is intended primarily for regression tests.
It can also be used for unit tests, functional tests, and even simple product
tests -- in other words, just about any type of test except a conformance test,
which belong in a TCK.

7953
debian/copyright vendored Normal file

File diff suppressed because it is too large Load Diff

3
debian/docs vendored Normal file
View File

@ -0,0 +1,3 @@
README.md
COPYRIGHT
CONTRIBUTORS

5
debian/jtreg6.install vendored Normal file
View File

@ -0,0 +1,5 @@
dist/jtreg/lib/jtreg.jar /usr/share/java
dist/jtreg/doc/jtreg/tag-spec.html /usr/share/doc/jtreg
dist/jtreg/doc/jtreg/usage.txt /usr/share/doc/jtreg
dist/jtreg/bin/jtdiff /usr/share/jtreg/bin
dist/jtreg/bin/jtreg /usr/share/jtreg/bin

18
debian/jtreg6.links vendored Normal file
View File

@ -0,0 +1,18 @@
usr/share/jtreg/bin/jtreg /usr/bin/jtreg
usr/share/jtreg/bin/jtdiff /usr/bin/jtdiff
usr/share/java/hamcrest-core.jar /usr/share/jtreg/lib/hamcrest-core.jar
usr/share/java/javatest.jar /usr/share/jtreg/lib/javatest.jar
usr/share/java/jcommander.jar /usr/share/jtreg/lib/jcommander.jar
usr/share/java/jh.jar /usr/share/jtreg/lib/jh.jar
usr/share/java/jtreg.jar /usr/share/jtreg/lib/jtreg.jar
usr/share/java/junit4.jar /usr/share/jtreg/lib/junit.jar
usr/share/java/testng.jar /usr/share/jtreg/lib/testng.jar
usr/share/java/hamcrest-core.jar /usr/share/jtreg/share/java/hamcrest-core.jar
usr/share/java/javatest.jar /usr/share/jtreg/share/java/javatest.jar
usr/share/java/jcommander.jar /usr/share/jtreg/share/java/jcommander.jar
usr/share/java/jh.jar /usr/share/jtreg/share/java/jh.jar
usr/share/java/jtreg.jar /usr/share/jtreg/share/java/jtreg.jar
usr/share/java/junit4.jar /usr/share/jtreg/share/java/junit.jar
usr/share/java/testng.jar /usr/share/jtreg/share/java/testng.jar

2
debian/jtreg6.manpages vendored Normal file
View File

@ -0,0 +1,2 @@
jtreg.1
jtdiff.1

20
debian/orig-tar.sh vendored Executable file
View File

@ -0,0 +1,20 @@
#!/bin/sh -e
# called by uscan with '--upstream-version' <version> <file>
VERSION=$2
DIR=jtreg-${VERSION}
TAR=../jtreg_${VERSION}.orig.tar.gz
rm -f $3
wget http://hg.openjdk.java.net/code-tools/jtreg/archive/jtreg$VERSION.tar.gz
mv jtreg$VERSION.tar.gz $TAR
# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
. .svn/deb-layout
mv $TAR $origDir
echo "moved $TAR to $origDir"
fi
exit 0

1
debian/patches/series vendored Normal file
View File

@ -0,0 +1 @@
# You must remove unused comment lines for the released package.

30
debian/rules vendored Executable file
View File

@ -0,0 +1,30 @@
#!/usr/bin/make -f
JAVA_HOME = /usr/lib/jvm/default-java
# version string has the form 6.1+N-D, the Debian release is not passed into the build
VERSION := $(shell dpkg-parsechangelog --show-field Version | sed 's/+.*//')
BUILD_NUMBER := $(shell dpkg-parsechangelog --show-field Version | sed 's/.*+\([0-9]*\).*/\1/')
DATE := $(shell dpkg-parsechangelog --show-field Date)
%:
dh $@ --with javahelper
override_dh_auto_build:
ant -f make/build.xml \
-Dant.jar=/usr/share/java/ant.jar \
-Djtreg.build.resources=/usr/share/java \
-Djh.jar=/usr/share/java/jh.jar \
-Djhall.jar=/usr/share/java/jhall.jar \
-Djunit.jar=/usr/share/java/junit4.jar \
-Dtestng.jar=/usr/share/java/testng.jar \
-Djavatest.jar=/usr/share/java/javatest.jar \
-Dbuild.date.time='$(DATE)' \
-Dbuild.version=$(VERSION) \
-Dbuild.milestone=src \
-Dbuild.number=$(BUILD_NUMBER)
dh_auto_build
# Generate the manpages
JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtdiff > jtdiff.1
JT_HOME=./dist/jtreg/lib/ help2man --name="Regression Test Harness" --help-option="-help all" dist/jtreg/bin/jtreg > jtreg.1

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)

2
debian/watch vendored Normal file
View File

@ -0,0 +1,2 @@
version=4
https://github.com/openjdk/jtreg/tags .*/jtreg([\d\.]+(?:-b[0-9]+)?).tar.gz debian debian/orig-tar.sh