blob: 9a8d7924f6a475653813df4e10443b12da61315b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/**
* \file script_tests.cpp
* \brief Automated test for the project scripting engine.
* \author Copyright (c) 2008 Jason Perkins and the Premake project
*/
#include "premake.h"
#include "testing/testing.h"
extern "C" {
#include "script/script.h"
#include "base/error.h"
}
/**
* Run the suite of project scripting engine automated tests.
* \returns OKAY if all tests completed successfully.
*/
int script_tests()
{
int z = OKAY;
if (z == OKAY) z = tests_run_suite("script");
if (z == OKAY) z = tests_run_suite("unload");
return z;
}
struct FxScript
{
Script script;
FxScript()
{
script = script_create();
}
~FxScript()
{
script_destroy(script);
error_clear();
}
};
SUITE(script)
{
TEST_FIXTURE(FxScript, ScriptCreate_ReturnsObject)
{
CHECK(script != NULL);
}
}
|