generate a testcase which installs every rpm of 'packages' stand-alone
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 4 May 2006 10:33:21 +0000 (10:33 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 4 May 2006 10:33:21 +0000 (10:33 +0000)
  used to test dependency integrity inside 'packages' file

testsuite/solver/tools/packages_to_test.awk [new file with mode: 0644]

diff --git a/testsuite/solver/tools/packages_to_test.awk b/testsuite/solver/tools/packages_to_test.awk
new file mode 100644 (file)
index 0000000..f820df9
--- /dev/null
@@ -0,0 +1,15 @@
+BEGIN   { FS=" "
+         print "<?xml version=\"1.0\"?>"
+         print "<test>";
+         print "<setup arch=\"i586\">";        /* or "x86_64" */
+         print "<channel name=\"pkg\" file=\"packages.xml\"/>"
+         print "</setup>"
+        }
+
+/^=Pkg:/       {  print "<trial>";
+          printf ("<install channel=\"pkg\" name=\"%s\" />\n", $2);
+          print "</trial>";
+       }
+
+END    { print "</test>";
+       }