testcases for parallel installed atoms
authorStefan Schubert <schubi@suse.de>
Mon, 12 Jun 2006 14:37:18 +0000 (14:37 +0000)
committerStefan Schubert <schubi@suse.de>
Mon, 12 Jun 2006 14:37:18 +0000 (14:37 +0000)
testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.solution [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.solution [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.xml
testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.solution [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/patchA-fail-installed.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/patchA-installed.xml
testsuite/solver/data.deptestomatic/patch-tests/patchA-new.xml [new file with mode: 0644]

diff --git a/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.solution b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.solution
new file mode 100644 (file)
index 0000000..08bbd79
--- /dev/null
@@ -0,0 +1,8 @@
+>!> Installing patch-B1 from channel new_source
+>!> 1 problems found:
+>!> Problem:
+>!> This would invalidate atom:A-1.0-1.i586.
+>!> atom:A-1.0-1.i586 has unfulfilled requirements
+>!>    Solution:
+>!>       delete A
+>!>       delete atom:A-1.0-1.i586
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-fail-test.xml
new file mode 100644 (file)
index 0000000..10bf5e8
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+   patch-B1 will be installed. patch-A1 has an atom with the same
+   same. No error concerning parallel installation of the atom will
+   be displayed BUT atom of patch-A1 NEEDS the older version of 
+   package A. So this error will be displayed.
+-->
+<test>
+<setup>
+  <arch name="i586"/>
+  <system file="patchA-fail-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/parallel-atmos-test.solution b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atmos-test.solution
new file mode 100644 (file)
index 0000000..74706d9
--- /dev/null
@@ -0,0 +1,7 @@
+>!> Installing patch-B1 from channel new_source
+>!> No problems so far
+>!> Solution #1:
+>!> install patch:patch-B1-1-0.noarch[new_source]
+>!> upgrade A-1.0-1.i586 => A-2.0-1.i586[new_source]
+>!> upgrade atom:A-1.0-1.i586 => atom:A-2.0-1.i586[new_source]
+>!> installs=1, upgrades=2, uninstalls=0
index 901b7e9..d5b420e 100644 (file)
@@ -1,6 +1,8 @@
 <?xml version="1.0"?>
 <!--
-   load patch data from armstrong.suse.de
+   patch-B1 will be installed. patch-A1 has an atom with the same
+   same. No error concerning parallel installation of the atom will
+   be displayed and patch-B1 will be installed
 -->
 <test>
 <setup>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.solution b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.solution
new file mode 100644 (file)
index 0000000..54ebbd1
--- /dev/null
@@ -0,0 +1,7 @@
+>!> Installing patch-A1 from channel new_source
+>!> No problems so far
+>!> Solution #1:
+>!> upgrade A-1.0-1.i586 => A-2.0-1.i586[new_source]
+>!> upgrade atom:A-1.0-1.i586 => atom:A-2.0-1.i586[new_source]
+>!> upgrade patch:patch-A1-1-0.noarch => patch:patch-A1-2-0.noarch[new_source]
+>!> installs=0, upgrades=3, uninstalls=0
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/parallel-atoms-equal-patch-test.xml
new file mode 100644 (file)
index 0000000..5d33fa1
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<!--
+   patch-A1 with the NEW version installed. patch-A1 has an atom with the same
+   same. No error concerning parallel installation of the atom will
+   be displayed and patch-A1 will be updated.
+-->
+<test>
+<setup>
+  <arch name="i586"/>
+  <system file="patchA-installed.xml"/>
+  <channel file="patchA-new.xml" name="new_source"/>
+</setup>
+<trial>
+  <install channel="new_source" kind="patch" package="patch-A1"/>
+  <reportproblems/>
+</trial>
+</test>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/patchA-fail-installed.xml b/testsuite/solver/data.deptestomatic/patch-tests/patchA-fail-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>
index f2f48c0..67570a1 100644 (file)
@@ -38,7 +38,7 @@
     <dep kind="package" name="A"/>
   </freshens>
   <requires>
-    <dep kind="package" name="A" op="=" version="1.0" release="1"/>
+    <dep kind="package" name="A" op="&gt;" version="1.0" release="1"/>
   </requires>
 </atom>
 </subchannel></channel>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/patchA-new.xml b/testsuite/solver/data.deptestomatic/patch-tests/patchA-new.xml
new file mode 100644 (file)
index 0000000..b7a0b1b
--- /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-A1</name>
+  <arch>noarch</arch>
+  <version>2</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>