def testSharedLibraryOption(self): """Check it returns appropriate options when install_type is "lib.so".""" self.assertEqual(ebuild_function.option_cmd('lib.so'), [['into', '/usr']]) self.assertEqual( ebuild_function.option_cmd('lib.so', install_path='/'), [['into', '/']])
def testExecutableOption(self): """Check it returns appropriate options when install_type is "bin".""" self.assertEqual( ebuild_function.option_cmd('bin'), [['into', '/usr']]) self.assertEqual( ebuild_function.option_cmd('bin', install_path='/'), [['into', '/']])
def testInstallOption(self): """Check it returns appropriate options when install_type is "ins".""" self.assertEqual(ebuild_function.option_cmd('ins'), [['insinto', '/'], ['insopts', '-m0644']]) self.assertEqual( ebuild_function.option_cmd('ins', install_path='/etc/init'), [['insinto', '/etc/init'], ['insopts', '-m0644']]) self.assertEqual(ebuild_function.option_cmd('ins', options='-m0755'), [['insinto', '/'], ['insopts', '-m0755']])
def testSymlinkOption(self): """Check it returns appropriate options when install_type is "sym".""" self.assertEqual( ebuild_function.option_cmd('sym'), [])