.autotest (testing)

git-svn-id: svn://ultimatepp.org/upp/trunk@7115 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-03-31 17:42:31 +00:00
parent 7db1a85130
commit cb0d4430dd
13 changed files with 107 additions and 0 deletions

8
autotest/Long/Long.cpp Normal file
View file

@ -0,0 +1,8 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
Sleep(20000);
}

11
autotest/Long/Long.upp Normal file
View file

@ -0,0 +1,11 @@
description "This takes 20 second, which would result in timeout, if not ##WAIT: 1\377";
uses
Core;
file
Long.cpp;
mainconfig
"" = "SSE2";

4
autotest/Long/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _Long_icpp_init_stub
#define _Long_icpp_init_stub
#include "Core/init"
#endif

8
autotest/error/error.cpp Normal file
View file

@ -0,0 +1,8 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
this is error;
}

9
autotest/error/error.upp Normal file
View file

@ -0,0 +1,9 @@
uses
Core;
file
error.cpp;
mainconfig
"" = "SSE2";

View file

@ -0,0 +1,8 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
ASSERT(0);
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
fail_assert.cpp;
mainconfig
"" = "SSE2";

View file

@ -0,0 +1,8 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
__BREAK__;
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
fail_crash.cpp;
mainconfig
"" = "SSE2";

7
autotest/ok/ok.cpp Normal file
View file

@ -0,0 +1,7 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
}

9
autotest/ok/ok.upp Normal file
View file

@ -0,0 +1,9 @@
uses
Core;
file
ok.cpp;
mainconfig
"" = "SSE2";

View file

@ -0,0 +1,8 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
for(;;) {}
}

View file

@ -0,0 +1,9 @@
uses
Core;
file
timeout.cpp;
mainconfig
"" = "SSE2";