| 133 | return [] |
| 134 | |
| 135 | def ListTests(self, current_path, path, arch, mode): |
| 136 | all_tests = [current_path + [t] for t in self.Ls(self.root)] |
| 137 | result = [] |
| 138 | for tst in all_tests: |
| 139 | if self.Contains(path, tst): |
| 140 | file_path = join(self.root, reduce(join, tst[1:], '')) |
| 141 | output_path = file_path[:file_path.rfind('.')] + '.out' |
| 142 | if not exists(output_path): |
| 143 | raise Exception("Could not find %s" % output_path) |
| 144 | result.append(MessageTestCase(tst, file_path, output_path, |
| 145 | arch, mode, self.context, self)) |
| 146 | return result |
| 147 | |
| 148 | def GetBuildRequirements(self): |
| 149 | return ['sample', 'sample=shell'] |