/************************************************************************

検査関数の雛形

 *************************************************************************/
#include <string.h>
#include "config.h"
#include "TestResult.h"
#include "TestSample.h"

using namespace uji::sys;
using namespace uji::seq;

/************************************************************************

 ************************************************************************/

bool Test1(TestResult &Result)
{
	NN_LOG("1");
	nn::os::Thread::Sleep( nn::fnd::TimeSpan::FromMilliSeconds(1000) );
    strcpy( Result.m_String, "TEST1 LINE1\n" );
    strcat( Result.m_String, "LINE2\n" );
    strcat( Result.m_String, "LINE3\n" );
    strcat( Result.m_String, "LINE4\n" );
    strcat( Result.m_String, "LINE5\n" );
    strcat( Result.m_String, "LINE6\n" );
    strcat( Result.m_String, "LINE7\n" );
    strcat( Result.m_String, "LINE8\n" );
    strcat( Result.m_String, "LINE9\n" );
    strcat( Result.m_String, "LINE10\n" );
    strcat( Result.m_String, "LINE11\n" );
    strcat( Result.m_String, "LINE12\n" );
    strcat( Result.m_String, "LINE13\n" );
	return true;
}

bool Test2(TestResult &Result)
{
	NN_LOG("2");
	nn::os::Thread::Sleep( nn::fnd::TimeSpan::FromMilliSeconds(1000) );
    strcpy( Result.m_String, "TEST2_STRING" );
    return true;
}

bool Test3(TestResult &Result)
{
	Config config;

	NN_LOG("3");
	nn::os::Thread::Sleep( nn::fnd::TimeSpan::FromMilliSeconds(1000) );
    strcpy( Result.m_String, "TEST3_STRING" );
	return ( config.GetAlternative().DebugParam0==0 )?true:false;
}

bool Test4(TestResult &Result)
{
	NN_LOG("4");
	nn::os::Thread::Sleep( nn::fnd::TimeSpan::FromMilliSeconds(1000) );
    strcpy( Result.m_String, "TEST4_STRING" );
    return true;
}


