summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/T20604/all.T
blob: 79cb2dd256f5ae0f0ae3bc82ad74e5bc24c212c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def normalise_paths(s):
  res = []
  for line in s.splitlines():
    lib_name = re.search(r'(HS[a-z-]+)-', line)
    if lib_name:
      res.append(lib_name.group(0))
    else:
      res.append(line)
  return '\n'.join(res)


test('T20604', [ req_th
               , extra_files(['A.hs', 'A1.hs'])
               , normalise_fun(normalise_paths)], makefile_test, [])