| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
| 4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
| 5 | 5 |
| 6 import os | 6 import os |
| 7 | 7 |
| 8 Import('env') | 8 Import('env') |
| 9 | 9 |
| 10 # To get generated include files. | 10 # To get generated include files. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 'ppp_rpc_client.cc', | 146 'ppp_rpc_client.cc', |
| 147 'upcall_server.cc', | 147 'upcall_server.cc', |
| 148 common_obj,]) | 148 common_obj,]) |
| 149 | 149 |
| 150 # Do a recursive diff of all files found in the first source directory against | 150 # Do a recursive diff of all files found in the first source directory against |
| 151 # all the checked in versions of the files | 151 # all the checked in versions of the files |
| 152 node = env.CommandTest( | 152 node = env.CommandTest( |
| 153 'srpc_diff.out', | 153 'srpc_diff.out', |
| 154 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', | 154 command=['${PYTHON}', '${SOURCE_ROOT}/native_client/tools/diff.py', '-arv', |
| 155 '${TARGET_ROOT}/srpcgen/src', | 155 '${TARGET_ROOT}/srpcgen/src', |
| 156 '${SOURCE_ROOT}/native_client/src']) | 156 '${SOURCE_ROOT}/ppapi/native_client/src']) |
| 157 | 157 |
| 158 # Add a dependency on the 'srpcdif' alias for the previous command | 158 # Add a dependency on the 'srpcdif' alias for the previous command |
| 159 env.Depends(node, Alias('srpcdif')) | 159 env.Depends(node, Alias('srpcdif')) |
| 160 | 160 |
| 161 # Create an alias for the command and add it to the standard small test. | 161 # Create an alias for the command and add it to the standard small test. |
| 162 # This test verifies that the checked in SRPC generated files are | 162 # This test verifies that the checked in SRPC generated files are |
| 163 # actually up to date. We ignore ARM which generates false negatives. | 163 # actually up to date. We ignore ARM which generates false negatives. |
| 164 # This is okay, since all try/builds should reproduce the same result | 164 # This is okay, since all try/builds should reproduce the same result |
| 165 # this is a check on what is in source control, and generated files are | 165 # this is a check on what is in source control, and generated files are |
| 166 # platform independent. | 166 # platform independent. |
| 167 if not env.Bit('target_arm'): | 167 if not env.Bit('target_arm'): |
| 168 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') | 168 env.AddNodeToTestSuite(node, ['small_tests'], 'run_srpcgen_test') |
| OLD | NEW |