mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	The idea is to split test implementations in different compilation units, but have one single place where we define the list of tests, in this case(drm_modeset_selftests.h). Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20181019105752.17741-9-alexandru-cosmin.gheorghe@arm.com
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			577 B
		
	
	
	
		
			C
		
	
	
	
	
	
// SPDX-License-Identifier: GPL-2.0
 | 
						|
/*
 | 
						|
 * Common file for modeset selftests.
 | 
						|
 */
 | 
						|
 | 
						|
#include <linux/module.h>
 | 
						|
 | 
						|
#include "test-drm_modeset_common.h"
 | 
						|
 | 
						|
#define TESTS "drm_modeset_selftests.h"
 | 
						|
#include "drm_selftest.h"
 | 
						|
 | 
						|
#include "drm_selftest.c"
 | 
						|
 | 
						|
static int __init test_drm_modeset_init(void)
 | 
						|
{
 | 
						|
	int err;
 | 
						|
 | 
						|
	err = run_selftests(selftests, ARRAY_SIZE(selftests), NULL);
 | 
						|
 | 
						|
	return err > 0 ? 0 : err;
 | 
						|
}
 | 
						|
 | 
						|
static void __exit test_drm_modeset_exit(void)
 | 
						|
{
 | 
						|
}
 | 
						|
 | 
						|
module_init(test_drm_modeset_init);
 | 
						|
module_exit(test_drm_modeset_exit);
 | 
						|
 | 
						|
MODULE_AUTHOR("Intel Corporation");
 | 
						|
MODULE_LICENSE("GPL");
 |