Hi again,
I now have a few environments set up to hack on Pymake.
I'm seeing two test failures on both Windows/MinGW and Ubuntu 12.04
(below). It would be nice if I could find a way to sort these, so I
know I'm starting from a clean slate.
1) datatests.py. This appears to have been broken by a refactoring,
there no longer is an LRUCache class in pymake.util, but there is a
MostUsedCache. I'm not sure I can reconstruct a valid test case from
the current code, should I remove this test for now?
pymake$ python tests/datatests.py
..........E..
======================================================================
ERROR: runTest (__main__.LRUTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/datatests.py", line 63, in runTest
c = pymake.util.LRUCache(3, self.spaceFunc, lambda k, v: k % 2)
AttributeError: 'module' object has no attribute 'LRUCache'
----------------------------------------------------------------------
Ran 13 tests in 0.001s
FAILED (errors=1)
pymake$
2) empty-rule.mk. I'm not 100% sure what's going wrong here, but it
appears that make prints its recipes and since TEST-FAIL is in there,
it's picked up by the test runner and failure ensues. Not sure why
this doesn't apply to other tests or how this could've ever worked.
Help?
pymake$ python tests/runtests.py --gmake=make
...
empty-command-semicolon.mk PASS PASS
make: Entering directory `/home/kimgr/pymake/_mktests'
touch header
touch cpp
if [ -e obj ]; then echo TEST-FAIL; fi;
touch obj
make -f /home/kimgr/pymake/tests/empty-rule.mk obj
make[1]: Entering directory `/home/kimgr/pymake/_mktests'
make[1]: `obj' is up to date.
make[1]: Leaving directory `/home/kimgr/pymake/_mktests'
make: Leaving directory `/home/kimgr/pymake/_mktests'
make.py[0]: Entering directory '/home/kimgr/pymake/_mktests'
/home/kimgr/pymake/tests/empty-rule.mk:11:0$ touch header
/home/kimgr/pymake/tests/empty-rule.mk:12:0$ touch cpp
/home/kimgr/pymake/tests/empty-rule.mk:5:0$ if [ -e obj ]; then echo
TEST-FAIL; fi;
/home/kimgr/pymake/tests/empty-rule.mk:6:0$ touch obj
make.py[1]: Entering directory '/home/kimgr/pymake/_mktests'
make.py[1]: Leaving directory '/home/kimgr/pymake/_mktests'
make.py[0]: Leaving directory '/home/kimgr/pymake/_mktests'
empty-rule.mk FAIL (TEST-FAIL printed) FAIL
(TEST-FAIL printed)
...
pymake$
Thanks for any input,
- Kim
_______________________________________________
dev-builds mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-builds