On 6.2.2013 3:54, Conrad Dean wrote:
Hey Lubos,
I'm still having trouble getting ant tests to pass. I'm working on a
project to wrap OpenGrok in a VM provisioned by puppet so that the
source can be built automatically.
https://github.com/cpdean/sandboxed-opengrok
Various HistoryGuruTests seem to be having trouble. I've attached the
ant output.
Correct me if I'm wrong, but it looks like these tests are trying to
execute cvs, git, svn, etc. What do I do about stuff like teamware?
So those tests simply won't run - in my jenkins I have around 230 tests
running
I guess in your env missing various scms less tests will run (which is
OK imho and just reflects the state of your testing env)
I'm still learning about Maven, but it seems like the pattern is to
include data that tests are dependent on in src/test/resources, and
use ClassLoader.getResourceAsStream(). If I could change the way the
implementations work this could fix some of the maven tests and remove
the need to have these SCM systems installed in order to get tests to
pass.
yes, I was expecting something like this, let's try to fix it, but since
ant tests pass this is a very low priority (at least for me)
so if someone has spare time to play with unified loading of resources
he can try to fix this silly situation
Would you mind taking a look at my VM provisioner or the build output
to steer me in the right direction?
Well NO test has FAILED (or I didn't spot any failure in the log)
and I'd ignore the stacks complaining
alt. make your VM install all dependencies - cvs, svn, git, hg, bzr,
sccs(cssc?), ... and you get more tests to execute ...
Also I am not sure if you need unit testing for your purpose ... just
build the source, you don't need to do testing, use the default - jar
target (or there is dist, dist-src and package(for solaris) )
- see https://github.com/OpenGrok/OpenGrok/blob/master/doc/release.txt
tests are really optional for getting the opengrok binaries
your project says - sandboxed copy of OpenGrok with all its
dependencies - so I'd include all different scm binaries so OpenGrok
supports all the versioning and can search/diff history to satisfy "with
dependencies" :)
(obviously it's optional again - without scm binaries, there will be no
history)
hth
L
Thanks!
Conrad
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss