darcs

Issue 1757 tests in darcs 2.4

Title tests in darcs 2.4
Priority bug Status resolved
Milestone 2.4.x Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kolmodin, kowey, tux_rocker
Assigned To tux_rocker
Topics

Created on 2010-03-06.20:05:20 by kolmodin, last changed 2010-06-15.21:31:19 by admin.

Messages
msg10127 (view) Author: kolmodin Date: 2010-03-06.20:05:14
Seems a few things are missing in the last darcs-2.4 release, related to
tests.

First issue:
Darcs/Test/Email.hs seems to be missing. It's used by src/unit.lhs, and
exists in the darcs repo of darcs, but not in the darcs-2.4 release.

$ cabal configure --flags=test
...
$ cabal build
...
src/unit.lhs:57:7:
    Could not find module `Darcs.Test.Email':
      Use -v to see a list of the files searched for.

Second issue:
README refers to tests/README.test_maintainers.txt about testing, which
does not exist in the darcs-2.4 release (but exists in development repo).

Third issue:
tests/README.test_maintainers.txt says I should run "make unit", "make
tests", etc, but none of them work any more.
I'd like a way to run all tests, and to let the Gentoo ebuild (bash
script) to determine if the tests have succeeded or failed.
Does "unit" return an error code if a test has failed?

If we can get the tests running in Gentoo, we might be able to get tests
executed by Gentoo arch teams for these architectures: alpha amd64 hppa
ia64 ppc ppc64 sparc x86

Thanks!
msg10133 (view) Author: kowey Date: 2010-03-08.17:29:22
Sounds like the sort of thing we should fix for 2.4.1.  Assigning to
Reinier :-)
msg10192 (view) Author: tux_rocker Date: 2010-03-14.20:40:01
patch176 should fix this.

Furthermore, the unit executable (dist/build/unit/unit) does indicate in
its exit code whether it failed or not.
msg10235 (view) Author: kowey Date: 2010-03-16.15:33:45
Marking resolved as patch176 has been applied.
History
Date User Action Args
2010-03-06 20:05:20kolmodincreate
2010-03-08 17:29:25koweysetstatus: unknown -> needs-implementation
nosy: + kowey, tux_rocker
topic: + Target-2.4
messages: + msg10133
assignedto: tux_rocker
2010-03-14 20:40:04tux_rockersetmessages: + msg10192
2010-03-16 15:33:47koweysetstatus: needs-implementation -> resolved
messages: + msg10235
2010-06-15 21:31:19adminsetmilestone: 2.4.x
2010-06-15 21:31:19adminsettopic: - Target-2.4