예제 #1
0
 def testUptodateProd(self):
     "check that a rule is not run for a current production"
     er = ExRun(verbFlags=verbFlags)
     prod = CurrentProd("neverRunProd")
     er.addProd(prod)
     rule = NeverRunRule("neverRunRule", produces=prod)
     er.obtainDefaultTarget(prod)
     er.addRule(rule)
     er.run()
     self.checkGraphStates(er)
예제 #2
0
 def testUptodateProd(self):
     "check that a rule is not run for a current production"
     er = ExRun(verbFlags=verbFlags)
     prod = CurrentProd("neverRunProd")
     er.addProd(prod)
     rule = NeverRunRule("neverRunRule", produces=prod)
     er.obtainDefaultTarget(prod)
     er.addRule(rule)
     er.run()
     self.checkGraphStates(er)
예제 #3
0
 def testTwoLevel(self):
     "two levels of requirements"
     er = ExRun(verbFlags=verbFlags)
     tl = self.twoLevelSetup(er)
     er.obtainDefaultTarget(tl.topPset.prods)
     er.run()
     self.failUnlessEqual(tl.low1Rule.touchCnt, 3)
     tl.low1Pset.check()
     self.failUnlessEqual(tl.low2Rule.touchCnt, 3)
     tl.low2Pset.check()
     self.failUnlessEqual(tl.topRule.touchCnt, 3)
     tl.topPset.check()
     self.checkGraphStates(er)
예제 #4
0
 def testTwoLevel(self):
     "two levels of requirements"
     er = ExRun(verbFlags=verbFlags)
     tl = self.twoLevelSetup(er)
     er.obtainDefaultTarget(tl.topPset.prods)
     er.run()
     self.failUnlessEqual(tl.low1Rule.touchCnt, 3)
     tl.low1Pset.check()
     self.failUnlessEqual(tl.low2Rule.touchCnt, 3)
     tl.low2Pset.check()
     self.failUnlessEqual(tl.topRule.touchCnt, 3)
     tl.topPset.check()
     self.checkGraphStates(er)