hughperkins / tf-coriander

OpenCL 1.2 implementation for Tensorflow
Apache License 2.0
792 stars 90 forks source link

Unit Tests #68

Open rcodddow opened 7 years ago

rcodddow commented 7 years ago

My Installation on a Mac Pro with dual AMD Fire Pro D500's pass end-to-end test. However unit test using py.test -v renders

============================================================================ ERRORS ============================================================================= ERROR collecting /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:342: in _getconftestmodules return self._path2confmods[path] E KeyError: local('/Users/robert/Library/Containers/com.apple.AddressBook.ContactsAccountsService/Data/Downloads/tf-coriander/tensorflow/stream_executor/cl/test')

During handling of the above exception, another exception occurred: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:373: in _importconftest return self._conftestpath2mod[conftestpath] E KeyError: local('/Users/robert/Library/Containers/com.apple.AddressBook.ContactsAccountsService/Data/Downloads/tf-coriander/tensorflow/stream_executor/cl/test/conftest.py')

During handling of the above exception, another exception occurred: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:372: in visit for x in Visitor(fil, rec, ignore, bf, sort).gen(self): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:421: in gen for p in self.gen(subdir): /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:410: in gen dirs = self.optsort([p for p in entries /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/py/_path/common.py:411: in if p.check(dir=1) and (rec is None or rec(p))]) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/main.py:728: in _recurse ihook = self.gethookproxy(path) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/main.py:632: in gethookproxy my_conftestmodules = pm._getconftestmodules(fspath) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:356: in _getconftestmodules mod = self._importconftest(conftestpath) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:392: in _importconftest self.consider_conftest(mod) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:415: in consider_conftest self.register(conftestmodule, name=conftestmodule.file) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/config.py:264: in register ret = super(PytestPluginManager, self).register(plugin, name) /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py:351: in register (plugin_name, plugin, self._name2plugin)) E ValueError: Plugin already registered: /Users/robert/Downloads/tf-coriander/tensorflow/stream_executor/cl/test/conftest.py=<module 'conftest' (<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x10455b080>)> E {'4333408944': <_pytest.config.PytestPluginManager object at 0x1024a92b0>, 'pytestconfig': <_pytest.config.Config object at 0x1040f6da0>, 'mark': <module '_pytest.mark' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/mark.py'>, 'main': <module '_pytest.main' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/main.py'>, 'terminal': <module '_pytest.terminal' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/terminal.py'>, 'runner': <module '_pytest.runner' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/runner.py'>, 'python': <module '_pytest.python' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/python.py'>, 'fixtures': <module '_pytest.fixtures' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/fixtures.py'>, 'debugging': <module '_pytest.debugging' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/debugging.py'>, 'unittest': <module '_pytest.unittest' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/unittest.py'>, 'capture': <module '_pytest.capture' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/capture.py'>, 'skipping': <module '_pytest.skipping' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/skipping.py'>, 'tmpdir': <module '_pytest.tmpdir' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/tmpdir.py'>, 'monkeypatch': <module '_pytest.monkeypatch' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/monkeypatch.py'>, 'recwarn': <module '_pytest.recwarn' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/recwarn.py'>, 'pastebin': <module '_pytest.pastebin' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/pastebin.py'>, 'helpconfig': <module '_pytest.helpconfig' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/helpconfig.py'>, 'nose': <module '_pytest.nose' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/nose.py'>, 'assertion': <module '_pytest.assertion' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/assertion/init.py'>, 'junitxml': <module '_pytest.junitxml' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/junitxml.py'>, 'resultlog': <module '_pytest.resultlog' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/resultlog.py'>, 'doctest': <module '_pytest.doctest' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/doctest.py'>, 'cacheprovider': <module '_pytest.cacheprovider' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/cacheprovider.py'>, 'freeze_support': <module '_pytest.freeze_support' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/freeze_support.py'>, 'setuponly': <module '_pytest.setuponly' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/setuponly.py'>, 'setupplan': <module '_pytest.setupplan' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/setupplan.py'>, 'warnings': <module '_pytest.warnings' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/_pytest/warnings.py'>, 'pep8': <module 'pytest_pep8' (<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x10455b080>)>, 'capturemanager': <_pytest.capture.CaptureManager object at 0x10561b908>, 'session': <Session 'robert'>, 'lfplugin': <_pytest.cacheprovider.LFPlugin object at 0x10566b2e8>, 'terminalreporter': <_pytest.terminal.TerminalReporter object at 0x10566b5c0>, 'funcmanage': <_pytest.fixtures.FixtureManager object at 0x105677e48>, '/Users/robert/Downloads/tf-coriander/tensorflow/stream_executor/cl/test/conftest.py': <module 'conftest' (<_pytest.assertion.rewrite.AssertionRewritingHook object at 0x10455b080>)>} !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! =================================================================== 1 error in 156.45 seconds ===================================================================