diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2010-03-04 17:05:54 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2010-03-04 17:05:54 +0000 |
commit | de776423e9d8e9e554e2cc3977a37ea4f794f35a (patch) | |
tree | e7cc695928bdfa31b790e289de96c3fa024403f3 /app-text | |
parent | take over maintainance wrt #303205 (diff) | |
download | gentoo-2-de776423e9d8e9e554e2cc3977a37ea4f794f35a.tar.gz gentoo-2-de776423e9d8e9e554e2cc3977a37ea4f794f35a.tar.bz2 gentoo-2-de776423e9d8e9e554e2cc3977a37ea4f794f35a.zip |
Add src_test.
(Portage version: 2.2_rc62/cvs/Linux i686)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/trang/ChangeLog | 6 | ||||
-rw-r--r-- | app-text/trang/files/test.xml | 87 | ||||
-rw-r--r-- | app-text/trang/trang-20091111.ebuild | 18 |
3 files changed, 109 insertions, 2 deletions
diff --git a/app-text/trang/ChangeLog b/app-text/trang/ChangeLog index 938af98be748..89722613c0d0 100644 --- a/app-text/trang/ChangeLog +++ b/app-text/trang/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-text/trang # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.23 2010/03/04 10:59:40 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/trang/ChangeLog,v 1.24 2010/03/04 17:05:54 betelgeuse Exp $ + + 04 Mar 2010; Petteri Räty <betelgeuse@gentoo.org> trang-20091111.ebuild, + +files/test.xml: + Add src_test. 04 Mar 2010; Petteri Räty <betelgeuse@gentoo.org> trang-20091111.ebuild, files/build.xml: diff --git a/app-text/trang/files/test.xml b/app-text/trang/files/test.xml new file mode 100644 index 000000000000..747972587821 --- /dev/null +++ b/app-text/trang/files/test.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +Copyright (C) 2001-2004 Bart Massey, Jamey Sharp, and Josh Triplett. +All Rights Reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the names of the authors or their +institutions shall not be used in advertising or otherwise to promote the +sale, use or other dealings in this Software without prior written +authorization from the authors. +--> +<xcb header="dpms" extension-xname="DPMS" extension-name="DPMS" + major-version="0" minor-version="0"> + <request name="GetVersion" opcode="0"> + <field type="CARD16" name="client_major_version" /> + <field type="CARD16" name="client_minor_version" /> + <reply> + <pad bytes="1" /> + <field type="CARD16" name="server_major_version" /> + <field type="CARD16" name="server_minor_version" /> + </reply> + </request> + + <request name="Capable" opcode="1"> + <reply> + <pad bytes="1" /> + <field type="BOOL" name="capable" /> + <pad bytes="23" /> + </reply> + </request> + + <request name="GetTimeouts" opcode="2"> + <reply> + <pad bytes="1" /> + <field type="CARD16" name="standby_timeout" /> + <field type="CARD16" name="suspend_timeout" /> + <field type="CARD16" name="off_timeout" /> + <pad bytes="18" /> + </reply> + </request> + + <request name="SetTimeouts" opcode="3"> + <field type="CARD16" name="standby_timeout" /> + <field type="CARD16" name="suspend_timeout" /> + <field type="CARD16" name="off_timeout" /> + </request> + + <request name="Enable" opcode="4" /> + + <request name="Disable" opcode="5" /> + + <enum name="DPMSMode"> + <item name="On" /> + <item name="Standby" /> + <item name="Suspend" /> + <item name="Off" /> + </enum> + + <request name="ForceLevel" opcode="6"> + <field type="CARD16" name="power_level" enum="DPMSMode" /> + </request> + + <request name="Info" opcode="7"> + <reply> + <pad bytes="1" /> + <field type="CARD16" name="power_level" enum="DPMSMode" /> + <field type="BOOL" name="state" /> + <pad bytes="21" /> + </reply> + </request> +</xcb>
\ No newline at end of file diff --git a/app-text/trang/trang-20091111.ebuild b/app-text/trang/trang-20091111.ebuild index 4b4fd139a0ce..66069da77f51 100644 --- a/app-text/trang/trang-20091111.ebuild +++ b/app-text/trang/trang-20091111.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/trang/trang-20091111.ebuild,v 1.2 2010/03/04 10:59:40 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/trang/trang-20091111.ebuild,v 1.3 2010/03/04 17:05:54 betelgeuse Exp $ EAPI="2" JAVA_PKG_IUSE="doc source" @@ -38,6 +38,22 @@ java_prepare() { EANT_GENTOO_CLASSPATH="xerces-2,xml-commons-resolver" +src_test() { + # a very simple test + mkdir "test" + + java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.xsd" + java -jar "dist/${PN}.jar" "${FILESDIR}/test.xml" "test/test.dtd" + java -jar "dist/${PN}.jar" "test/test.dtd" "test/test.dtd.xsd" + + md5sum -c <<MD5SUMS_END || die "Failed to verify md5sum" +4bcb454ade46c0188f809d2e8ce15315 ${FILESDIR}/test.xml +d096c1fb462902e10a3440a604a21664 test/test.xsd +3fb46bdb16dc75a2a1e36e421b13e51d test/test.dtd +fce355ca962cb063d7baa5d7fd571bcf test/test.dtd.xsd +MD5SUMS_END +} + src_install() { java-pkg_dojar "dist/${PN}.jar" java-pkg_dolauncher trang \ |