OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Tests of the pnacl driver. | 6 """Tests of the pnacl driver. |
7 | 7 |
8 This tests that strip works on various kinds of files. | 8 This tests that strip works on various kinds of files. |
9 """ | 9 """ |
10 | 10 |
11 | 11 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 obj = self.generateObjWithDebug(src, is_native=True) | 116 obj = self.generateObjWithDebug(src, is_native=True) |
117 ar = self.generateArchive([obj]) | 117 ar = self.generateArchive([obj]) |
118 self.stripFileAndCheck(ar) | 118 self.stripFileAndCheck(ar) |
119 src2 = self.getSource(1) | 119 src2 = self.getSource(1) |
120 obj2 = self.generateObjWithDebug(src2, is_native=True) | 120 obj2 = self.generateObjWithDebug(src2, is_native=True) |
121 ar2 = self.generateArchive([obj, obj2]) | 121 ar2 = self.generateArchive([obj, obj2]) |
122 self.stripFileAndCheck(ar2) | 122 self.stripFileAndCheck(ar2) |
123 | 123 |
124 if __name__ == '__main__': | 124 if __name__ == '__main__': |
125 unittest.main() | 125 unittest.main() |
OLD | NEW |