Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
angle
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
angle
Commits
c3597523
Commit
c3597523
authored
Sep 05, 2013
by
Geoff Lang
Committed by
Geoff Lang
Oct 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactored the tests.gyp file.
parent
0e435467
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
86 deletions
+103
-86
all.gyp
build/all.gyp
+1
-5
enumerate_files.py
tests/enumerate_files.py
+26
-0
tests.gyp
tests/tests.gyp
+76
-81
No files found.
build/all.gyp
View file @
c3597523
...
@@ -8,13 +8,9 @@
...
@@ -8,13 +8,9 @@
'target_name': 'all',
'target_name': 'all',
'type': 'none',
'type': 'none',
'dependencies': [
'dependencies': [
# TODO(alokp): build_ prefix should be removed from the gyp files
# as soon as we can get rid of manually-maintained sln files.
# Otherwise auto-generated sln files will overwrite/conflict the
# manually maintained ones.
'../samples/samples.gyp:*',
'../samples/samples.gyp:*',
'../src/angle.gyp:*',
'../src/angle.gyp:*',
'../tests/
build_
tests.gyp:*',
'../tests/tests.gyp:*',
],
],
},
},
],
],
...
...
tests/enumerate_files.py
0 → 100644
View file @
c3597523
import
fnmatch
import
os
import
sys
rootdirs
=
[
]
filetypes
=
[
]
foundTypesArg
=
False
for
i
in
range
(
1
,
len
(
sys
.
argv
)):
arg
=
sys
.
argv
[
i
]
if
arg
==
"-types"
:
foundTypesArg
=
True
continue
if
foundTypesArg
:
filetypes
.
append
(
arg
)
else
:
rootdirs
.
append
(
arg
)
for
rootdir
in
rootdirs
:
for
root
,
dirnames
,
filenames
in
os
.
walk
(
rootdir
):
for
file
in
filenames
:
for
type
in
filetypes
:
if
fnmatch
.
fnmatchcase
(
file
,
type
):
print
os
.
path
.
join
(
root
,
file
)
.
replace
(
"
\\
"
,
"/"
)
break
tests/
build_
tests.gyp
→
tests/tests.gyp
View file @
c3597523
...
@@ -3,87 +3,82 @@
...
@@ -3,87 +3,82 @@
# found in the LICENSE file.
# found in the LICENSE file.
{
{
'targets': [
'targets':
{
[
'target_name': 'gtest',
{
'type': 'static_library',
'target_name': 'gtest',
'include_dirs': [
'type': 'static_library',
'../third_party/googletest',
'include_dirs':
'../third_party/googletest/include',
[
],
'../third_party/googletest',
'sources': [
'../third_party/googletest/include',
'../third_party/googletest/src/gtest-all.cc',
],
],
'sources':
},
[
{
'../third_party/googletest/src/gtest-all.cc',
'target_name': 'gmock',
],
'type': 'static_library',
},
'include_dirs': [
'../third_party/googlemock',
{
'../third_party/googlemock/include',
'target_name': 'gmock',
'../third_party/googletest/include',
'type': 'static_library',
],
'include_dirs':
'sources': [
[
'../third_party/googlemock/src/gmock-all.cc',
'../third_party/googlemock',
],
'../third_party/googlemock/include',
},
'../third_party/googletest/include',
{
],
'target_name': 'preprocessor_tests',
'sources':
'type': 'executable',
[
'dependencies': [
'../third_party/googlemock/src/gmock-all.cc',
'../src/angle.gyp:preprocessor',
],
'gtest',
},
'gmock',
],
{
'include_dirs': [
'target_name': 'preprocessor_tests',
'../src/compiler/preprocessor',
'type': 'executable',
'../third_party/googletest/include',
'dependencies':
'../third_party/googlemock/include',
[
],
'../src/angle.gyp:preprocessor',
'sources': [
'gtest',
'../third_party/googlemock/src/gmock_main.cc',
'gmock',
'preprocessor_tests/char_test.cpp',
],
'preprocessor_tests/comment_test.cpp',
'include_dirs':
'preprocessor_tests/define_test.cpp',
[
'preprocessor_tests/error_test.cpp',
'../src/compiler/preprocessor',
'preprocessor_tests/extension_test.cpp',
'../third_party/googletest/include',
'preprocessor_tests/identifier_test.cpp',
'../third_party/googlemock/include',
'preprocessor_tests/if_test.cpp',
],
'preprocessor_tests/input_test.cpp',
'sources':
'preprocessor_tests/location_test.cpp',
[
'preprocessor_tests/MockDiagnostics.h',
'../third_party/googlemock/src/gmock_main.cc',
'preprocessor_tests/MockDirectiveHandler.h',
'<!@(python enumerate_files.py preprocessor_tests -types *.cpp *.h)'
'preprocessor_tests/number_test.cpp',
],
'preprocessor_tests/operator_test.cpp',
},
'preprocessor_tests/pragma_test.cpp',
'preprocessor_tests/PreprocessorTest.cpp',
{
'preprocessor_tests/PreprocessorTest.h',
'target_name': 'compiler_tests',
'preprocessor_tests/space_test.cpp',
'type': 'executable',
'preprocessor_tests/token_test.cpp',
'dependencies':
'preprocessor_tests/version_test.cpp',
[
],
'../src/angle.gyp:translator',
},
'gtest',
{
'gmock',
'target_name': 'compiler_tests',
],
'type': 'executable',
'include_dirs':
'dependencies': [
[
'../src/angle.gyp:translator',
'../include',
'gtest',
'../src',
'gmock',
'../third_party/googletest/include',
],
'../third_party/googlemock/include',
'include_dirs': [
],
'../include',
'sources':
'../src',
[
'../third_party/googletest/include',
'../third_party/googlemock/src/gmock_main.cc',
'../third_party/googlemock/include',
'<!@(python enumerate_files.py compiler_tests -types *.cpp *.h)'
],
],
'sources': [
},
'../third_party/googlemock/src/gmock_main.cc',
],
'compiler_tests/ExpressionLimit_test.cpp',
'compiler_tests/VariablePacker_test.cpp',
],
},
],
}
}
# Local Variables:
# Local Variables:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment