Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137536 - unit tests fail for dev-java/commons-discovery-0.2-r2
Summary: unit tests fail for dev-java/commons-discovery-0.2-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-21 20:11 UTC by Craig Andrews
Modified: 2007-01-20 14:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2006-06-21 20:11:05 UTC
I tried compiling dev-java/commons-discovery-0.2-r2 with both Blackdown and Sun 1.4.2 JDK's. The error is with making the Javadocs... I can post whatever else is needed upon request.

emerge --info:
Portage 2.1.1_pre1-r1 (default-linux/x86/2006.0, gcc-alpha20060603/hardened, glibc-2.4-r3, 2.6.16-beyond-git12 i686)
=================================================================
System uname: 2.6.16-beyond-git12 i686 Intel(R) Celeron(R) CPU 3.06GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer -fPIE -fstack-protector-all"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=prescott -pipe -fomit-frame-pointer -fPIE -fstack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,now -Wl,-z,relro,--sort-common,--enable-new-dtags,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage-overlays/beyond /usr/local/portage /usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/java-migration /usr/portage/local/layman/java-migration-packages /usr/portage/local/layman/java-experimental"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa animation apache2 artworkextra asf authdaemond avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdda cdparanoia cdr chm cli crypt cups curl daap dbus dga divx4linux dlloader dpms dri dts dv dvd dvdr dvdread emboss encode exif fam fame fat fbsplash ffmpeg fftw firefox flac foomaticdb fortran freetype gaim gd gdbm geoip gif gimpprint glibc-omitfp glitz glut gnome gnutls gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal hardened hardenedphp hbci howl howl-compat imagemagick imap imlib innodb ipv6 isdnlog java joystick jpeg jpeg2k junit kde lcms ldap libfame libg++ libnotify libusb libwww lirc live lm_sensors lzo mad maildir mdnsresponder-compat mikmod mjpeg mmap mmx mmxext mng mono motif mozilla mozsvg mp3 mpeg mpeg2 mplayer mysql mythtv nautilus ncurses network nls nptl nptlonly ntfs nvidia offensive ofx ogg oggvorbis openexr opengl pam pango pcre pdf pdflib perl pic pie png pnp ppd ppds pppd prelude python qt qt4 quicktime rar readline real reflection rtc samba sasl scanner screensaver sdl session sharedmem shout sox speex spell spl sqlite sse sse2 ssl suspend2 svg tcpd theora threads tiff transcode truetype truetype-fonts type-fonts type1-fonts udev unicode unzip usb v4l v4l2 vcd videos vorbis webdav webservices wifi win32codecs wmf wv xine xinerama xml xml2 xorg xpm xprint xrandr xscreensaver xv xvid xvmc zeroconf zip zlib elibc_glibc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse kernel_linux linguas_en lirc_devices_mceusb2 userland_GNU video_cards_nv video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-06-22 01:14:13 UTC
I can see javadoc error:

  [javadoc] /var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/src/java/org/apache/commons/discovery/package.html: Body tag missing from HTML

But it doesn't stop the emerge... it finishes here nevertheless. Not for you?
Comment 2 Craig Andrews gentoo-dev 2006-06-22 19:56:38 UTC
That's right, it does not complete. Let me provide the end of the emerge output, perhaps that will help?
     [echo] -------- Service Discovery 0.2 --------

prepare:

compile:

compile.tests:
    [javac] Compiling 7 source files to /var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/target/test
     [copy] Copying 3 files to /var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/target/test
     [copy] Copying 1 file to /var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/target/testAlt1
     [copy] Copying 1 file to /var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/target/testAlt2

test.discovery:
     [echo] Running basic Service tests ...

BUILD FAILED
/var/tmp/portage/commons-discovery-0.2-r2/work/commons-discovery-0.2-src/discovery/build.xml:202: Java returned: 137

Total time: 10 seconds
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2006-06-22 21:38:02 UTC
A workaround should be to emerge with USE="-junit".
Comment 4 Craig Andrews gentoo-dev 2006-06-23 08:51:24 UTC
(In reply to comment #3)
> A workaround should be to emerge with USE="-junit".
> 

That workaround does work! I guess the question now is... why do you to disable junit testing to make this thing merge?
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-06-23 10:13:07 UTC
Simple. Because the junit use flag, as is, means to run junit tests. When these fail to run, the emerge fails.

The better question is to ask why they are failing.
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-01-20 14:10:53 UTC
commons-discovery-0.4 has unit tests that work correctly here.