Add smoke tests, enable JPV tests
This commit is contained in:
parent
1f4a29fbfe
commit
f7909512fa
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
9
gating.yaml
Normal file
9
gating.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_contexts:
|
||||
- bodhi_update_push_testing
|
||||
- bodhi_update_push_stable
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/smoke.functional}
|
||||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build./plans/javapackages.functional}
|
31
plans/Smoke.java
Normal file
31
plans/Smoke.java
Normal file
@ -0,0 +1,31 @@
|
||||
import com.sun.istack.ByteArrayDataSource;
|
||||
import com.sun.istack.FinalArrayList;
|
||||
import com.sun.istack.NotNull;
|
||||
import com.sun.istack.Nullable;
|
||||
import com.sun.istack.Pool;
|
||||
import com.sun.istack.SAXException2;
|
||||
import com.sun.istack.SAXParseException2;
|
||||
import com.sun.istack.XMLStreamReaderToContentHandler;
|
||||
|
||||
import com.sun.istack.tools.DefaultAuthenticator;
|
||||
import com.sun.istack.tools.MaskingClassLoader;
|
||||
import com.sun.istack.tools.ProtectedTask;
|
||||
|
||||
public class Smoke
|
||||
{
|
||||
public static void main(String[] args)
|
||||
{
|
||||
System.out.println(ByteArrayDataSource.class.getCanonicalName());
|
||||
System.out.println(FinalArrayList.class.getCanonicalName());
|
||||
System.out.println(NotNull.class.getCanonicalName());
|
||||
System.out.println(Nullable.class.getCanonicalName());
|
||||
System.out.println(Pool.class.getCanonicalName());
|
||||
System.out.println(SAXException2.class.getCanonicalName());
|
||||
System.out.println(SAXParseException2.class.getCanonicalName());
|
||||
System.out.println(XMLStreamReaderToContentHandler.class.getCanonicalName());
|
||||
|
||||
System.out.println(DefaultAuthenticator.class.getCanonicalName());
|
||||
System.out.println(MaskingClassLoader.class.getCanonicalName());
|
||||
System.out.println(ProtectedTask.class.getCanonicalName());
|
||||
}
|
||||
}
|
7
plans/javapackages.fmf
Normal file
7
plans/javapackages.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
summary: Run javapackages-specific tests
|
||||
discover:
|
||||
how: fmf
|
||||
url: https://src.fedoraproject.org/tests/javapackages
|
||||
ref: f39
|
||||
execute:
|
||||
how: tmt
|
22
plans/smoke.fmf
Normal file
22
plans/smoke.fmf
Normal file
@ -0,0 +1,22 @@
|
||||
summary: Basic smoke test
|
||||
prepare:
|
||||
how: install
|
||||
package:
|
||||
- java-11-openjdk-devel
|
||||
- xmvn-tools
|
||||
- mvn(org.apache.ant:ant)
|
||||
- mvn(jakarta.activation:jakarta.activation-api)
|
||||
discover:
|
||||
how: shell
|
||||
tests:
|
||||
- name: /smoke/classpath-import
|
||||
test: |
|
||||
CLASSPATH+=":$(xmvn-resolve org.apache.ant:ant)"
|
||||
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api)"
|
||||
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-runtime)"
|
||||
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-tools)"
|
||||
export CLASSPATH
|
||||
/usr/lib/jvm/java-11-openjdk/bin/javac plans/Smoke.java
|
||||
/usr/lib/jvm/java-11-openjdk/bin/java -cp "${CLASSPATH}:plans" Smoke
|
||||
execute:
|
||||
how: tmt
|
Loading…
Reference in New Issue
Block a user