コード例 #1
0
ファイル: test_architecture.py プロジェクト: carlosduclos/dak
    def testAll(self):
        self.assert_(match_architecture('all', 'all'))

        self.assert_(not match_architecture('amd64', 'all'))
        self.assert_(not match_architecture('all', 'amd64'))

        self.assert_(not match_architecture('all', 'any'))
コード例 #2
0
    def testAll(self):
        self.assertTrue(match_architecture('all', 'all'))

        self.assertTrue(not match_architecture('amd64', 'all'))
        self.assertTrue(not match_architecture('all', 'amd64'))

        self.assertTrue(not match_architecture('all', 'any'))
コード例 #3
0
 def built_on_architecture(self, architecture):
     archs = self.architectures
     if archs is None:
         return None
     for arch in archs:
         if match_architecture(architecture, arch):
             return True
     return False
コード例 #4
0
ファイル: packagelist.py プロジェクト: Debian/dak
 def built_on_architecture(self, architecture):
     archs = self.architectures
     if archs is None:
         return None
     for arch in archs:
         if match_architecture(architecture, arch):
             return True
     return False
コード例 #5
0
 def testEqual(self):
     self.assertTrue(match_architecture('amd64', 'amd64'))
     self.assertTrue(match_architecture('linux-amd64', 'linux-amd64'))
     self.assertTrue(match_architecture('linux-amd64', 'amd64'))
     self.assertTrue(match_architecture('amd64', 'linux-amd64'))
     self.assertTrue(not match_architecture('amd64', 'i386'))
     self.assertTrue(match_architecture('kfreebsd-amd64', 'kfreebsd-amd64'))
     self.assertTrue(not match_architecture('kfreebsd-amd64', 'amd64'))
コード例 #6
0
ファイル: test_architecture.py プロジェクト: carlosduclos/dak
 def testEqual(self):
     self.assert_(match_architecture('amd64', 'amd64'))
     self.assert_(match_architecture('linux-amd64', 'linux-amd64'))
     self.assert_(match_architecture('linux-amd64', 'amd64'))
     self.assert_(match_architecture('amd64', 'linux-amd64'))
     self.assert_(not match_architecture('amd64', 'i386'))
     self.assert_(match_architecture('kfreebsd-amd64', 'kfreebsd-amd64'))
     self.assert_(not match_architecture('kfreebsd-amd64', 'amd64'))
コード例 #7
0
    def testAny(self):
        self.assertTrue(match_architecture('amd64', 'any'))
        self.assertTrue(match_architecture('amd64', 'any-amd64'))
        self.assertTrue(match_architecture('x32', 'any-amd64'))
        self.assertTrue(match_architecture('kfreebsd-amd64', 'any-amd64'))
        self.assertTrue(not match_architecture('amd64', 'any-i386'))

        self.assertTrue(match_architecture('kfreebsd-amd64', 'kfreebsd-any'))
        self.assertTrue(not match_architecture('amd64', 'kfreebsd-any'))
コード例 #8
0
ファイル: test_architecture.py プロジェクト: carlosduclos/dak
    def testAny(self):
        self.assert_(match_architecture('amd64', 'any'))
        self.assert_(match_architecture('amd64', 'any-amd64'))
        self.assert_(match_architecture('x32', 'any-amd64'))
        self.assert_(match_architecture('kfreebsd-amd64', 'any-amd64'))
        self.assert_(not match_architecture('amd64', 'any-i386'))

        self.assert_(match_architecture('kfreebsd-amd64', 'kfreebsd-any'))
        self.assert_(not match_architecture('amd64', 'kfreebsd-any'))