| 151 | return [] |
| 152 | |
| 153 | def ListTests(self, current_path, path, arch, mode): |
| 154 | all_tests = [current_path + [t] for t in self.Ls(self.root)] |
| 155 | result = [] |
| 156 | # Skip these tests on Windows, as pseudo terminals are not available |
| 157 | if utils.IsWindows(): |
| 158 | print ("Skipping pseudo-tty tests, as pseudo terminals are not available" |
| 159 | " on Windows.") |
| 160 | return result |
| 161 | for tst in all_tests: |
| 162 | if self.Contains(path, tst): |
| 163 | file_prefix = join(self.root, reduce(join, tst[1:], "")) |
| 164 | file_path = file_prefix + ".js" |
| 165 | input_path = file_prefix + ".in" |
| 166 | output_path = file_prefix + ".out" |
| 167 | if not exists(output_path): |
| 168 | raise Exception("Could not find %s" % output_path) |
| 169 | result.append(TTYTestCase(tst, file_path, output_path, |
| 170 | input_path, arch, mode, self.context, self)) |
| 171 | return result |
| 172 | |
| 173 | def GetBuildRequirements(self): |
| 174 | return ['sample', 'sample=shell'] |