Whoops—forgot to CC the list.
> 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.
Hmm, it should still:
vagrant@precise32:~/dxr/tests/json-test$ make
# Link paths in test.config.in to current working directory
# replaces PWD with `pwd` and produces test.config
cat test.config.in | sed -e 's?PWD?'`pwd`'?g' > test.config
...
# Launch test server at port 8000:
# ../../bin/dxr-serve.py target
> ======================================================================
> 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'
Hmm, there should indeed be a config.py in json-test/target. Did the rest of
the stuff get made?
target
config.py
jinja_dxr_cache
trees
HelloWorld
index.html
Can you list me the contents of the target dir, assuming it got made at all?
Perhaps your dxr-build script didn't work very well.
Erik
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis