Re: [Fink-devel] Help testing Mercurial 1.5
On 3/22/10 11:54 PM, Pepe Barbe wrote: > I am building the new package for Mercurial 1.5 and I am having some > issues and I would appreciate some help testing. > > It seems when doing a test build under the fink, for some reason > during the Test Phase things get botched and a lot of tests fail. > > I spoke with upstream and, at least, under Snow Leopard no test > failures are expected. I have tested mercurial with the native Python > and indeed there are no problems. Building and testing manually with > Fink's Python also returned few to no issues. > > I think the problem is related to whatever shell settings and > permissions are present when the TestPhase is executed. It's a permissions issue. All the following examples are with Fink's mercurial-py26-1.5-1 installed and using this command: /sw/bin/python run-tests.py --with-hg=/sw/bin/hg -v Running the tests as an admin $USER from a clean source extract in /src/mercurial-1.5: # Ran 368 tests, 34 skipped, 0 failed. Running the the tests in a clean source extract in /src/mercurial-1.5 as root by prefixing the above command with sudo: # Running "/src/mercurial-1.5/tests/test-backwards-remove" # Ret was: 0 ERROR: /src/mercurial-1.5/tests/test-backwards-remove output changed --- /src/mercurial-1.5/tests/test-backwards-remove.out +++ /src/mercurial-1.5/tests/test-backwards-remove.err @@ -1,3 +1,5 @@ +.hg a 0 files updated, 0 files merged, 1 files removed, 0 files unresolved +.hg a ... other failures like this one ... # Ran 368 tests, 34 skipped, 14 failed. Running the test as an admin $USER in %b/tests that's leftover from 'fink -m -Kk install mercurial-py26': # Test test-backwards-remove # Cleaning up HGTMP /private/var/folders/VJ/VJI1GqIRGmOqqRYrL1IClU+++TI/-Tmp-/hgtests.soCjpV Traceback (most recent call last): File "run-tests.py", line 948, in main() File "run-tests.py", line 943, in main runtests(options, tests) File "run-tests.py", line 791, in runtests ret = runone(options, test, skips, fails) File "run-tests.py", line 529, in runone os.remove(err) # Remove any previous output files OSError: [Errno 13] Permission denied: '/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.err' Running the tests in %b/tests as root by prefixing the tests command with sudo (run from an admin $USER): # Test test-backwards-remove # Running "/sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove" # Ret was: 0 ERROR: /sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove output changed --- /sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.out +++ /sw/src/fink.build/mercurial-py26-1.5-1/mercurial-1.5/tests/test-backwards-remove.err @@ -1,3 +1,5 @@ +.hg a 0 files updated, 0 files merged, 1 files removed, 0 files unresolved +.hg a ... (other failures with same result: "output changed") ... # Ran 368 tests, 34 skipped, 14 failed. Hanspeter -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Help testing Mercurial 1.5
On Mar 23, 2010, at 0:06, Hanspeter Niederstrasser wrote: > It's a permissions issue. > > All the following examples are with Fink's mercurial-py26-1.5-1 > installed and using this command: /sw/bin/python run-tests.py > --with-hg=/sw/bin/hg -v > > > Running the tests as an admin $USER from a clean source extract in > /src/mercurial-1.5: > # Ran 368 tests, 34 skipped, 0 failed. Does this seem enough to accept the package? I'll try to fix the TestPhase script in a later revision, but I'd like to get this update out there, since I've received several requests to provide a newer version. Pepe -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Help testing Mercurial 1.5
On 3/23/10 10:56 AM, Pepe Barbe wrote: > > > On Mar 23, 2010, at 0:06, Hanspeter Niederstrasser > wrote: > >> It's a permissions issue. >> >> All the following examples are with Fink's mercurial-py26-1.5-1 >> installed and using this command: /sw/bin/python run-tests.py >> --with-hg=/sw/bin/hg -v >> >> >> Running the tests as an admin $USER from a clean source extract in >> /src/mercurial-1.5: >> # Ran 368 tests, 34 skipped, 0 failed. > > Does this seem enough to accept the package? I think so. I can check the current version in, perhaps with an added DescPort field that says << Automated tests currently fail when run as root. To manually run the tests after installing mercurial, run the following command inside the tests directory of a freshly extracted mercurial tarball: %p/bin/python run-tests.py --with-hg=%p/bin/hg -v Alternatively, install mercurial using the --build-as-nobody flag. << Also, you can check in TestScript for "id -u" and not run the tests if it equals 0. Hanspeter -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] Help testing Mercurial 1.5
On Mar 23, 2010, at 10:22 AM, Hanspeter Niederstrasser wrote: > I think so. I can check the current version in, perhaps with an added > DescPort field that says > > << > Automated tests currently fail when run as root. To manually run the > tests after installing mercurial, run the following command inside the > tests directory of a freshly extracted mercurial tarball: > > %p/bin/python run-tests.py --with-hg=%p/bin/hg -v > > Alternatively, install mercurial using the --build-as-nobody flag. > << Sounds good to me. Pepe -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel