| 139 | return [f for f in os.listdir(path) if LS_RE.match(f)] |
| 140 | |
| 141 | def ListTests(self, current_path, path, arch, mode): |
| 142 | all_tests = [current_path + [t] for t in self.Ls(os.path.join(self.root))] |
| 143 | result = [] |
| 144 | for tst in all_tests: |
| 145 | if self.Contains(path, tst): |
| 146 | file_path = os.path.join(self.root, reduce(os.path.join, tst[1:], "")) |
| 147 | test_name = tst[:-1] + [os.path.splitext(tst[-1])[0]] |
| 148 | result.append(SimpleTestCase(test_name, file_path, arch, mode, |
| 149 | self.context, self, self.additional_flags)) |
| 150 | return result |
| 151 | |
| 152 | def GetBuildRequirements(self): |
| 153 | return ['sample', 'sample=shell'] |