testcase for bug 181103
authorStefan Schubert <schubi@suse.de>
Mon, 12 Jun 2006 13:18:28 +0000 (13:18 +0000)
committerStefan Schubert <schubi@suse.de>
Mon, 12 Jun 2006 13:18:28 +0000 (13:18 +0000)
testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/patchA-installed.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/patchB-new.xml [new file with mode: 0644]

diff --git a/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.xml
new file mode 100644 (file)
index 0000000..901b7e9
--- /dev/null
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<!--
+   load patch data from armstrong.suse.de
+-->
+<test>
+<setup>
+  <arch name="i586"/>
+  <system file="patchA-installed.xml"/>
+  <channel file="patchB-new.xml" name="new_source"/>
+</setup>
+<trial>
+  <install channel="new_source" kind="patch" package="patch-B1"/>
+  <reportproblems/>
+</trial>
+</test>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/patchA-installed.xml b/testsuite/solver/data.deptestomatic/patch-tests/patchA-installed.xml
new file mode 100644 (file)
index 0000000..f2f48c0
--- /dev/null
@@ -0,0 +1,44 @@
+<channel><subchannel>
+<package>
+  <name>A</name>
+  <summary>A fake package</summary>
+  <description>A fake package</description>
+  <section>misc</section>
+  <history>
+    <update>
+      <hid>12345</hid>
+      <arch>i586</arch>
+      <epoch>0</epoch>
+      <version>1.0</version>
+      <release>1</release>
+      <filename>foo.bar</filename>
+      <filesize>123</filesize>
+      <installedsize>234</installedsize>
+      <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+      <importance>suggested</importance>
+      <description>Yggdrasil Linux</description>
+    </update>
+  </history>
+</package>
+<patch>
+  <name>patch-A1</name>
+  <arch>noarch</arch>
+  <version>1</version>
+  <release>0</release>
+  <requires>
+    <dep kind="atom" name="A" op="=" version="1.0" release="1"/>
+  </requires>
+</patch>
+<atom>
+  <name>A</name>
+  <arch>i586</arch>
+  <version>1.0</version>
+  <release>1</release>
+  <freshens>
+    <dep kind="package" name="A"/>
+  </freshens>
+  <requires>
+    <dep kind="package" name="A" op="=" version="1.0" release="1"/>
+  </requires>
+</atom>
+</subchannel></channel>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/patchB-new.xml b/testsuite/solver/data.deptestomatic/patch-tests/patchB-new.xml
new file mode 100644 (file)
index 0000000..19da7b7
--- /dev/null
@@ -0,0 +1,44 @@
+<channel><subchannel>
+<package>
+  <name>A</name>
+  <summary>A fake package</summary>
+  <description>A fake package</description>
+  <section>misc</section>
+  <history>
+    <update>
+      <hid>12345</hid>
+      <arch>i586</arch>
+      <epoch>0</epoch>
+      <version>2.0</version>
+      <release>1</release>
+      <filename>foo.bar</filename>
+      <filesize>123</filesize>
+      <installedsize>234</installedsize>
+      <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+      <importance>suggested</importance>
+      <description>Yggdrasil Linux</description>
+    </update>
+  </history>
+</package>
+<patch>
+  <name>patch-B1</name>
+  <arch>noarch</arch>
+  <version>1</version>
+  <release>0</release>
+  <requires>
+    <dep kind="atom" name="A" op="=" version="2.0" release="1"/>
+  </requires>
+</patch>
+<atom>
+  <name>A</name>
+  <arch>i586</arch>
+  <version>2.0</version>
+  <release>1</release>
+  <freshens>
+    <dep kind="package" name="A"/>
+  </freshens>
+  <requires>
+    <dep kind="package" name="A" op="=" version="2.0" release="1"/>
+  </requires>
+</atom>
+</subchannel></channel>