1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- /*++
- Copyright (c) 2013 Minoca Corp.
- This file is licensed under the terms of the GNU General Public License
- version 3. Alternative licensing terms are available. Contact
- info@minocacorp.com for details. See the LICENSE file at the root of this
- project for complete licensing information.
- Module Name:
- Kernel Test
- Abstract:
- This executable implements the kernel test application, which loads a
- driver, executes kernel mode stress tests, and reports the results back
- to user mode.
- Author:
- Evan Green 5-Nov-2013
- Environment:
- User
- --*/
- from menv import application, driver;
- function build() {
- var app;
- var driverDynlibs;
- var driverSources;
- var dynlibs;
- var entries;
- var includes;
- var ktestDriver;
- var sources;
- sources = [
- "ktest.c"
- ];
- driverSources = [
- "driver/ktestdrv.c",
- "driver/tblock.c",
- "driver/tdesc.c",
- "driver/testsup.c",
- "driver/tpool.c",
- "driver/tthread.c",
- "driver/twork.c"
- ];
- dynlibs = [
- "apps/osbase:libminocaos"
- ];
- driverDynlibs = [
- "kernel:kernel"
- ];
- includes = [
- "$S/apps/libc/include",
- "$S/apps/testapps/ktest"
- ];
- app = {
- "label": "ktest",
- "inputs": sources + dynlibs,
- "orderonly": [":ktestdrv"],
- "includes": includes
- };
- ktestDriver = {
- "label": "ktestdrv",
- "inputs": driverSources + driverDynlibs,
- "includes": includes
- };
- entries = application(app);
- entries += driver(ktestDriver);
- return entries;
- }
|