~hjd/ubuntu/wily/gyp/debian-merged

« back to all changes in this revision

Viewing changes to test/mac/gyptest-rpath.py

  • Committer: Hans Joachim Desserud
  • Date: 2015-10-31 12:46:59 UTC
  • mfrom: (6.2.6 sid)
  • Revision ID: hans_joachim_desserud-20151031124659-lzxekr6woskh4k0b
Merge latest Debian version

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
  CHDIR = 'rpath'
22
22
  test.run_gyp('test.gyp', chdir=CHDIR)
 
23
 
23
24
  test.build('test.gyp', test.ALL, chdir=CHDIR)
24
25
 
25
26
  def GetRpaths(p):
30
31
    assert not proc.returncode
31
32
    return r.findall(o)
32
33
 
33
 
  if (GetRpaths('libdefault_rpath.dylib') != []):
 
34
  if GetRpaths('libdefault_rpath.dylib') != []:
34
35
    test.fail_test()
35
36
 
36
 
  if (GetRpaths('libexplicit_rpath.dylib') != ['@executable_path/.']):
 
37
  if GetRpaths('libexplicit_rpath.dylib') != ['@executable_path/.']:
37
38
    test.fail_test()
38
39
 
39
40
  if (GetRpaths('libexplicit_rpaths_escaped.dylib') !=
40
41
      ['First rpath', 'Second rpath']):
41
42
    test.fail_test()
42
43
 
43
 
  if (GetRpaths('My Framework.framework/My Framework') != ['@loader_path/.']):
 
44
  if GetRpaths('My Framework.framework/My Framework') != ['@loader_path/.']:
44
45
    test.fail_test()
45
46
 
46
 
  if (GetRpaths('executable') != ['@executable_path/.']):
 
47
  if GetRpaths('executable') != ['@executable_path/.']:
47
48
    test.fail_test()
48
49
 
49
50
  test.pass_test()