other architecture
authorStefan Schubert <schubi@suse.de>
Thu, 2 Feb 2006 16:24:02 +0000 (16:24 +0000)
committerStefan Schubert <schubi@suse.de>
Thu, 2 Feb 2006 16:24:02 +0000 (16:24 +0000)
testsuite/solver/data.deptestomatic/solution-tests/other-architect-packages.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/solution-tests/other-architect-system.xml [new file with mode: 0644]
testsuite/solver/data.deptestomatic/solution-tests/other-architect-test.xml [new file with mode: 0644]

diff --git a/testsuite/solver/data.deptestomatic/solution-tests/other-architect-packages.xml b/testsuite/solver/data.deptestomatic/solution-tests/other-architect-packages.xml
new file mode 100644 (file)
index 0000000..9f2ba03
--- /dev/null
@@ -0,0 +1,22 @@
+<channel>
+  <subchannel>
+    <package>
+      <name>foo</name>
+      <summary>A fake summary</summary>
+      <description>A fake description</description>
+      <section>misc</section>
+      <arch>s390</arch>
+      <history>
+        <update>
+          <hid>12345</hid>
+          <version>2.0</version>
+          <release>1</release>
+          <filename>foo.rpm</filename>
+          <filesize>123</filesize>
+          <installedsize>456</installedsize>
+          <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+        </update>
+      </history>
+    </package>
+  </subchannel>
+</channel>
\ No newline at end of file
diff --git a/testsuite/solver/data.deptestomatic/solution-tests/other-architect-system.xml b/testsuite/solver/data.deptestomatic/solution-tests/other-architect-system.xml
new file mode 100644 (file)
index 0000000..708e08b
--- /dev/null
@@ -0,0 +1,22 @@
+<channel>
+  <subchannel>
+    <package>
+      <name>foo</name>
+      <summary>A fake summary</summary>
+      <description>A fake description</description>
+      <section>misc</section>
+      <arch>i386</arch>
+      <history>
+        <update>
+          <hid>12345</hid>
+          <version>1.0</version>
+          <release>1</release>
+          <filename>foo.rpm</filename>
+          <filesize>123</filesize>
+          <installedsize>456</installedsize>
+          <md5sum>0f55f36a3240858038a281911605024e</md5sum>
+        </update>
+      </history>
+    </package>
+  </subchannel>
+</channel>
\ No newline at end of file
diff --git a/testsuite/solver/data.deptestomatic/solution-tests/other-architect-test.xml b/testsuite/solver/data.deptestomatic/solution-tests/other-architect-test.xml
new file mode 100644 (file)
index 0000000..a2b251d
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<test>
+<setup>
+  <system file="other-architect-system.xml"/>
+  <channel name="test" file="other-architect-packages.xml"/>
+</setup>
+
+<!-- Can't install foo since it is does not apply to this system. -->
+<!-- RESOLVER_INFO_TYPE_INSTALL_UNNEEDED should be returnd -->
+<!-- Currently no error will be returned and foo with wrong arch will be -->
+<!-- installed -->
+
+<trial>
+  <install channel="test" package="foo"/> 
+  <reportproblems/>
+</trial>
+
+</test>