diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/ci.fmf b/ci.fmf new file mode 100644 index 0000000..c5aa0e0 --- /dev/null +++ b/ci.fmf @@ -0,0 +1 @@ +resultsdb-testcase: separate diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..7b6e38f --- /dev/null +++ b/gating.yaml @@ -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} diff --git a/plans/Smoke.java b/plans/Smoke.java new file mode 100644 index 0000000..a4e5851 --- /dev/null +++ b/plans/Smoke.java @@ -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()); + } +} diff --git a/plans/javapackages.fmf b/plans/javapackages.fmf new file mode 100644 index 0000000..0cbb629 --- /dev/null +++ b/plans/javapackages.fmf @@ -0,0 +1,7 @@ +summary: Run javapackages-specific tests +discover: + how: fmf + url: https://src.fedoraproject.org/tests/javapackages + ref: f39 +execute: + how: tmt diff --git a/plans/smoke.fmf b/plans/smoke.fmf new file mode 100644 index 0000000..4ec7605 --- /dev/null +++ b/plans/smoke.fmf @@ -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