Hi wonderful brlcad community , I was trying to run ( last step )the binaries but unfortunately I am not able to ; as mentioned Here :
"You can run the binaries you just compiled as they are in the brlcad/build/bin directory. On Windows, they can be in Debug/ or Release/ folders." but , in my case , there i cannot locate these binaries :
And please let me know where to run these commands;
bin/benchmark run
bin/mged
bin/archer
because on vs terminal i tried to run them , but I am getting some errors.
sincerely,
Omkar
Hi @Omkar Nikam, what have you done meanwhile? It looks like, you managed to clone the brlcad repository on your computer. And then? Did you build the ALL_BUILD project in Visual Studio at the end?
Sorry, how can I insert some validation tests for a feature i added in the ray tracing?
Where did you added the feature? Librt? In this case, src/librt/tests would be the right place.
Daniel Rossberg ha scritto:
Where did you added the feature? Librt? In this case, src/librt/tests would be the right place.
No, I added it in src/rt/rtsurf.c
How about adding a BRLCAD_ADD_TEST()
line to src/rt/CMakeLists.txt?
Daniel Rossberg ha scritto:
BRLCAD_ADD_TEST
How does it work?
You declare your test, e.g. the executable to run, parameters, ..., in the BRLCAD_ADD_TEST()
expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.
To run the tests, run make test
with gcc or build the RUN_TESTS CMake target in MS Visual Studio.
Daniel Rossberg ha scritto:
You declare your test, e.g. the executable to run, parameters, ..., in the
BRLCAD_ADD_TEST()
expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.To run the tests, run
make test
with gcc or build the RUN_TESTS CMake target in MS Visual Studio.
Since the function to test needs a .g file and some objects inside it, are there any files I can already use to test?
Matteo Balice said:
Daniel Rossberg ha scritto:
You declare your test, e.g. the executable to run, parameters, ..., in the
BRLCAD_ADD_TEST()
expression. See at other CMakeLists.txt for examples and at misc/CMake/BRLCAD_Test_Wrappers.cmake for its implementation.To run the tests, run
make test
with gcc or build the RUN_TESTS CMake target in MS Visual Studio.Since the function to test needs a .g file and some objects inside it, are there any files I can already use to test?
You can find it under installed dir of brlcad or say your build dir of brlcad and then navigate to share/db/
.
Looking at src/libged/tests, checking in a test.g and referring it as "${CMAKE_CURRENT_SOURCE_DIR}/test.g"
works.
Maybe, something like "${CMAKE_BINARY_DIR}/share/db/castle.g"
works too, I just could not find an example with it.
Once I have uploaded a .g file in mged, what is the terminal command to see all the objects inside it?
Matteo Balice said:
Once I have uploaded a .g file in mged, what is the terminal command to see all the objects inside it?
ls
to list the objects. Here you can take reference if you need something further MGED_Reference_Card.ind (brlcad.org)
tops
gives you the list of top level objects.
Last updated: Jan 09 2025 at 00:46 UTC