Switch to external tests
This commit is contained in:
parent
69f2bc1232
commit
3aa36f4b73
@ -1,6 +1,8 @@
|
||||
summary: Basic smoke test
|
||||
summary: Basic smoke tests
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/tests/javapackages-tools
|
||||
filter: tier:0,1
|
||||
prepare:
|
||||
how: install
|
||||
exclude:
|
||||
|
@ -1,27 +0,0 @@
|
||||
Name: build-package
|
||||
Version: 1
|
||||
Release: 1
|
||||
Summary: some package
|
||||
License: XXX
|
||||
URL: https://www.redhat.com/
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: javapackages-local
|
||||
|
||||
%description
|
||||
Some package.
|
||||
|
||||
%prep
|
||||
%setup -cT
|
||||
|
||||
%build
|
||||
touch mf
|
||||
jar cmf mf out.jar
|
||||
%mvn_artifact foo:bar:42 out.jar
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
|
||||
%changelog
|
@ -1,8 +0,0 @@
|
||||
summary: package build test
|
||||
description: |
|
||||
Test whether javapacakges-tools can build Java RPM packages and
|
||||
whether generated provides/requires look sane.
|
||||
Covers: https://fedoraproject.org/wiki/Changes/Drop_Mandatory_Requires_on_JRE
|
||||
require:
|
||||
- javapackages-local
|
||||
- rpm-build
|
@ -1,27 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartSetup
|
||||
rlAssertRpm javapackages-local
|
||||
spec=$PWD/build-package.spec
|
||||
rlRun "pushd \$(mktemp -d)"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun -s "rpmbuild -D '_topdir %{lua:print(posix.getcwd())}' -D '%_sourcedir %{_topdir}' -D '%_builddir %{_topdir}/build' -D '%_srcrpmdir %{_topdir}' -D '%_rpmdir %{_topdir}' -ba $spec"
|
||||
srpm=build-package-1-1.src.rpm
|
||||
rpm=noarch/build-package-1-1.noarch.rpm
|
||||
rlAssertExists $srpm
|
||||
rlAssertExists $rpm
|
||||
rlRun -s "rpm -qp $rpm --provides"
|
||||
rlAssertGrep "mvn(foo:bar) = 42" $rlRun_LOG
|
||||
rlRun -s "rpm -qp $rpm --requires"
|
||||
rlAssertGrep "javapackages-filesystem" $rlRun_LOG
|
||||
rlAssertNotGrep "headless" $rlRun_LOG
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
@ -1,6 +0,0 @@
|
||||
summary: javapackages-tools default Java test
|
||||
description: |
|
||||
Test which Java is used as default Java for running applications.
|
||||
Covers: https://fedoraproject.org/wiki/Changes/Java21
|
||||
require:
|
||||
- javapackages-tools
|
@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartTest
|
||||
rlAssertRpm javapackages-tools
|
||||
rlAssertExists /usr/share/java-utils/java-functions javapackages-tools
|
||||
unset JAVA_HOME
|
||||
export _prefer_jre=true
|
||||
rlRun -s ". /usr/share/java-utils/java-functions && set_jvm && echo JAVA_HOME is \$JAVA_HOME"
|
||||
rlAssertGrep "JAVA_HOME is /usr/lib/jvm/jre-21-openjdk" $rlRun_LOG
|
||||
unset JAVA_HOME
|
||||
export _prefer_jre=false
|
||||
rlRun -s ". /usr/share/java-utils/java-functions && set_jvm && echo JAVA_HOME is \$JAVA_HOME"
|
||||
rlAssertGrep "JAVA_HOME is /usr/lib/jvm/java-21-openjdk" $rlRun_LOG
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
@ -1,5 +0,0 @@
|
||||
summary: javapackages-tools smoke test
|
||||
description: |
|
||||
Test basic functionality of javapackages-tools.
|
||||
require:
|
||||
- maven-local
|
@ -1,28 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Author: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
. /usr/share/beakerlib/beakerlib.sh
|
||||
|
||||
rlJournalStart
|
||||
|
||||
rlPhaseStartTest "check for presence of javapackages-tools commands"
|
||||
rlAssertRpm javapackages-tools
|
||||
rlAssertBinaryOrigin build-classpath javapackages-tools
|
||||
rlAssertBinaryOrigin build-classpath-directory javapackages-tools
|
||||
rlAssertBinaryOrigin build-jar-repository javapackages-tools
|
||||
rlAssertBinaryOrigin check-binary-files javapackages-tools
|
||||
rlAssertBinaryOrigin clean-binary-files javapackages-tools
|
||||
rlAssertBinaryOrigin create-jar-links javapackages-tools
|
||||
rlAssertBinaryOrigin diff-jars javapackages-tools
|
||||
rlAssertBinaryOrigin find-jar javapackages-tools
|
||||
rlAssertBinaryOrigin rebuild-jar-repository javapackages-tools
|
||||
rlAssertBinaryOrigin shade-jar javapackages-tools
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest "display mvn_build help"
|
||||
rlRun -s "python3 /usr/share/java-utils/mvn_build.py --help"
|
||||
rlAssertGrep "Usage: mvn_build.py" $rlRun_LOG
|
||||
rlAssertGrep "Skip javadoc generation and installation" $rlRun_LOG
|
||||
rlPhaseEnd
|
||||
|
||||
rlJournalEnd
|
||||
rlJournalPrintText
|
@ -1,4 +0,0 @@
|
||||
contact: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
framework: beakerlib
|
||||
test: ./runtest.sh
|
||||
tier: 0
|
Loading…
Reference in New Issue
Block a user