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 | ea14b28f3649046c58ea1ca6e3c874b2c8b1bff7 (patch) | |
tree | f4722349f31373d56c2c8662431d62682d75d767 /app-text | |
parent | take over maintainance wrt #303205 (diff) | |
download | historical-ea14b28f3649046c58ea1ca6e3c874b2c8b1bff7.tar.gz historical-ea14b28f3649046c58ea1ca6e3c874b2c8b1bff7.tar.bz2 historical-ea14b28f3649046c58ea1ca6e3c874b2c8b1bff7.zip |
Add src_test.
Package-Manager: portage-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/Manifest | 12 | ||||
-rw-r--r-- | app-text/trang/files/test.xml | 87 | ||||
-rw-r--r-- | app-text/trang/trang-20091111.ebuild | 18 |
4 files changed, 116 insertions, 7 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/Manifest b/app-text/trang/Manifest index 2f7e0d387991..bf66816764e6 100644 --- a/app-text/trang/Manifest +++ b/app-text/trang/Manifest @@ -3,16 +3,18 @@ Hash: SHA1 AUX build-r1.xml 2738 RMD160 17984a75f5862230f27f703ba263e9c4054d1385 SHA1 70a9001c1edee7d169efcd49bbd7e2fdd90a8be7 SHA256 8f1fbacb800d091f0118746b6e42b60868845eca4b1eb059b38ef0ceab090cb8 AUX build.xml 2395 RMD160 216352371c2a7c51454426d2dee6c9b9175f61c3 SHA1 825b50576a515b60228835d4927b0698997cb811 SHA256 1bded4e984be9df80946ca64b9db3ed21bcdea0408ebe23977588338ffc9485e +AUX test.xml 3053 RMD160 8b09914bae305426629d94d91515f1e26467ee31 SHA1 ccf9a0ebd24a514315805ab67d191a8a3ca01ed6 SHA256 641b0ba68e3a4ce7d02de1d0cdcb7e918f35dd2e88157eb665a4d79238eef999 DIST trang-20030619.zip 941382 RMD160 f7dea9e4aae3e753fad2faae1304d865e30a5f6e SHA1 ed1c371f11c7e3c329baab6fa2997549f03458d0 SHA256 049ede1c5524fdc2958b47fe49bcf11620e36c4c6ede08f9df530eae12243343 DIST trang-20091111.zip 1079534 RMD160 461666fabf178576d8f4ad216734c6892b60b154 SHA1 b5f1fd4b63f347c8d0575bd1922f94316240cb29 SHA256 d8a3f034f9918ebe5b265aafeadbee6729ddda5732cfc368e2c30b3b8c0ca598 EBUILD trang-20030619-r3.ebuild 1434 RMD160 2c68b4e2184c0b46b5814b1dc3736d0d70331ca6 SHA1 96a79c87f2d4b918bf0e59038935c51cac230e58 SHA256 cd70cb90cfbbe3965fa0bc50b9bfdc5a890503622512b77663dc4be622c1509b -EBUILD trang-20091111.ebuild 1180 RMD160 1972ef327b8a5e12f1ddf4eec67ef2178b501e41 SHA1 d33427ebe0e06e469243c38e38564ebb3d22b419 SHA256 3abc9097fa55f7c946e4be2dbd2cb7afcfedcbaa31247f5d3c8bcf7297e261d4 -MISC ChangeLog 3561 RMD160 42c31549a380f3834065c76e992771cdb7005b89 SHA1 24a2a49c174d22caea61dd558b929352d2a3b711 SHA256 43fa2673c8fb8c790b12947db5c10713fac21740f14f0573b6491abde6fd54d5 +EBUILD trang-20091111.ebuild 1705 RMD160 19dcfddf60324d0c477f9ce83777088efa0c1089 SHA1 fe58c038f3956943aab28c26da89f6a98f1969ef SHA256 f608fd5539c2e91fe72b9a230754187d9328addbe0a6e7707e5172329f5b8b6b +MISC ChangeLog 3673 RMD160 05e1a4ce24434bb430ff4e673455e22065c59770 SHA1 8dce6820c2f44ef6bb7bd6c969eca00b00ead510 SHA256 64264af2c6c0bff72740f1149c40b5248527adc1a150cfeb5dbdb86d06de8c7b MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9 +MISC trang-20091111.ebuild.orig 1180 RMD160 1972ef327b8a5e12f1ddf4eec67ef2178b501e41 SHA1 d33427ebe0e06e469243c38e38564ebb3d22b419 SHA256 3abc9097fa55f7c946e4be2dbd2cb7afcfedcbaa31247f5d3c8bcf7297e261d4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) -iEYEARECAAYFAkuPkmIACgkQcxLzpIGCsLRCVwCgjz6VaqL+T9LpF0/g0Jy1KYqm -sJ4An38vqSOaKhZausZpNqQbhq7cWVHN -=FtFp +iEYEARECAAYFAkuP6DkACgkQcxLzpIGCsLSz3gCglLC4o9Tgb5MPfL+LCyZD8M9I +BaUAn3CJ0DxIiu1Pd7CkiNLAORnj27V0 +=pqxe -----END PGP SIGNATURE----- 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 \ |