Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NRTesting failing #117

Closed
lrntct opened this issue Dec 7, 2017 · 11 comments
Closed

NRTesting failing #117

lrntct opened this issue Dec 7, 2017 · 11 comments

Comments

@lrntct
Copy link

lrntct commented Dec 7, 2017

I followed the indications from the test README and ran into the following error:

$ nrtest execute apps/swmm-5111_x64.json tests/examples/Example1.inp
Traceback (most recent call last):
  File "/home/laurent/software/swmm_nrttest/bin/nrtest", line 106, in <module>
    args.func(args)
  File "/home/laurent/software/swmm_nrttest/bin/nrtest", line 29, in execute
    ts = TestSuite.read_config(args.app, test_files, args.output)
  File "/home/laurent/software/swmm_nrttest/local/lib/python2.7/site-packages/nrtest/testsuite.py", line 46, in read_config
    t = Test.for_execution(json.load(f))
  File "/usr/lib/python2.7/json/__init__.py", line 291, in load
    **kw)
  File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Other combinations of json/inp give the same error.
OS: Ubuntu 17.10
swmm version 56fd8b2

Any idea?

@michaeltryby
Copy link

michaeltryby commented Dec 7, 2017

@lrntct you need to pass the json file describing the test to nrtest not the inp file. Like so
$ nrtest execute apps/swmm-5111_x64.json test/examples/example1.json
Also, you need to have the .exe file described in swmm-5111_x64.json on your path.

More information on nrtest can be found here.

@goanpeca
Copy link

goanpeca commented Dec 7, 2017

@michaeltryby assuming someone has a clean install os Windows/Linux with nothing on it, what would be the steps to run the test suite. Any chance we could have those steps clearly described so we can post this inside the README of SWMM?

@michaeltryby
Copy link

michaeltryby commented Dec 8, 2017

The readme is located here. It needs to be updated. I will update it and then close this issue.

@lrntct
Copy link
Author

lrntct commented Dec 8, 2017

@michaeltryby My bad, I read the readme too fast.
However, the test is still failing:

$ nrtest execute apps/swmm-5111_x64.json tests/examples/example1.json 
ERROR: Unable to find executable: "C:/Users/mtryby/bin/swmm5111_x64.exe"

@goanpeca
Copy link

goanpeca commented Dec 8, 2017

Well the thing is that nrtest only runs against windows executables? so on linux or OSX we can't run nrtest in the current setup?

So we could maybe save the binary outputs ran on windows in another repository and use those as input for nrtest ?

@bemcdonnell
Copy link
Member

Platform agnostic. Michael currently has this implemented in Travis on SWMM and EPANET.

@goanpeca
Copy link

goanpeca commented Dec 8, 2017

Ok, then we really need to update those instructions

@bemcdonnell
Copy link
Member

@michaeltryby, I’m really excited about your nrtest contributions to this project! :-)

@goanpeca
Copy link

goanpeca commented Dec 8, 2017

@michaeltryby lets close after merge :-)

@goanpeca goanpeca reopened this Dec 9, 2017
@goanpeca
Copy link

goanpeca commented Dec 9, 2017

This is still an issue. See #121

@michaeltryby
Copy link

Nrtest is documented, there are SWMM instructions, there is a working example of it running under Travis CI.

karosc pushed a commit that referenced this issue Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants