51 r = raptor.Raptor() |
51 r = raptor.Raptor() |
52 r.cache.Load( generic_path.Join(r.home, "test", "config", "api.xml") ) |
52 r.cache.Load( generic_path.Join(r.home, "test", "config", "api.xml") ) |
53 |
53 |
54 api = raptor_api.Context(r) |
54 api = raptor_api.Context(r) |
55 |
55 |
|
56 if r.filesystem == "unix": |
|
57 path = "/home/raptor/foo/bar" |
|
58 else: |
|
59 path = "C:/home/raptor/foo/bar" |
|
60 |
56 config = api.GetConfig("buildme") |
61 config = api.GetConfig("buildme") |
57 self.failUnlessEqual(config.fullname, "buildme") |
62 self.failUnlessEqual(config.fullname, "buildme") |
58 self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar") |
63 self.failUnlessEqual(config.outputpath, path) |
59 |
64 |
60 config = api.GetConfig("buildme.foo") |
65 config = api.GetConfig("buildme.foo") |
61 self.failUnlessEqual(config.fullname, "buildme.foo") |
66 self.failUnlessEqual(config.fullname, "buildme.foo") |
62 self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar") |
67 self.failUnlessEqual(config.outputpath, path) |
63 |
68 |
64 config = api.GetConfig("s1") |
69 config = api.GetConfig("s1") |
65 self.failUnlessEqual(config.fullname, "buildme.foo") |
70 self.failUnlessEqual(config.fullname, "buildme.foo") |
66 self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar") |
71 self.failUnlessEqual(config.outputpath, path) |
67 |
72 |
68 config = api.GetConfig("s2.product_A") |
73 config = api.GetConfig("s2.product_A") |
69 self.failUnlessEqual(config.fullname, "buildme.foo.bar.product_A") |
74 self.failUnlessEqual(config.fullname, "buildme.foo.bar.product_A") |
70 self.failUnlessEqual(config.outputpath, "/home/raptor/foo/bar") |
75 self.failUnlessEqual(config.outputpath, path) |
71 |
76 |
72 def testProducts(self): |
77 def testProducts(self): |
73 r = raptor.Raptor() |
78 r = raptor.Raptor() |
74 r.cache.Load( generic_path.Join(r.home, "test", "config", "api.xml") ) |
79 r.cache.Load( generic_path.Join(r.home, "test", "config", "api.xml") ) |
75 |
80 |