more patch tests
authorKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 16:40:07 +0000 (16:40 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Sun, 26 Feb 2006 16:40:07 +0000 (16:40 +0000)
testsuite/solver/data.deptestomatic/patch-tests/mutt-new-patch-installed.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/right-mutt-downgrade-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-install-wrong-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-uninstall-test.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/patch-tests/right-mutt-uninstall-test.xml [new file with mode: 0644]

diff --git a/testsuite/solver/data.deptestomatic/patch-tests/mutt-new-patch-installed.xml b/testsuite/solver/data.deptestomatic/patch-tests/mutt-new-patch-installed.xml
new file mode 100644 (file)
index 0000000..2b4abcc
--- /dev/null
@@ -0,0 +1,88 @@
+<channel><subchannel>
+<package>
+  <name>mutt</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.5.9i</version>
+      <release>17</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-mutt</name>
+  <arch>noarch</arch>
+  <version>1</version>
+  <release>0</release>
+  <requires>
+    <dep kind="atom" name="mutt" op="=" version="1.5.9i" release="17"/>
+  </requires>
+</patch>
+<atom>
+  <name>mutt</name>
+  <arch>i586</arch>
+  <version>1.5.9i</version>
+  <release>17</release>
+  <freshens>
+    <dep kind="package" name="mutt"/>
+  </freshens>
+  <requires>
+    <dep kind="package" name="mutt" op="&ge;" version="1.5.9i" release="17"/>
+  </requires>
+</atom>
+<package>
+  <name>mutt-requires</name>
+  <summary>A fake provides</summary>
+  <description>A fake package</description>
+  <section>misc</section>
+  <history>
+    <update>
+      <hid>12345</hid>
+      <epoch>0</epoch>
+      <arch>i586</arch>
+      <version>1.5.9i</version>
+      <release>16</release>
+      <filename>foo.bar</filename>
+      <filesize>123</filesize>
+      <installedsize>234</installedsize>
+      <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+      <importance>suggested</importance>
+      <description>Yggdrasil Linux</description>
+    </update>
+  </history>
+  <provides>
+    <dep name="/usr/bin/perl"/>
+    <dep name="libc.so.6(GLIBC_2.3.4)"/>
+    <dep name="smtp_daemon"/>
+    <dep name="libc.so.6(GLIBC_2.4)"/>
+    <dep name="libc.so.6(GLIBC_2.3)"/>
+    <dep name="libc.so.6(GLIBC_2.2)"/>
+    <dep name="libc.so.6(GLIBC_2.1)"/>
+    <dep name="libc.so.6(GLIBC_2.0)"/>
+    <dep name="libidn.so.11"/>
+    <dep name="libcrypto.so.0.9.8"/>
+    <dep name="/bin/sh"/>
+    <dep name="libsasl2.so.2"/>
+    <dep name="libgdbm.so.3"/>
+    <dep name="libssl.so.0.9.8"/>
+    <dep name="libc.so.6"/>
+    <dep name="libncursesw.so.5"/>
+    <dep name=""/>
+    <dep name=""/>
+    <dep name=""/>
+    <dep name=""/>
+    <dep name=""/>
+  </provides>
+</package>
+</subchannel></channel>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-downgrade-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-downgrade-test.xml
new file mode 100644 (file)
index 0000000..33c52dd
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+   load patch data from armstrong.suse.de
+-->
+<test>
+<setup>
+  <arch name="i686"/>
+  <system file="mutt-new-package.xml"/>
+  <source url="http://zypp:ZYpp@armstrong.suse.de/download/Code/10/update/i386" name="armstrong"/>
+  <channel name="downgrade" file="mutt-old-package.xml"/>
+</setup>
+<trial>
+  <showpool all="yes"/>
+  <establish/>
+  <install channel="downgrade" name="mutt"/>
+  <showpool all="true" prefix="ESTABLISHED:"/>
+</trial>
+</test>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-install-wrong-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-install-wrong-test.xml
new file mode 100644 (file)
index 0000000..6856d8d
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<!--
+   load patch data from armstrong.suse.de
+-->
+<test>
+<setup>
+  <arch name="i686"/>
+  <system file="mutt-new-patch-installed.xml"/>
+  <source url="http://zypp:ZYpp@armstrong.suse.de/download/Code/10/update/i386" name="armstrong"/>
+  <channel name="downgrade" file="mutt-old-package.xml"/>
+</setup>
+<trial>
+  <showpool all="yes"/>
+  <establish/>
+  <uninstall kind="package" name="mutt"/> 
+  <install channel="downgrade" name="mutt"/>
+</trial>
+</test>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-uninstall-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-patch-uninstall-test.xml
new file mode 100644 (file)
index 0000000..d0f713f
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!--
+   load patch data from armstrong.suse.de
+-->
+<test>
+<setup>
+  <arch name="i686"/>
+  <system file="mutt-new-patch-installed.xml"/>
+  <source url="http://zypp:ZYpp@armstrong.suse.de/download/Code/10/update/i386" name="armstrong"/>
+</setup>
+<trial>
+  <showpool all="yes"/>
+  <establish/>
+  <uninstall kind="package" name="mutt"/> 
+</trial>
+</test>
diff --git a/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-uninstall-test.xml b/testsuite/solver/data.deptestomatic/patch-tests/right-mutt-uninstall-test.xml
new file mode 100644 (file)
index 0000000..ee6b8c4
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<!--
+   load patch data from armstrong.suse.de
+-->
+<test>
+<setup>
+  <arch name="i686"/>
+  <system file="mutt-new-package.xml"/>
+  <source url="http://zypp:ZYpp@armstrong.suse.de/download/Code/10/update/i386" name="armstrong"/>
+</setup>
+<trial>
+  <showpool all="yes"/>
+  <establish/>
+  <uninstall kind="package" name="mutt"/> 
+</trial>
+</test>