Erik Rose <[email protected]> writes:

>> Does it give you an error message?  For me, running make in that directory
>> now only builds the test outputs, it doesn't actually run the tests.  For
>> that you need to run "make test" from the top-level directory.
>
> Btw, `make` in the test dir never ran tests AFAIK: 
> https://github.com/mozilla/dxr/blob/26a7353903d3f98d5d30531a019ad4be1226e1c1/tests/json-test/makefile.

I was being sloppy (though it's useful to know how to run the test, too;
docs/tests.mkd seems unhelpful). Previously, running make in that
directory processed HelloWorld suitably and then gave a command that
allowed me to run up a test server.

>> Unfortunately the more wideranging code reorganisation seems to have
>> broken things, and I've been unable to get anything working since
>> then.
>
> Try a git pull, and then make clean && make test at the top level, and let me 
> know what goes wrong. I don't want you to have to spend time chasing this. 
> I'm in #static on irc.mozilla.org as ErikRose all day if you need me.

======================================================================
ERROR: test_called_by (tests.JsonTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/scratch/dxr-orig/tests/json-test/tests.py", line 45, in
  test_called_by
    self.assert_query_includes("called-by:main", ["hello.h"])
  File "/scratch/dxr-orig/dxr/testing.py", line 72, in
  assert_query_includes
    response = self.client().get(
  File "/scratch/dxr-orig/dxr/testing.py", line 66, in client
    app = make_app(os.path.join(self._dir, 'target'))
  File "/scratch/dxr-orig/dxr/app.py", line 31, in make_app
    app.config.from_pyfile(os.path.join(app.instance_path, 'config.py'))
  File
  
"/local/brs/.local/lib/python2.7/site-packages/Flask-0.9-py2.7.egg/flask/config.py",
  line 129, in from_pyfile
    execfile(filename, d.__dict__)
IOError: [Errno 2] Unable to load configuration file (No such file or
  directory): '/scratch/dxr-orig/tests/json-test/target/config.py'
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to