File: SConscript.test

package info (click to toggle)
rlvm 0.14-5.2
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 17,104 kB
  • sloc: cpp: 91,574; ansic: 39,346; perl: 768; sh: 320; python: 181; makefile: 8
file content (79 lines) | stat: -rw-r--r-- 2,132 bytes parent folder | download | duplicates (6)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Main scons file

import shutil
import sys

Import('env')

########################################################## [ Root environment ]
test_env = env.Clone()
test_env.Append(
  CPPDEFINES = [
    "CASE_SENSITIVE_FILESYSTEM",
    "_THREAD_SAFE"
  ],
  CXXFLAGS = [
    "--ansi",
    "-std=c++11"
  ]
)

test_env.Append(CPPPATH = ["#/test"])

# We need to build gtest/gmock always. Downstream distributors: if you comment
# this out and add a ParseConfig, make sure to do it here in |test_env| instead
# of one of the environments that could link gtest into the main rlvm binary.
test_env.BuildSubcomponent("gtest")
test_env.BuildSubcomponent("gmock")

test_case_files = [
  "test/test_system/test_machine.cc",

  "test/notification_service_unittest.cc",
  "test/test_utils.cc",
  "test/gameexe_test.cc",
  "test/rlmachine_test.cc",
  "test/lazy_array_test.cc",
  "test/graphics_object_test.cc",
  "test/rloperation_test.cc",
  "test/regressions_test.cc",
  "test/text_system_test.cc",
  "test/expression_test.cc",
  "test/sound_system_test.cc",
  "test/text_window_test.cc",
  "test/effect_test.cc",
  "test/rlbabel_test.cc",
  "test/utilities_test.cc",
  "test/test_index_series.cc",
  "test/rect_test.cc",

  # medium tests
  "test/medium_eventloop_test.cc",
  "test/medium_msg_test.cc",
  "test/medium_object_promotion.cc",
  "test/medium_grp_test.cc",

  # large tests
  "test/large_sys_test.cc",
  "test/large_str_test.cc",
  "test/large_mem_test.cc",
  "test/large_jmp_test.cc"
]

null_system_files = [
  "test/test_system/test_event_system.cc",
  "test/test_system/test_graphics_system.cc",
  "test/test_system/test_sound_system.cc",
  "test/test_system/test_system.cc",
  "test/test_system/test_text_system.cc",
  "test/test_system/test_text_window.cc",
  "test/test_system/mock_surface.cc",
  "test/test_system/mock_text_window.cc"
]

test_env.RlvmProgram('rlvm_unittests',
                     ["test/rlvm_unittests.cc", null_system_files,
                      test_case_files],
                     use_lib_set = ["TEST"],
                     rlvm_libs = ["rlvm"])
test_env.Install('$OUTPUT_DIR', 'rlvm_unittests')