From f6c4f89a4f0b8427b6602e1bdca01e8d7d82322d Mon Sep 17 00:00:00 2001 From: N2614 Date: Wed, 27 Apr 2011 01:33:06 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AE=E6=95=B4?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@226 385bec56-5757-e545-9c3a-d8741f4650f1 --- .../sources/tests/OMakefile | 28 +--------- .../sources/tests/common/OMakefile | 20 +++++++ .../sources/tests/common/util/OMakefile | 55 +++++++++++++++++++ .../tests/{ => common/util}/test_Util.cpp | 0 4 files changed, 78 insertions(+), 25 deletions(-) create mode 100644 trunk/ConsoleDataMigration/sources/tests/common/OMakefile create mode 100644 trunk/ConsoleDataMigration/sources/tests/common/util/OMakefile rename trunk/ConsoleDataMigration/sources/tests/{ => common/util}/test_Util.cpp (100%) diff --git a/trunk/ConsoleDataMigration/sources/tests/OMakefile b/trunk/ConsoleDataMigration/sources/tests/OMakefile index ead82d1..0cbdd35 100644 --- a/trunk/ConsoleDataMigration/sources/tests/OMakefile +++ b/trunk/ConsoleDataMigration/sources/tests/OMakefile @@ -13,30 +13,8 @@ # # $Rev$ #---------------------------------------------------------------------------- -SUPPORTED_TARGETS = CTR-*.Process.MPCore.* -include $(makePlatformDefsPath tests) +if $(IsTestBuild) + .SUBDIRS: $(exist-dirs common) -INCLUDES += \ - ../common - -TEST_COMMON_SOURCES[] = - ../common/Util.cpp - -SOURCES_TEST[] = test_Util.cpp - -ROMFS_ROOT = ../common/romfiles - -TEST_ENVIRONMENT_PROCESSLIST = true -TEST_ENVIRONMENT_EMUMEM = true - -LIBS += libnn_test - -ROM_SPEC_FILE = ../ConsoleRestore/ConsoleRestore.rsf -DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/_private/RepairTool.desc - - -include $(makePlatformDefsPath build.tests) - - -tests: $(TEST_TARGETS) +DefineDefaultRules() diff --git a/trunk/ConsoleDataMigration/sources/tests/common/OMakefile b/trunk/ConsoleDataMigration/sources/tests/common/OMakefile new file mode 100644 index 0000000..616f7c7 --- /dev/null +++ b/trunk/ConsoleDataMigration/sources/tests/common/OMakefile @@ -0,0 +1,20 @@ +#!/usr/bin/env omake +#---------------------------------------------------------------------------- +# Project: Horizon +# File: OMakefile +# +# Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. +# +# These coded instructions, statements, and computer programs contain +# proprietary information of Nintendo of America Inc. and/or Nintendo +# Company Ltd., and are protected by Federal copyright law. They may +# not be disclosed to third parties or copied or duplicated in any form, +# in whole or in part, without the prior written consent of Nintendo. +# +# $Rev$ +#---------------------------------------------------------------------------- + +if $(IsTestBuild) + .SUBDIRS: $(exist-dirs util) + +DefineDefaultRules() diff --git a/trunk/ConsoleDataMigration/sources/tests/common/util/OMakefile b/trunk/ConsoleDataMigration/sources/tests/common/util/OMakefile new file mode 100644 index 0000000..825ae74 --- /dev/null +++ b/trunk/ConsoleDataMigration/sources/tests/common/util/OMakefile @@ -0,0 +1,55 @@ +#!/usr/bin/env omake +#---------------------------------------------------------------------------- +# Project: Horizon +# File: OMakefile +# +# Copyright (C)2009 Nintendo Co., Ltd. All rights reserved. +# +# These coded instructions, statements, and computer programs contain +# proprietary information of Nintendo of America Inc. and/or Nintendo +# Company Ltd., and are protected by Federal copyright law. They may +# not be disclosed to third parties or copied or duplicated in any form, +# in whole or in part, without the prior written consent of Nintendo. +# +# $Rev$ +#---------------------------------------------------------------------------- +SUPPORTED_TARGETS = CTR-*.Process.MPCore.* + +include $(makePlatformDefsPath tests) + +SAMPLED_DEMOS_COMMON_INCLUDE_DIR = $(dir $(HORIZON_ROOT)/../CTR/SampleDemos/common/include) +INCLUDES += $(SAMPLED_DEMOS_COMMON_INCLUDE_DIR) \ + ../../../common \ + + + +TEST_COMMON_SOURCES[] = + ../../../common/Util.cpp + ../../../common/HeapManager.cpp + ../../../common/SdLogger.cpp + ../../../common/LogConsole.cpp + ../../../common/CommonLogger.cpp + ../../../common/SdMountManager.cpp + ../../../common/VersionDetect.cpp + + +SOURCES_TEST[] = test_Util.cpp + +ROMFS_ROOT = ../../../common/romfiles + +TEST_ENVIRONMENT_PROCESSLIST = true +TEST_ENVIRONMENT_EMUMEM = true + +LIBS += libnn_test \ + libnn_mcu \ + libnn_ps \ + + +ROM_SPEC_FILE = ../../../ConsoleRestore/ConsoleRestore.rsf +DESCRIPTOR = $(HORIZON_ROOT)/resources/specfiles/_private/RepairTool.desc + + +include $(makePlatformDefsPath build.tests) + + +tests: $(TEST_TARGETS) diff --git a/trunk/ConsoleDataMigration/sources/tests/test_Util.cpp b/trunk/ConsoleDataMigration/sources/tests/common/util/test_Util.cpp similarity index 100% rename from trunk/ConsoleDataMigration/sources/tests/test_Util.cpp rename to trunk/ConsoleDataMigration/sources/tests/common/util/test_Util.cpp