VirtualBox

source: vbox/trunk/src/VBox/Devices/testcase/Makefile.kmk@ 9152

Last change on this file since 9152 was 8991, checked in by vboxsync, 17 years ago

Configure the testing pass.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 8991 2008-05-21 00:53:53Z vboxsync $
2## @file
3# Sub-Makefile for the Devices testcases.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22DEPTH ?= ../../../..
23SUB_DEPTH = ..
24include $(KBUILD_PATH)/subheader.kmk
25
26#
27# We setup one 'other' target for executing the structure & alignment
28# validation testcases. Perhaps a bit hackish, but extremely useful.
29#
30ifeq ($(KBUILD_TARGET),$(KBUILD_HOST))
31 ifeq ($(filter-out x86.x86 amd64.amd64 x86.amd64, $(KBUILD_TARGET_ARCH).$(KBUILD_HOST_ARCH)),)
32 OTHERS += \
33 $(PATH_TARGET)/tstDeviceStructSize.run
34 endif
35endif
36
37# The normal testing pass.
38TESTING += \
39 $(PATH_TARGET)/tstDeviceStructSize.run
40
41
42#
43# Globals
44#
45VBOX_PATH_DEVICES_SRC = $(PATH_SUB_ROOT)
46
47#
48# The testcase generator.
49#
50PROGRAMS += tstDeviceStructSizeGC
51tstDeviceStructSizeGC_TEMPLATE = VBOXGCEXE
52tstDeviceStructSizeGC_DEFS =
53ifdef VBOX_WITH_USB
54tstDeviceStructSizeGC_DEFS += VBOX_WITH_USB IN_USB_GC
55endif
56ifdef VBOX_WITH_AHCI
57tstDeviceStructSizeGC_DEFS += VBOX_WITH_AHCI
58endif
59ifdef VBOX_WITH_E1000
60tstDeviceStructSizeGC_DEFS += VBOX_WITH_E1000
61endif
62tstDeviceStructSizeGC_SOURCES = tstDeviceStructSizeGC.cpp
63tstDeviceStructSizeGC_INCS = \
64 $(VBOX_PATH_DEVICES_SRC) \
65 $(VBOX_PATH_DEVICES_SRC)/Bus \
66 $(PATH_TARGET)
67
68#
69# The testcase it self.
70#
71PROGRAMS += tstDeviceStructSize
72tstDeviceStructSize_TEMPLATE = VBOXR3EXE
73tstDeviceStructSize_DEFS =
74ifdef VBOX_WITH_USB
75tstDeviceStructSize_DEFS += VBOX_WITH_USB IN_USB_GC
76endif
77ifdef VBOX_WITH_AHCI
78tstDeviceStructSize_DEFS += VBOX_WITH_AHCI
79endif
80ifdef VBOX_WITH_E1000
81tstDeviceStructSize_DEFS += VBOX_WITH_E1000
82endif
83tstDeviceStructSize_INCS = \
84 $(VBOX_PATH_DEVICES_SRC) \
85 $(VBOX_PATH_DEVICES_SRC)/Bus \
86 $(PATH_TARGET)
87tstDeviceStructSize_SOURCES = tstDeviceStructSize.cpp
88tstDeviceStructSize_LIBS.l4 = $(LIB_RUNTIME)
89tstDeviceStructSize_CLEAN = \
90 $(PATH_TARGET)/tstDeviceStructSizeGC.h \
91 $(PATH_TARGET)/tstDeviceStructSizeGC.run
92tstDeviceStructSize.cpp_DEPS = $(PATH_TARGET)/tstDeviceStructSizeGC.h
93
94#
95# Run rule for tstDeviceStructSize.
96#
97
98# 1. Dump selected structure in the VMMGC.gc debug info.
99# 2. Generate a testcase from the dump
100## future
101
102# 1&2. Manually dump selected structures and members.
103$(PATH_TARGET)/tstDeviceStructSizeGC.h: $$(INSTARGET_tstDeviceStructSizeGC)
104 $(call MSG_GENERATE,,$@)
105 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstDeviceStructSizeGC)
106
107# 3. run it.
108$(PATH_TARGET)/tstDeviceStructSize.run: $$(INSTARGET_tstDeviceStructSize)
109 $(QUIET)$(RM) -f $@
110 $^
111 $(QUIET)$(APPEND) "$@" "done"
112
113# alias for the struct test.
114run-struct-tests: $(PATH_TARGET)/tstDeviceStructSize.run
115
116
117include $(KBUILD_PATH)/subfooter.kmk
118
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette