OLD | NEW |
1 # Copyright 2009, Google Inc. | 1 # Copyright 2009, Google Inc. |
2 # All rights reserved. | 2 # All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 out = 'barebones_' + basename + '.out' | 60 out = 'barebones_' + basename + '.out' |
61 test = 'run_barebones_' + basename + '_test' | 61 test = 'run_barebones_' + basename + '_test' |
62 test = 'run_barebones_' + basename + '_test' | 62 test = 'run_barebones_' + basename + '_test' |
63 env.ComponentProgram(nexe, [FAKE_STARTUP, src]) | 63 env.ComponentProgram(nexe, [FAKE_STARTUP, src]) |
64 | 64 |
65 node = env.CommandSelLdrTestNacl( | 65 node = env.CommandSelLdrTestNacl( |
66 out, | 66 out, |
67 command=[env.File(nexe)], | 67 command=[env.File(nexe)], |
68 exit_status='55',) | 68 exit_status='55',) |
69 env.AddNodeToTestSuite(node, ['small_tests', 'sel_ldr_tests'], test) | 69 env.AddNodeToTestSuite(node, ['small_tests', 'sel_ldr_tests'], test) |
| 70 |
| 71 # a test that the validador can handle an empty segment after the last |
| 72 # real segment. The gold linker produces files this |
| 73 if env['BUILD_ARCHITECTURE'] == 'arm': |
| 74 nexe = '${SCONSTRUCT_DIR}/tests/prebuilt/arm/gold-barebones_hello_world.nexe' |
| 75 node = env.CommandSelLdrTestNacl( |
| 76 'gold-barebones_hello_world.out', |
| 77 command=[env.File(nexe)], |
| 78 exit_status='55',) |
| 79 env.AddNodeToTestSuite(node, ['small_tests', 'sel_ldr_tests'], |
| 80 'run_old-barebones_hello_world_test') |
OLD | NEW |