SConscript (13458:6ccb61e12fc7) SConscript (13512:fa58ac6ea3e8)
1# Copyright 2018 Google, Inc.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are
5# met: redistributions of source code must retain the above copyright
6# notice, this list of conditions and the following disclaimer;
7# redistributions in binary form must reproduce the above copyright
8# notice, this list of conditions and the following disclaimer in the

--- 156 unchanged lines hidden (view full) ---

165
166 if 'DEPS' in names:
167 test.deps = get_entries('DEPS')
168
169 subdir_src = Dir('.').srcdir.Dir(subdir)
170 os.path.walk(str(subdir_src), visitor, None)
171
172 scan_dir_for_tests('systemc')
1# Copyright 2018 Google, Inc.
2#
3# Redistribution and use in source and binary forms, with or without
4# modification, are permitted provided that the following conditions are
5# met: redistributions of source code must retain the above copyright
6# notice, this list of conditions and the following disclaimer;
7# redistributions in binary form must reproduce the above copyright
8# notice, this list of conditions and the following disclaimer in the

--- 156 unchanged lines hidden (view full) ---

165
166 if 'DEPS' in names:
167 test.deps = get_entries('DEPS')
168
169 subdir_src = Dir('.').srcdir.Dir(subdir)
170 os.path.walk(str(subdir_src), visitor, None)
171
172 scan_dir_for_tests('systemc')
173 scan_dir_for_tests('tlm')
173
174
175 def build_tests_json(target, source, env):
176 data = { test.target : test.properties() for test in tests }
177 with open(str(target[0]), "w") as tests_json:
178 json.dump(data, tests_json)
179
180 AlwaysBuild(env.Command(File('tests.json'), None,
181 MakeAction(build_tests_json, Transform("TESTJSON"))))
182
183
184 for test in tests:
185 SystemCTestBin(test)
174
175
176 def build_tests_json(target, source, env):
177 data = { test.target : test.properties() for test in tests }
178 with open(str(target[0]), "w") as tests_json:
179 json.dump(data, tests_json)
180
181 AlwaysBuild(env.Command(File('tests.json'), None,
182 MakeAction(build_tests_json, Transform("TESTJSON"))))
183
184
185 for test in tests:
186 SystemCTestBin(test)