Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
d22a4a3f
Commit
d22a4a3f
authored
11 years ago
by
René Kijewski
Browse files
Options
Downloads
Patches
Plain Diff
Add DISABLE_MODULE test
parent
e740fbc8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_disable_module/Makefile
+6
-0
6 additions, 0 deletions
tests/test_disable_module/Makefile
tests/test_disable_module/main.c
+45
-0
45 additions, 0 deletions
tests/test_disable_module/main.c
with
51 additions
and
0 deletions
tests/test_disable_module/Makefile
0 → 100644
+
6
−
0
View file @
d22a4a3f
export
PROJECT
=
test_disable_module
include
../Makefile.tests_common
DISABLE_MODULE
+=
auto_init
include
$(RIOTBASE)/Makefile.include
This diff is collapsed.
Click to expand it.
tests/test_disable_module/main.c
0 → 100644
+
45
−
0
View file @
d22a4a3f
/*
* Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief Test whether DISABLE_MODULE works.
*
* @author René Kijewski <rene.kijewski@fu-berlin.de>
*
* @}
*/
#include
<stdio.h>
int
main
(
void
)
{
puts
(
"Start."
);
# ifdef MODULE_AUTO_INIT
puts
(
"-ERROR: MODULE_AUTO_INIT present!"
);
# else
puts
(
"+OK: MODULE_AUTO_INIT absent."
);
# endif
puts
(
"Done."
);
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment