samples/board/x86_info: move to tests directory
This application's primary purpose is to provide some useful data to the author of an x86 board support package for Zephyr-- it's not a good sample. It's not a good test either, but as a test it at least prevents regressions in multiboot/ACPI builds. Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
parent
7637571871
commit
dc8b3b1094
10 changed files with 8 additions and 10 deletions
|
@ -1,6 +0,0 @@
|
|||
sample:
|
||||
description: Tool to illustrate the use of some x86-specific kernel
|
||||
interfaces, and also to provide information about x86-based platforms
|
||||
(memory map, CPU information, timer frequencies) useful when bringing
|
||||
up new boards.
|
||||
name: x86 platform information tool
|
|
@ -1,7 +1,7 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (c) 2019 Intel Corp.
|
||||
|
||||
cmake_minimum_required(VERSION 3.8.2)
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(x86_info)
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr.h>
|
||||
#include "x86_info.h"
|
||||
#include "info.h"
|
||||
|
||||
__weak void multiboot(void)
|
||||
{
|
||||
|
@ -18,12 +18,12 @@ __weak void acpi(void)
|
|||
|
||||
void main(void)
|
||||
{
|
||||
printk("\n\nx86_info: the Zephyr x86 platform information tool\n\n");
|
||||
printk("\n\ninfo: the Zephyr x86 platform information tool\n\n");
|
||||
|
||||
multiboot();
|
||||
memmap();
|
||||
acpi();
|
||||
timer();
|
||||
|
||||
printk("x86_info: complete\n");
|
||||
printk("info: complete\n");
|
||||
}
|
4
tests/arch/x86/info/testcase.yaml
Normal file
4
tests/arch/x86/info/testcase.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
tests:
|
||||
arch.x86.info:
|
||||
arch_whitelist: x86
|
||||
platform_whitelist: up_squared
|
Loading…
Add table
Add a link
Reference in a new issue