On 19/03/13 16:19, Alan Robertson wrote: > On 03/19/2013 01:16 AM, Jamie Nguyen wrote: >> Running testify on Fedora 18: >> >> $ cd cma/ >> $ testify tests >> The CMA read 5 packets. >> The CMA wrote 25 packets. >> .............................fail: tests.cclass_wrappers_test >> pyNetAddrTest.test_ipv6_str >> Traceback (most recent call last): >> File "./tests/cclass_wrappers_test.py", line 255, in tearDown >> assert_no_dangling_Cclasses() >> File "./tests/cclass_wrappers_test.py", line 49, in >> assert_no_dangling_Cclasses >> raise AssertionError, "Dangling C-class objects - %d still around" % >> count >> AssertionError: Dangling C-class objects - 1 still around >> >> Ffail: tests.cclass_wrappers_test pyNetAddrTest.test_ipv6_strinit >> Traceback (most recent call last): >> File "./tests/cclass_wrappers_test.py", line 237, in test_ipv6_strinit >> self.assertEqual(str(ipv6), '[::ffff:255.255.255.255]:65535') >> AssertionError: '[::ffff:-1.-1.-1.-1]:65535' != >> '[::ffff:255.255.255.255]:65535' >> >> F..fail: tests.cclass_wrappers_test pyNetAddrTest.test_toIPv6 >> Traceback (most recent call last): >> File "./tests/cclass_wrappers_test.py", line 169, in test_toIPv6 >> self.assertEqual(str(ipv4),ipstr) >> AssertionError: '-43.-118.100.-52:57225' != '213.138.100.204:57225' > This should be fixed now. By the way, in it's infinite wisdom, recent > versions of Glib decided that by default you didn't really want debug > messages that your code prints, unless you set the environment variable > G_MESSAGES_DEBUG to "all". Silly me, if I don't want a message, I don't > print it...
Just ran the tests again on Fedora 18 and got these pleasing messages: The CMA read 5 packets. The CMA wrote 25 packets. ............................................ PASSED. 45 tests / 15 cases: 45 passed, 0 failed. (Total test time 2.54s) I just pushed some packages based on hg:80cec7a7e666. It now includes assimilation-cma-tests package which shoves some files in /usr/libexec/assimilation-cma so that it's possible to do: # yum --enablerepo=jamielinux-assimilation install assimilation-cma-tests $ cd /usr/libexec/assimilation-cma/cma $ testify -v tests $ cd /usr/libexec/assimilation-cma/testcode $ ./grind.sh I ran grind.sh on both CentOS 6 and Fedora 18 and, if it's useful, here are the outputs (with G_MESSAGES_DEBUG=all): https://jamielinux.com/pub/grind-epel-6.txt https://jamielinux.com/pub/grind-fedora-18.txt Kind regards, -- Jamie Nguyen _______________________________________________ Assimilation mailing list - Discovery-Driven Monitoring [email protected] http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation http://assimmon.org/
