5
pexec = Runner.exec_command
7
# scan folders, print relative paths between nodes
8
pexec('rm -rf runtest')
9
pexec('mkdir -p runtest/src/blah')
10
pexec('mkdir -p runtest/src/blah2')
11
pexec('mkdir -p runtest/tst/bleh')
12
pexec('mkdir -p runtest/tst/bleh2')
16
bld.load_dirs('runtest', 'runtest/_build_')
18
info("> 2, check a path under srcnode")
19
srcnode = Params.g_build.m_srcnode
20
tstnode = Params.g_build.m_srcnode.find_node(['src','blah'])
21
print tstnode.relpath_gen(srcnode)
23
info("> 3, check two different paths")
24
tstnode2 = Params.g_build.m_srcnode.find_node(['tst','bleh2'])
25
print tstnode.relpath_gen(tstnode2)
27
info("> 4, check srcnode against itself")
28
print srcnode.relpath_gen(srcnode)
31
info("paths test end")
32
pexec('rm -rf runtest .dblite _build_')