[SCM] debian-live/autotesting branch, master, updated. ede04c5c39785e08205b2034f0b1febe806bbe3c

Brendan M. Sleight (none) bms at brum.
Sun Jul 5 22:44:12 UTC 2009


The following commit has been merged in the master branch:
commit ede04c5c39785e08205b2034f0b1febe806bbe3c
Author: Brendan M. Sleight <bms at brum.(none)>
Date:   Sun Jul 5 23:42:50 2009 +0100

    Adding some useful test templates

diff --git a/tests-source/debian-live-all.xml b/tests-source/debian-live-all.xml
new file mode 100644
index 0000000..c1bae8b
--- /dev/null
+++ b/tests-source/debian-live-all.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Used to make debian-live-5.01-current-all.xml -->
+<!-- Maybe this does not have to be via XML. 
+     But I quite like the idea of a master XML document to make
+     the long document containing all the lists.
+     It also removes typos and a chance to do a real xml transform -->
+<autotesting>
+  <source>
+    <tests>
+      <processors>
+        <processor>
+          <name>i386</name>
+          <binary>qemu-system-i386</binary>
+        </processor>
+        <processor>
+          <name>amd64</name>
+          <binary>qemu-system-x86_64</binary>
+        </processor>
+      </processors>
+      <images>
+        <image>
+          <name>iso-cd</name>
+          <extension>.iso</extension>
+          <qemu_options>-cdrom</qemu_options>
+        </image>
+        <image>
+          <name>usb-hd</name>
+          <extension>.img</extension>
+          <qemu-options>-hda</qemu-options>
+        </image>
+      </images>
+      <packages>
+        <package>gnome-desktop</package>
+        <package>lxde-desktop</package>
+        <package>rescue</package>
+        <package>standard</package>
+        <package>xfce-desktop</package>
+      </packages>
+    </tests>
+    <root_url>http://cdimage.debian.org/cdimage/release/current-live/</root_url>
+    <filename_start>debian-live-501</filename_start>
+    <background>http://git.debian.org/?p=debian-live/homepage.git;a=blob_plain;f=images/debian-live.png</background>
+    <title>Debian Live 5.01</title>
+    <description>Debian Live. Daily build of 5.01, </description>
+    <frequency>monthly</frequency>
+    <qemu>
+      <xscreen>800x600x24</xscreen>
+      <options>-cdrom</options>
+      <pause>10</pause>
+      <sendkeys>kp_enter</sendkeys>
+      <time>600</time>
+    </qemu>
+    <output>
+      <keep>4</keep>
+      <root>/var/www/autotesting/</root>
+      <local>debian-live/5.01/</local>
+<!--      <local>debian-live/5.01/i386/gnome/</local> -->
+      <video>autotesting.ogv</video>
+      <screenshots>
+        <final>final-screenshot.png</final>
+        <montage>montage-of-video-frames.png</montage>
+      </screenshots>
+    </output>
+  </source>
+</autotesting>
diff --git a/tests-source/debian-live-i386-iso-xfce.xml b/tests-source/debian-live-i386-iso-xfce.xml
new file mode 100644
index 0000000..33cad94
--- /dev/null
+++ b/tests-source/debian-live-i386-iso-xfce.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Used to make debian-live-5.01-current-all.xml -->
+<!-- Maybe this does not have to be via XML. 
+     But I quite like the idea of a master XML document to make
+     the long document containing all the lists.
+     It also removes typos and a chance to do a real xml transform -->
+<autotesting>
+  <source>
+    <tests>
+      <processors>
+        <processor>
+          <name>i386</name>
+          <binary>qemu-system-i386</binary>
+        </processor>
+      </processors>
+      <images>
+        <image>
+          <name>iso-cd</name>
+          <extension>.iso</extension>
+          <qemu_options>-cdrom</qemu_options>
+        </image>
+      </images>
+      <packages>
+        <package>xfce-desktop</package>
+      </packages>
+    </tests>
+    <root_url>http://cdimage.debian.org/cdimage/release/current-live/</root_url>
+    <filename_start>debian-live-501</filename_start>
+    <background>http://git.debian.org/?p=debian-live/homepage.git;a=blob_plain;f=images/debian-live.png</background>
+    <title>Debian Live 5.01</title>
+    <description>Debian Live. Daily build of 5.01, </description>
+    <frequency>daily</frequency>
+    <qemu>
+      <xscreen>800x600x24</xscreen>
+      <options>-cdrom</options>
+      <pause>10</pause>
+      <sendkeys>kp_enter</sendkeys>
+      <time>600</time>
+    </qemu>
+    <output>
+      <keep>4</keep>
+      <root>/var/www/autotesting/</root>
+      <local>debian-live/5.01/</local>
+<!--      <local>debian-live/5.01/i386/gnome/</local> -->
+      <video>autotesting.ogv</video>
+      <screenshots>
+        <final>final-screenshot.png</final>
+        <montage>montage-of-video-frames.png</montage>
+      </screenshots>
+    </output>
+  </source>
+</autotesting>
diff --git a/tests-source/debian-live-i386-iso.xml b/tests-source/debian-live-i386-iso.xml
new file mode 100644
index 0000000..9322f38
--- /dev/null
+++ b/tests-source/debian-live-i386-iso.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!-- Used to make debian-live-5.01-current-all.xml -->
+<!-- Maybe this does not have to be via XML. 
+     But I quite like the idea of a master XML document to make
+     the long document containing all the lists.
+     It also removes typos and a chance to do a real xml transform -->
+<autotesting>
+  <source>
+    <tests>
+      <processors>
+        <processor>
+          <name>i386</name>
+          <binary>qemu-system-i386</binary>
+        </processor>
+      </processors>
+      <images>
+        <image>
+          <name>iso-cd</name>
+          <extension>.iso</extension>
+          <qemu_options>-cdrom</qemu_options>
+        </image>
+      </images>
+      <packages>
+        <package>gnome-desktop</package>
+        <package>lxde-desktop</package>
+        <package>rescue</package>
+        <package>standard</package>
+        <package>xfce-desktop</package>
+      </packages>
+    </tests>
+    <root_url>http://cdimage.debian.org/cdimage/release/current-live/</root_url>
+    <filename_start>debian-live-501</filename_start>
+    <background>http://git.debian.org/?p=debian-live/homepage.git;a=blob_plain;f=images/debian-live.png</background>
+    <title>Debian Live 5.01</title>
+    <description>Debian Live. Daily build of 5.01, </description>
+    <frequency>monthly</frequency>
+    <qemu>
+      <xscreen>800x600x24</xscreen>
+      <options>-cdrom</options>
+      <pause>10</pause>
+      <sendkeys>kp_enter</sendkeys>
+      <time>600</time>
+    </qemu>
+    <output>
+      <keep>4</keep>
+      <root>/var/www/autotesting/</root>
+      <local>debian-live/5.01/</local>
+<!--      <local>debian-live/5.01/i386/gnome/</local> -->
+      <video>autotesting.ogv</video>
+      <screenshots>
+        <final>final-screenshot.png</final>
+        <montage>montage-of-video-frames.png</montage>
+      </screenshots>
+    </output>
+  </source>
+</autotesting>
diff --git a/tests-source/transform-to-test-list.xml b/tests-source/transform-to-test-list.xml
new file mode 100644
index 0000000..4dbbf57
--- /dev/null
+++ b/tests-source/transform-to-test-list.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output method="xml" version="1.0" encoding="iso-8859-1" indent="yes"/>
+<xsl:template match="/">
+<autotesting>
+  <tests>
+  <xsl:for-each select="/autotesting/source/tests/processors/processor">
+    <xsl:variable name="processor_name" select="name"/>
+    <xsl:variable name="binary" select="binary"/>
+    <xsl:for-each select="/autotesting/source/tests/images/image">
+      <xsl:variable name="image_name" select="name"/>
+      <xsl:variable name="extension" select="extension"/>
+      <xsl:variable name="options" select="qemu_options"/>
+        <xsl:for-each select="/autotesting/source/tests/packages/package">
+        <xsl:variable name="package" select="."/>
+        <test>
+          <download><xsl:value-of select="//autotesting/source/root_url" /><xsl:value-of select="$processor_name"/>/<xsl:value-of select="$image_name"/>/<xsl:value-of select="//autotesting/source/filename_start" />-<xsl:value-of select="$processor_name"/>-<xsl:value-of select="$package"/><xsl:value-of select="$extension"/></download>
+          <xsl:copy-of select="//autotesting/source/title" />
+          <description><xsl:value-of select="//autotesting/source/description" /> 
+          <xsl:value-of select="$processor_name"/>, &#160;<xsl:value-of select="$image_name"/>, &#160;<xsl:value-of select="."/>
+(<xsl:value-of select="//autotesting/source/root_url" /><xsl:value-of select="$processor_name"/>/<xsl:value-of select="$image_name"/>/<xsl:value-of select="//autotesting/source/filename_start" />-<xsl:value-of select="$processor_name"/>-<xsl:value-of select="$package"/><xsl:value-of select="$extension"/>)
+          </description>
+          <xsl:copy-of select="//autotesting/source/background" />
+          <xsl:copy-of select="//autotesting/source/frequency" />
+          <qemu>
+            <xsl:copy-of select="//autotesting/source/qemu/xscreen" />
+            <binary><xsl:value-of select="$binary"/></binary>
+            <options><xsl:value-of select="$options"/></options>
+            <xsl:copy-of select="//autotesting/source/qemu/pause" />
+            <xsl:copy-of select="//autotesting/source/qemu/sendkeys" />
+            <xsl:copy-of select="//autotesting/source/qemu/time" />
+          </qemu>
+          <output>
+            <xsl:copy-of select="//autotesting/source/output/keep" />
+            <xsl:copy-of select="//autotesting/source/output/root" />
+            <xsl:copy-of select="//autotesting/source/output/video" />
+            <local><xsl:value-of select="//autotesting/source/output/local"/>/<xsl:value-of select="$processor_name"/>/<xsl:value-of select="$image_name"/>/<xsl:value-of select="$package"/>/</local>
+            <xsl:copy-of select="//autotesting/source/output/screenshots" />
+          </output>
+        </test>
+        </xsl:for-each>
+      </xsl:for-each>
+    </xsl:for-each>
+  </tests>
+</autotesting>
+</xsl:template>
+</xsl:stylesheet>

-- 
debian-live/autotesting



More information about the debian-live-changes mailing list