VirtualBox

source: vbox/trunk/src/VBox/Storage/testcase/Makefile.kmk@ 36634

Last change on this file since 36634 was 35596, checked in by vboxsync, 14 years ago

Storage/tstVDIo: Basic working testcase for async and sync I/O

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1# $Id: Makefile.kmk 35596 2011-01-17 22:00:13Z vboxsync $
2## @file
3# Sub-Makefile for the storage device & driver testcases.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# vditool - useful too for manipulating VDIs, but now pretty obsolete and
23# probably will go away soon. Testcase only now.
24#
25ifdef VBOX_WITH_TESTCASES
26 PROGRAMS += vditool
27 vditool_TEMPLATE = VBOXR3TSTEXE
28 vditool_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
29 vditool_SOURCES = vditool.cpp
30endif
31
32#
33# Basic testcases for the VD code.
34#
35ifdef VBOX_WITH_TESTCASES
36 PROGRAMS += tstVD tstVD-2 tstVDCopy tstVDSnap tstVDShareable vbox-img tstVDIo
37 tstVD_TEMPLATE = VBOXR3TSTEXE
38 tstVD-2_TEMPLATE = VBOXR3TSTEXE
39 tstVDCopy_TEMPLATE = VBOXR3TSTEXE
40 tstVDSnap_TEMPLATE = VBOXR3TSTEXE
41 tstVDShareable_TEMPLATE = VBOXR3TSTEXE
42 tstVDIo_TEMPLATE = VBOXR3TSTEXE
43 vbox-img_TEMPLATE = VBOXR3STATIC
44 tstVD_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
45 tstVD-2_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
46 tstVDCopy_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
47 tstVDSnap_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
48 tstVDShareable_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
49 tstVDSetUuid_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
50 tstVDIo_LIBS = $(LIB_DDU) $(LIB_RUNTIME)
51 vbox-img_LIBS = \
52 $(VBOX_LIB_RUNTIME_STATIC)
53 if1of ($(KBUILD_TARGET),os2 win)
54 vbox-img_LIBS += \
55 $(PATH_LIB)/VBox-liblzf-static$(VBOX_SUFF_LIB) \
56 $(PATH_LIB)/VBox-zlib-static$(VBOX_SUFF_LIB)
57 else
58 vbox-img_LIBS += \
59 $(PATH_LIB)/VBox-liblzf$(VBOX_SUFF_LIB) \
60 $(SDK_VBOX_ZLIB_LIBS)
61 endif
62 ifeq ($(KBUILD_TARGET),linux)
63 vbox-img_LIBS += crypt
64 else if1of ($(KBUILD_TARGET),darwin freebsd)
65 vbox-img_LIBS += iconv
66 else ifeq ($(KBUILD_TARGET),win)
67 vbox-img_SDKS.win = VBOX_NTDLL
68 endif
69 tstVD_SOURCES = tstVD.cpp
70 tstVD-2_SOURCES = tstVD-2.cpp
71 tstVDCopy_SOURCES = tstVDCopy.cpp
72 tstVDSnap_SOURCES = tstVDSnap.cpp
73 tstVDShareable_SOURCES = tstVDShareable.cpp
74
75 vbox-img_SOURCES = \
76 vbox-img.cpp \
77 $(VBOX_PATH_STORAGE_SRC)/VD.cpp \
78 $(VBOX_PATH_STORAGE_SRC)/VDI.cpp \
79 $(VBOX_PATH_STORAGE_SRC)/VMDK.cpp \
80 $(VBOX_PATH_STORAGE_SRC)/VHD.cpp \
81 $(VBOX_PATH_STORAGE_SRC)/DMG.cpp \
82 $(VBOX_PATH_STORAGE_SRC)/Parallels.cpp \
83 $(VBOX_PATH_STORAGE_SRC)/ISCSI.cpp \
84 $(VBOX_PATH_STORAGE_SRC)/RAW.cpp \
85 $(VBOX_PATH_STORAGE_SRC)/VCICache.cpp
86 vbox-img_DEFS += IN_VBOXDDU IN_VBOXDDU_STATIC VBOX_HDD_NO_DYNAMIC_BACKENDS IN_RT_R3
87
88 tstVDIo_SOURCES = tstVDIo.cpp \
89 VDIoBackendMem.cpp \
90 VDMemDisk.cpp \
91 VDIoRnd.cpp
92endif
93
94include $(KBUILD_PATH)/subfooter.kmk
95
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