linux/drivers/comedi/drivers/tests/comedi_example_test.c

// SPDX-License-Identifier: GPL-2.0+
/*
 *  comedi/drivers/tests/comedi_example_test.c
 *  Example set of unit tests.
 *
 *  COMEDI - Linux Control and Measurement Device Interface
 *  Copyright (C) 2016 Spencer E. Olson <[email protected]>
 *
 *  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 Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 General Public License for more details.
 */

#include <linux/module.h>

#include "unittest.h"

/* *** BEGIN fake board data *** */
struct comedi_device {};

static struct comedi_device dev =;

/* *** END fake board data *** */

/* *** BEGIN fake data init *** */
static void init_fake(void)
{}

/* *** END fake data init *** */

static void test0(void)
{}

/* **** BEGIN simple module entry/exit functions **** */
static int __init unittest_enter(void)
{}

static void __exit unittest_exit(void) {}

module_init();
module_exit(unittest_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
/* **** END simple module entry/exit functions **** */