~ubuntu-branches/ubuntu/wily/xmms2/wily

« back to all changes in this revision

Viewing changes to wafadmin/test/paths.tst

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2008-05-29 10:14:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080529101425-ycw1nbd980uhvzfp
Tags: 0.4DrKosmos-4ubuntu1
* Merge from debian unstable (LP: #178477), remaining changes:
  - debian/control: Update Maintainer field
  - debian/control: add lpia to xmms2-plugin-alsa supported architectures
* This version reads AAC files (LP: #156359)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /usr/bin/env python
2
 
 
3
 
import Runner
4
 
 
5
 
pexec = Runner.exec_command
6
 
 
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')
13
 
 
14
 
info("> 1")
15
 
bld = Build.Build()
16
 
bld.load_dirs('runtest', 'runtest/_build_')
17
 
 
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)
22
 
        
23
 
info("> 3, check two different paths")
24
 
tstnode2 = Params.g_build.m_srcnode.find_node(['tst','bleh2'])
25
 
print tstnode.relpath_gen(tstnode2)
26
 
 
27
 
info("> 4, check srcnode against itself")
28
 
print srcnode.relpath_gen(srcnode)
29
 
 
30
 
# cleanup
31
 
info("paths test end")
32
 
pexec('rm -rf runtest .dblite _build_')
33
 
 
34