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

Bug797 #421

Closed
wants to merge 4 commits into from
Closed

Bug797 #421

wants to merge 4 commits into from

Conversation

regit
Copy link
Contributor

@regit regit commented Jul 5, 2013

Here's an implementation for bug 797.

regit added 4 commits July 5, 2013 17:51
This patch adds a script which can be used to generate a test
on coherence of flag usage.

By adding comment in the code, it is possible to declare that we
link a flag in a structure to a specific family of constant:

For example:
	/* coccinelle: Packet:flowflags:FLOW_PKT_ */
will trigger the generation on a test which verifies that the
flowflags field in Packet structure is only used with constant
starting by FLOW_PKT_.
This patch modify build system to have make to create the
struct-flags.cocci file by running struct-flags.py.

This way 'make check' is running the test defined from source
code.
There is no reason not to update the flag directly. So do it
to avoid to crash the test.
@inliniac
Copy link
Contributor

Merged, thanks Eric.

@inliniac inliniac closed this Jul 13, 2013
@regit regit deleted the bug797 branch September 10, 2013 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants