Git Product home page Git Product logo

Comments (9)

pengfei666 avatar pengfei666 commented on April 29, 2024 1

The tests also fail in Ubuntu.
Fusion Warning: XML file does not exist: fusion/testdata/dbroot/vector1/config.xml
Fusion Warning: Unable to read fusion/testdata/dbroot/vector1/config.xml

These failures are because of the relative path.

Actually, the path should be ../../fusion/testdata/dbroot/vector1/config.xml

from earthenterprise.

andreisel avatar andreisel commented on April 29, 2024

Yes, the issue is that in tests we have a path relative to src.
I believe it should work if you run from src directory:
./bin/tests/dbroot_generator_tests
./bin/tests/RunAllTests.pl

from earthenterprise.

tst-ppenev avatar tst-ppenev commented on April 29, 2024

@tst-ccamp: I didn't seem to get the error when running from <src>, as @andreisel mentioned. Can you clarify how this is expected to be run. (Expected vs. observed behavior.) I am a little unclear about what is being fixed.

Is RunAllTests.pl supposed to be run after an installation, or during a build? Is it run from scons? (I only see the copy command.)

from earthenterprise.

tst-ccamp avatar tst-ccamp commented on April 29, 2024

@tst-ppenev This is how you run the unit tests. You can run them from the src directory or from within NATIVE-XXX-x86_64/bin/tests. It isn't obvious that you are supposed to run it from the src directory and as @bradh pointed out on the pull request if you run the tests from the src directory it will create temporary files in your git repo which isn't a good practice. It's much better if all of it was run within the tests directory.

from earthenterprise.

tst-ppenev avatar tst-ppenev commented on April 29, 2024

@tst-ccamp: Is a developer supposed to run this after building? Or after installing? Should there be a scons target for running these tests?

from earthenterprise.

bradh avatar bradh commented on April 29, 2024

I see unit tests as an after-build and before-install step.

Ideally the tests would be run on every build, but (for me) they can be a bit slow, so a separate scons target would make sense. Should that be on a new ticket?

from earthenterprise.

tst-ppenev avatar tst-ppenev commented on April 29, 2024

Yeah. You can also pass parameters to scons builds, like optimize. We could add one for running unit tests.

from earthenterprise.

irteza123 avatar irteza123 commented on April 29, 2024

Guys. i am facing same issue on Ubuntu 14.04. what can i do ??

from earthenterprise.

bradh avatar bradh commented on April 29, 2024

@irteza123 As I pointed out on your other ticket, it is being worked. You can test the pull request if you're comfortable with git (see #77 for the branch), or you can wait for it to be merged.

Other than that, all help is appreciated.

from earthenterprise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.