Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
13c2e75f
Commit
13c2e75f
authored
Nov 10, 2010
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccanlint: clarify different -v levels.
parent
90479c5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
tools/ccanlint/ccanlint.c
tools/ccanlint/ccanlint.c
+4
-3
tools/ccanlint/ccanlint.h
tools/ccanlint/ccanlint.h
+7
-3
No files found.
tools/ccanlint/ccanlint.c
View file @
13c2e75f
/*
/*
* ccanlint: assorted checks and advice for a ccan package
* ccanlint: assorted checks and advice for a ccan package
* Copyright (C) 2008 Rusty Russell, Idris Soule
* Copyright (C) 2008 Rusty Russell, Idris Soule
* Copyright (C) 2010 Rusty Russell, Idris Soule
*
*
* This program is free software; you can redistribute it and/or modify it
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* under the terms of the GNU General Public License as published by the Free
...
@@ -409,7 +410,7 @@ int main(int argc, char *argv[])
...
@@ -409,7 +410,7 @@ int main(int argc, char *argv[])
opt_register_noarg
(
"--summary|-s"
,
opt_set_bool
,
&
summary
,
opt_register_noarg
(
"--summary|-s"
,
opt_set_bool
,
&
summary
,
"simply give one line summary"
);
"simply give one line summary"
);
opt_register_noarg
(
"--verbose|-v"
,
opt_inc_intval
,
&
verbose
,
opt_register_noarg
(
"--verbose|-v"
,
opt_inc_intval
,
&
verbose
,
"verbose mode (
can specify more than once
)"
);
"verbose mode (
up to -vvvv
)"
);
opt_register_arg
(
"-x|--exclude <testname>"
,
skip_test
,
NULL
,
NULL
,
opt_register_arg
(
"-x|--exclude <testname>"
,
skip_test
,
NULL
,
NULL
,
"exclude <testname> (can be used multiple times)"
);
"exclude <testname> (can be used multiple times)"
);
opt_register_arg
(
"-t|--timeout <milleseconds>"
,
opt_set_uintval
,
opt_register_arg
(
"-t|--timeout <milleseconds>"
,
opt_set_uintval
,
...
@@ -429,9 +430,9 @@ int main(int argc, char *argv[])
...
@@ -429,9 +430,9 @@ int main(int argc, char *argv[])
dir
=
talloc_asprintf_append
(
NULL
,
"%s/%s"
,
base_dir
,
dir
);
dir
=
talloc_asprintf_append
(
NULL
,
"%s/%s"
,
base_dir
,
dir
);
if
(
dir
!=
base_dir
)
if
(
dir
!=
base_dir
)
prefix
=
talloc_append_string
(
talloc_basename
(
NULL
,
dir
),
": "
);
prefix
=
talloc_append_string
(
talloc_basename
(
NULL
,
dir
),
": "
);
if
(
verbose
>=
2
)
compile_verbose
=
true
;
if
(
verbose
>=
3
)
if
(
verbose
>=
3
)
compile_verbose
=
true
;
if
(
verbose
>=
4
)
tools_verbose
=
true
;
tools_verbose
=
true
;
/* We move into temporary directory, so gcov dumps its files there. */
/* We move into temporary directory, so gcov dumps its files there. */
...
...
tools/ccanlint/ccanlint.h
View file @
13c2e75f
...
@@ -11,9 +11,13 @@
...
@@ -11,9 +11,13 @@
#define REGISTER_TEST(name, ...)
#define REGISTER_TEST(name, ...)
/* 1 == Describe results for partial failures.
/* 0 == Describe failed tests.
2 == Describe gory details.
1 == Describe results for partial failures.
3 == Describe every action. */
2 == One line per test, plus details of failures.
Mainly for debugging ccanlint:
3 == Describe every object built.
4 == Describe every action. */
extern
int
verbose
;
extern
int
verbose
;
struct
manifest
{
struct
manifest
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment