/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
#define BASE_ROM
#define	E32TESTS_INCLUDED

// The base NAND tests assume ROFS is mounted on J: and the user area on I:
// This must be before header.iby

#if defined(_NAND2)
#define _NANDTEST2
#undef _NAND2
#else
#if defined(_NAND)
#undef _NAND
#endif
#define _NANDTEST
#endif

#include <rom\##VARIANT##\header.iby>
#undef MULTIPLEROFS

files=

#ifdef PAGED_ROM
data=##BASEPATH##kernelhwsrv\kernel\eka\rombuild\gentestpaged.txt			Test\test_paged.cpp paging_unmovable
#endif

#include <rom\##VARIANT##\kernel.iby>
#include "user.iby"
#include <rom\hal\hal.iby>
#include <rom\f32\f32.iby>

// tests
#include <rom##E32PATH##\kernelhwsrv\kerneltest\e32test\group\##MAIN##test.iby>
#ifndef VARIANT_PATH
#include <rom##E32PATH##\##VARIANT##\test\##MAIN##test.iby>
#else
#define inc(a,b,c) <a\\b\\c>
#include inc(rom##E32PATH##,VARIANT_PATH,\test\##MAIN##test.iby)
#endif
#include "..\..\..\kerneltest\f32test\loader\gen\ldrtest.iby"
data=EPOCROOT##epoc32\release\##MAIN##\##BUILD##\t_ldrtst.exe			sys\bin\t_ldrtst.exe


data=##BASEPATH##kernelhwsrv\kernel\eka\rombuild\gentestpaged.txt			Test\test_paged1.cpp paging_unmovable

// scripts
#if !defined(MANUALROM)
data=EPOCROOT##epoc32\rom\##VARIANT##\mmctest_test_autoexec_e32test.bat			\autoexec.bat
#endif
data=EPOCROOT##epoc32\rom\##VARIANT##\mmcdemandpaginge32tests.bat				\test\mmcdemandpaginge32tests.bat
data=EPOCROOT##epoc32\rom\##VARIANT##\mmcdemandpagingf32tests.bat				\test\mmcdemandpagingf32tests.bat

#ifdef PAGED_ROM
#ifdef INST_ARMV5
#include "##BASEPATH##f32test\demandpaging\t_pagestress_rom.iby"
#endif
#endif

#ifdef WITH_COMP
#ifdef PAGED_ROM
data=##BASEPATH##kernelhwsrv\kernel\eka\rombuild\gentestnonpaged.txt			Test\test_unpaged.cpp	unpaged paging_unmovable
#endif

rofsname = dir.rofs
rofssize = 0x500000

#ifdef PAGED_ROM
PAGINGOVERRIDE DEFAULTPAGED
#endif

REM Round the size up/down to the nearest block size
REM This will enable any ROFS extensions to be found
REM BlockSize is typically 16K for most small-block NAND chips
REM BlockSize is typically 128K for most large-block NAND chips
#if defined SMALL_BLOCK
autosize = 0x4000
#elif defined(LARGE_BLOCK)
autosize = 0x20000
#endif
#endif  //WITH_COMP

data=EPOCROOT##epoc32\Release\##MAIN##\##BUILD##\d_exc.exe			\sys\bin\d_exc.exe
data=EPOCROOT##epoc32\Release\##KMAIN##\##BUILD##\minkda.ldd			\sys\bin\minkda.ldd


#ifndef WITH_COMP
#ifdef PAGED_ROM
data=##BASEPATH##kernelhwsrv\kernel\eka\rombuild\gentestnonpaged.txt			Test\test_unpaged.cpp	unpaged paging_unmovable
#endif
#endif

// rom.pl will put this in a rofs image
#include <rom\rofstest\dir.oby>

