Compare commits

...

No commits in common. "c8-beta-stream-4" and "c9s" have entirely different histories.

8 changed files with 86 additions and 3 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/jaxb-4.0.2.tar.gz
/jaxb-4.0.1.tar.gz
/jaxb-4.0.2.tar.gz

View File

@ -1 +1 @@
3bf3515784e9f84a71fed962b08b5f57942c7e5a SOURCES/jaxb-4.0.2.tar.gz
3bf3515784e9f84a71fed962b08b5f57942c7e5a jaxb-4.0.2.tar.gz

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -160,8 +160,11 @@ popd
%files xjc -f jaxb-ri/.mfiles-jaxb-xjc
%changelog
* Tue Feb 07 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.2-1
* Wed Feb 08 2023 Marián Konček <mkoncek@redhat.com> - 4.0.2-1
- Update to upstream version 4.0.2
* Wed Feb 01 2023 Marián Konček <mkoncek@redhat.com> - 4.0.1-2
- Update licenses
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 4.0.1-1
- Initial build

45
plans/Smoke.java Normal file
View File

@ -0,0 +1,45 @@
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.JAXBContext;
import jakarta.xml.bind.JAXBException;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.Unmarshaller;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.io.ByteArrayInputStream;
@XmlRootElement(namespace = "org.fedoraproject.jaxb.test.smoke")
class Data
{
public String text = "default text";
public int number = 123;
}
public class Smoke
{
public static void main(String[] args) throws Exception
{
JAXBContext context = JAXBContext.newInstance(Data.class);
Marshaller m = context.createMarshaller();
m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
m.marshal(new Data(), baos);
Unmarshaller um = context.createUnmarshaller();
Data data;
try (InputStream is = new ByteArrayInputStream(baos.toByteArray())) {
data = Data.class.cast(um.unmarshal(is));
}
if (!data.text.equals("default text"))
{
throw new RuntimeException("Expected \"default text\", found \"" + data.text + "\"");
}
if (data.number != 123)
{
throw new RuntimeException("Expected 123, found " + String.valueOf(data.number));
}
}
}

25
plans/smoke.fmf Normal file
View File

@ -0,0 +1,25 @@
summary: Basic smoke test
prepare:
- how: install
package:
- jakarta-activation2
- java-11-openjdk-devel
- jaxb-core
- jaxb-istack-commons-runtime
- jaxb-runtime
- xmvn-tools
discover:
how: shell
tests:
- name: /smoke/marshal-unmarshal
test: |
CLASSPATH+=":$(xmvn-resolve jakarta.activation:jakarta.activation-api:2)"
CLASSPATH+=":$(xmvn-resolve jakarta.xml.bind:jakarta.xml.bind-api:4)"
CLASSPATH+=":$(xmvn-resolve com.sun.istack:istack-commons-runtime)"
CLASSPATH+=":$(xmvn-resolve org.glassfish.jaxb:jaxb-runtime)"
CLASSPATH+=":$(xmvn-resolve org.glassfish.jaxb:jaxb-core)"
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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (jaxb-4.0.2.tar.gz) = 9f083b49d2245912ec23fb5030ed7b783aaec29b6bd96c3699194b761fc6e146fc754459e9949fa824ef8171357281b52dc0cb0445855d230cabf73e258cd5d8