-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Document how to run the test suite #39
Comments
👍 A quick workaround to test an individual package on a Unix system:
This should give you an idea how to test a single package and maybe some obvious dependencies. |
@lrineau i did. i guess i was expecting more of a test suite rather than having to manually run each of the test programs. i was able to run them but without knowing the expected output it wasn't obvious if they were doing what they were supposed to do. i ended up just making sure the affected ones would compile. |
Actually the CGAL testsuite runs every night from a release tarball. The set of scripts, see in |
@drewish The few commands I gave you should be able to compile, run and confirm the correctness of the tests without you needing to know that. In general, a test will be considered correct based on the process exit code and if it prints the word |
Good to know I should just be looking for errors. I tried these instructions on another computer (using the master branch) and ended up getting some errors when trying to test the Straight_skeleton_2 tests or examples:
I can include more of the compiler output if that's helpful. |
No, the output is sufficient. That is one of the peculiarities of our
No rinse and repeat the testing process. You probably need to remove the |
I wonder why (Note for @bo0ts: It seems that GitHub does not format using Markdown when the answer is send by mail.) |
I think the current behavior is OK. If you |
As the CGAL testsuite is on our repository, we could enforce that |
IMO too much effort to actually have a test for this and not enough returns. In examples it also would be misleading for users, because they would believe they always have to include |
In example that is easy: most if not all CGAL headers also include CGAL/config.h first. Philipp Moeller notifications@github.com a écrit :
|
Which brings us back to the problem that
will be broken, because it now depends on the include order and boost.assert is going to behave differently from the CGAL assertions. The current practice is OK IMO, maybe we should add the options to enable assertions in automated builds, but this is anoher issue. Anyway, this is getting to far of topic. Let's continue this discussion elsewhere if you think it is necessary. |
The current behavior is completely OK. I was trying to find out if we can improve it, to avoid what Andrew has reported at #39 (comment). But it that would create more confusion, let's forget that proposal. |
Having a "check" Makefile target could be useful for many (it's a standard GNU target). |
@strk Yes, but currently this is far from feasible as it would entail creating a release and running the testsuite on it. We are trying to get their though. |
See #504 |
This is CGAL#39 on codebase
I'm working on my first contribution and managed to get a simple test case built to demonstrate the problem. I'm going to create a branch that fixes the issue but I'd like to run the test suite to ensure there are no regressions. After reading the various
INSTALL.md
files it's not clear to me how to build and run the test.The text was updated successfully, but these errors were encountered: