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
0d712535
Commit
0d712535
authored
Feb 03, 2016
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ccanlint: add missing file for "info_ported" test.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
e2f18938
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
tools/ccanlint/tests/info_ported.c
tools/ccanlint/tests/info_ported.c
+42
-0
No files found.
tools/ccanlint/tests/info_ported.c
0 → 100644
View file @
0d712535
#include <tools/ccanlint/ccanlint.h>
#include <tools/tools.h>
#include <ccan/str/str.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <err.h>
#include <string.h>
#include <ctype.h>
static
const
char
*
can_build
(
struct
manifest
*
m
)
{
/* FIXME: In safe mode, we'd need complex guesstiparsing. */
if
(
safe_mode
)
return
NULL
;
if
(
get_ported
(
m
,
m
->
dir
,
true
,
get_or_compile_info
))
return
NULL
;
return
"'_info ported' says not supported"
;
}
static
void
check_info_ported
(
struct
manifest
*
m
,
unsigned
int
*
timeleft
,
struct
score
*
score
)
{
score
->
pass
=
true
;
score
->
score
=
1
;
}
struct
ccanlint
info_ported
=
{
.
key
=
"info_ported"
,
.
can_run
=
can_build
,
.
name
=
"_info indicates support for this platform"
,
.
check
=
check_info_ported
,
.
needs
=
"info_exists"
};
REGISTER_TEST
(
info_ported
);
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