mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
43 lines
858 B
C
43 lines
858 B
C
/*
|
|
* Copyright (C) 2018 Freie Universität Berlin
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
|
|
/**
|
|
* @ingroup tests
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Test the EXTERNAL_MODULE_DIRS feature
|
|
*
|
|
* @author Gaëtan Harter <gaetan.harter@fu-berlin.de>
|
|
*
|
|
* @}
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "external_module.h"
|
|
|
|
#ifdef MODULE_PRNG_TINYMT32
|
|
#error "Error: it included the default dependency"
|
|
#endif
|
|
|
|
#ifndef MODULE_PRNG_XORSHIFT
|
|
#error "Dependency not included"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
printf("Message: %s\n", external_module_message);
|
|
if (!external_module_initialized) {
|
|
puts("External module has not been initialized.");
|
|
return 1;
|
|
}
|
|
puts("Initialization worked!");
|
|
return 0;
|
|
}
|