tests.dd_tests package

Submodules

tests.dd_tests.dd_test module

class tests.dd_tests.dd_test.ASelfTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()
tearDown()
test_rpmfluff_payload()

check if rpmfluff can add files to built RPMs

test_rpmfluff_simple()

check if rpmfluff is working

test_utils_exist()

check that the dd utilities exist

class tests.dd_tests.dd_test.DD_Extract_TestCase(methodName='runTest')

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

dd_extract(flags='-bmlf')
setUp()
classmethod setUpClass()
tearDown()
classmethod tearDownClass()
test_dd_extract()

dd_extract: files are extracted correctly

test_dd_extract_binaries()

dd_extract: using –binaries extracts only /bin, /sbin, etc.

test_dd_extract_chmod()

dd_extract: files get correct mode (#1222056)

test_dd_extract_firmware()

dd_extract: using –firmwares extracts only /lib/firmware

test_dd_extract_libs()

dd_extract: using –libraries extracts only /lib etc.

test_dd_extract_modules()

dd_extract: using –modules extracts only .ko files

class tests.dd_tests.dd_test.DD_List_TestCase(methodName='runTest')

Bases: unittest.case.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

dd_list(dd_dir=None, kernel_ver=None, anaconda_ver=None)
setUp()
tearDown()
test_dd_list()

dd_list: check output format

test_dd_list_anaconda_old()

dd_list: ignore installer-enhancements if version doesn’t match

test_dd_list_binaries()

dd_list: ‘Provides:installer-enhancement’ implies bins/libs

test_dd_list_missing_dir()

dd_list: missing directory returns no results

test_dd_list_multiple()

dd_list: multiple outputs for multiple packages

test_dd_list_no_rpms()

dd_list: empty directory returns no results

test_dd_list_old_kmods()

dd_list: ignore kmods if our kernel is too old

test_dd_list_z_stream_kmods()

dd_list: accept kmods for z-stream kernels (#1207831)

class tests.dd_tests.dd_test.Driver(source, name, flags, description)

Bases: tuple

description

Alias for field number 3

flags

Alias for field number 2

name

Alias for field number 1

source

Alias for field number 0

class tests.dd_tests.dd_test.RPMFile(path, srcpath=None, contents='', **kwargs)

Bases: object

simple container object for information about RPM payloads

tests.dd_tests.dd_test.dd_extract(rpm_path, outdir, kernel_ver, flags='-blmf')
tests.dd_tests.dd_test.dd_list(dd_path, kernel_ver, anaconda_ver)
tests.dd_tests.dd_test.in_tempdir(prefix='tmp')
tests.dd_tests.dd_test.listfiles(dirname)
tests.dd_tests.dd_test.make_rpm(outdir, name='test', version='1.0', release='1', arch=None, for_anaconda_ver=None, for_kernel_ver=None, payload=None)

Module contents