[master] Move old unit tests and add some new

Vratislav Podzimek vpodzime at redhat.com
Tue Jul 16 13:01:39 UTC 2013


PATCH 1/2 moves the old tests to the 'old_tests' directory, adds some new,
working tests to the 'tests' directory and modifies the configure.ac and
Makefile.am files accordingly. If somebody know that some tests from the old
tests may be easily made working, such tests could be fixed and moved to the
'tests' directory.

PATCH 2/2 fixes an issue found by running the new tests.

Vratislav Podzimek (2):
  Move tests to old_tests and add some new, working tests
  Fix the langcode parsing regexp

 Makefile.am                                        |   6 +-
 configure.ac                                       |  10 -
 old_tests/Makefile.am                              |  22 +
 old_tests/kickstart_test/Makefile.am               |  22 +
 old_tests/kickstart_test/commands_test.py          |  93 ++++
 old_tests/logpicker_test/Makefile.am               |  30 ++
 .../logpicker_test/archiving_test/Makefile.am      |  28 ++
 .../archiving_test/archivebaseclass_test.py        |  35 ++
 .../archiving_test/bzip2archive_test.py            | 119 +++++
 .../logpicker_test/logmining_test/Makefile.am      |  31 ++
 .../logmining_test/anacondalogminer_test.py        | 125 ++++++
 .../logmining_test/dmsetupinfologminer_test.py     |  19 +
 .../logmining_test/dmsetuplslogminer_test.py       |  19 +
 .../logmining_test/filesystemlogminer_test.py      |  74 ++++
 .../logmining_test/logminerbaseclass_test.py       | 106 +++++
 old_tests/logpicker_test/logpicker_test.py         |  93 ++++
 old_tests/logpicker_test/main_test.py              |  19 +
 old_tests/logpicker_test/sending_test/Makefile.am  |  33 ++
 .../sending_test/bugzillasender_test.py            |  99 +++++
 .../sending_test/emailsender_test.py               | 104 +++++
 .../logpicker_test/sending_test/ftpsender_test.py  | 156 +++++++
 .../sending_test/localsender_test.py               |  46 ++
 .../logpicker_test/sending_test/scpsender_test.py  | 106 +++++
 .../sending_test/senderbaseclass_test.py           |  56 +++
 .../sending_test/stratasender_test.py              |  95 ++++
 old_tests/mock/Makefile.am                         |  21 +
 old_tests/mock/__init__.py                         |  94 ++++
 old_tests/mock/disk.py                             | 128 ++++++
 old_tests/mock/mock.py                             | 271 ++++++++++++
 old_tests/pyanaconda_test/Makefile.am              |  45 ++
 old_tests/pyanaconda_test/backend_test.py          | 227 ++++++++++
 old_tests/pyanaconda_test/bootloader_test.py       |  59 +++
 old_tests/pyanaconda_test/desktop_test.py          | 100 +++++
 old_tests/pyanaconda_test/flags_test.py            | 132 ++++++
 old_tests/pyanaconda_test/image_test.py            | 147 +++++++
 old_tests/pyanaconda_test/indexed_dict_test.py     |  49 +++
 old_tests/pyanaconda_test/iutil_test.py            |  37 ++
 old_tests/pyanaconda_test/network_test.py          | 389 +++++++++++++++++
 old_tests/pyanaconda_test/packages_test.py         |  25 ++
 old_tests/pyanaconda_test/packaging_test.py        | 126 ++++++
 old_tests/pyanaconda_test/partintfhelpers_test.py  | 480 +++++++++++++++++++++
 old_tests/pyanaconda_test/product_test.py          |  82 ++++
 old_tests/pyanaconda_test/rescue_test.py           | 297 +++++++++++++
 old_tests/pyanaconda_test/security_test.py         |  62 +++
 old_tests/pyanaconda_test/simpleconfig_test.py     | 154 +++++++
 old_tests/pyanaconda_test/timezone_test.py         |  56 +++
 old_tests/pyanaconda_test/users_test.py            | 142 ++++++
 old_tests/pyanaconda_test/vnc_test.py              | 116 +++++
 old_tests/pylint/Makefile.am                       |  22 +
 old_tests/pylint/pylint-false-positives            |  34 ++
 old_tests/pylint/runpylint.sh                      | 108 +++++
 old_tests/regex/Makefile.am                        |  22 +
 old_tests/regex/proxy_test.py                      | 112 +++++
 pyanaconda/localization.py                         |   8 +-
 tests/Makefile.am                                  |  22 -
 tests/kickstart_test/Makefile.am                   |  22 -
 tests/kickstart_test/commands_test.py              |  93 ----
 tests/logpicker_test/Makefile.am                   |  30 --
 tests/logpicker_test/archiving_test/Makefile.am    |  28 --
 .../archiving_test/archivebaseclass_test.py        |  35 --
 .../archiving_test/bzip2archive_test.py            | 119 -----
 tests/logpicker_test/logmining_test/Makefile.am    |  31 --
 .../logmining_test/anacondalogminer_test.py        | 125 ------
 .../logmining_test/dmsetupinfologminer_test.py     |  19 -
 .../logmining_test/dmsetuplslogminer_test.py       |  19 -
 .../logmining_test/filesystemlogminer_test.py      |  74 ----
 .../logmining_test/logminerbaseclass_test.py       | 106 -----
 tests/logpicker_test/logpicker_test.py             |  93 ----
 tests/logpicker_test/main_test.py                  |  19 -
 tests/logpicker_test/sending_test/Makefile.am      |  33 --
 .../sending_test/bugzillasender_test.py            |  99 -----
 .../sending_test/emailsender_test.py               | 104 -----
 .../logpicker_test/sending_test/ftpsender_test.py  | 156 -------
 .../sending_test/localsender_test.py               |  46 --
 .../logpicker_test/sending_test/scpsender_test.py  | 106 -----
 .../sending_test/senderbaseclass_test.py           |  56 ---
 .../sending_test/stratasender_test.py              |  95 ----
 tests/mock/Makefile.am                             |  21 -
 tests/mock/__init__.py                             |  94 ----
 tests/mock/disk.py                                 | 128 ------
 tests/mock/mock.py                                 | 271 ------------
 tests/pyanaconda_test/Makefile.am                  |  45 --
 tests/pyanaconda_test/backend_test.py              | 227 ----------
 tests/pyanaconda_test/bootloader_test.py           |  59 ---
 tests/pyanaconda_test/desktop_test.py              | 100 -----
 tests/pyanaconda_test/flags_test.py                | 132 ------
 tests/pyanaconda_test/image_test.py                | 147 -------
 tests/pyanaconda_test/indexed_dict_test.py         |  49 ---
 tests/pyanaconda_test/iutil_test.py                |  37 --
 tests/pyanaconda_test/network_test.py              | 389 -----------------
 tests/pyanaconda_test/packages_test.py             |  25 --
 tests/pyanaconda_test/packaging_test.py            | 126 ------
 tests/pyanaconda_test/partintfhelpers_test.py      | 480 ---------------------
 tests/pyanaconda_test/product_test.py              |  82 ----
 tests/pyanaconda_test/rescue_test.py               | 297 -------------
 tests/pyanaconda_test/security_test.py             |  62 ---
 tests/pyanaconda_test/simpleconfig_test.py         | 154 -------
 tests/pyanaconda_test/timezone_test.py             |  56 ---
 tests/pyanaconda_test/users_test.py                | 142 ------
 tests/pyanaconda_test/vnc_test.py                  | 116 -----
 tests/pyanaconda_tests/localization_test.py        | 109 +++++
 tests/pyanaconda_tests/timezone_test.py            |  73 ++++
 tests/pylint/Makefile.am                           |  22 -
 tests/pylint/pylint-false-positives                |  34 --
 tests/pylint/runpylint.sh                          | 108 -----
 tests/regex/Makefile.am                            |  22 -
 tests/regex/proxy_test.py                          | 112 -----
 107 files changed, 5256 insertions(+), 5084 deletions(-)
 create mode 100644 old_tests/Makefile.am
 create mode 100644 old_tests/kickstart_test/Makefile.am
 create mode 100644 old_tests/kickstart_test/commands_test.py
 create mode 100644 old_tests/logpicker_test/Makefile.am
 create mode 100644 old_tests/logpicker_test/archiving_test/Makefile.am
 create mode 100644 old_tests/logpicker_test/archiving_test/archivebaseclass_test.py
 create mode 100644 old_tests/logpicker_test/archiving_test/bzip2archive_test.py
 create mode 100644 old_tests/logpicker_test/logmining_test/Makefile.am
 create mode 100644 old_tests/logpicker_test/logmining_test/anacondalogminer_test.py
 create mode 100644 old_tests/logpicker_test/logmining_test/dmsetupinfologminer_test.py
 create mode 100644 old_tests/logpicker_test/logmining_test/dmsetuplslogminer_test.py
 create mode 100644 old_tests/logpicker_test/logmining_test/filesystemlogminer_test.py
 create mode 100644 old_tests/logpicker_test/logmining_test/logminerbaseclass_test.py
 create mode 100644 old_tests/logpicker_test/logpicker_test.py
 create mode 100644 old_tests/logpicker_test/main_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/Makefile.am
 create mode 100644 old_tests/logpicker_test/sending_test/bugzillasender_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/emailsender_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/ftpsender_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/localsender_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/scpsender_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/senderbaseclass_test.py
 create mode 100644 old_tests/logpicker_test/sending_test/stratasender_test.py
 create mode 100644 old_tests/mock/Makefile.am
 create mode 100644 old_tests/mock/__init__.py
 create mode 100644 old_tests/mock/disk.py
 create mode 100644 old_tests/mock/mock.py
 create mode 100644 old_tests/pyanaconda_test/Makefile.am
 create mode 100644 old_tests/pyanaconda_test/backend_test.py
 create mode 100644 old_tests/pyanaconda_test/bootloader_test.py
 create mode 100644 old_tests/pyanaconda_test/desktop_test.py
 create mode 100644 old_tests/pyanaconda_test/flags_test.py
 create mode 100644 old_tests/pyanaconda_test/image_test.py
 create mode 100644 old_tests/pyanaconda_test/indexed_dict_test.py
 create mode 100644 old_tests/pyanaconda_test/iutil_test.py
 create mode 100644 old_tests/pyanaconda_test/network_test.py
 create mode 100644 old_tests/pyanaconda_test/packages_test.py
 create mode 100644 old_tests/pyanaconda_test/packaging_test.py
 create mode 100644 old_tests/pyanaconda_test/partintfhelpers_test.py
 create mode 100644 old_tests/pyanaconda_test/product_test.py
 create mode 100644 old_tests/pyanaconda_test/rescue_test.py
 create mode 100644 old_tests/pyanaconda_test/security_test.py
 create mode 100644 old_tests/pyanaconda_test/simpleconfig_test.py
 create mode 100644 old_tests/pyanaconda_test/timezone_test.py
 create mode 100644 old_tests/pyanaconda_test/users_test.py
 create mode 100644 old_tests/pyanaconda_test/vnc_test.py
 create mode 100644 old_tests/pylint/Makefile.am
 create mode 100644 old_tests/pylint/pylint-false-positives
 create mode 100755 old_tests/pylint/runpylint.sh
 create mode 100644 old_tests/regex/Makefile.am
 create mode 100644 old_tests/regex/__init__.py
 create mode 100755 old_tests/regex/proxy_test.py
 delete mode 100644 tests/Makefile.am
 delete mode 100644 tests/kickstart_test/Makefile.am
 delete mode 100644 tests/kickstart_test/commands_test.py
 delete mode 100644 tests/logpicker_test/Makefile.am
 delete mode 100644 tests/logpicker_test/archiving_test/Makefile.am
 delete mode 100644 tests/logpicker_test/archiving_test/archivebaseclass_test.py
 delete mode 100644 tests/logpicker_test/archiving_test/bzip2archive_test.py
 delete mode 100644 tests/logpicker_test/logmining_test/Makefile.am
 delete mode 100644 tests/logpicker_test/logmining_test/anacondalogminer_test.py
 delete mode 100644 tests/logpicker_test/logmining_test/dmsetupinfologminer_test.py
 delete mode 100644 tests/logpicker_test/logmining_test/dmsetuplslogminer_test.py
 delete mode 100644 tests/logpicker_test/logmining_test/filesystemlogminer_test.py
 delete mode 100644 tests/logpicker_test/logmining_test/logminerbaseclass_test.py
 delete mode 100644 tests/logpicker_test/logpicker_test.py
 delete mode 100644 tests/logpicker_test/main_test.py
 delete mode 100644 tests/logpicker_test/sending_test/Makefile.am
 delete mode 100644 tests/logpicker_test/sending_test/bugzillasender_test.py
 delete mode 100644 tests/logpicker_test/sending_test/emailsender_test.py
 delete mode 100644 tests/logpicker_test/sending_test/ftpsender_test.py
 delete mode 100644 tests/logpicker_test/sending_test/localsender_test.py
 delete mode 100644 tests/logpicker_test/sending_test/scpsender_test.py
 delete mode 100644 tests/logpicker_test/sending_test/senderbaseclass_test.py
 delete mode 100644 tests/logpicker_test/sending_test/stratasender_test.py
 delete mode 100644 tests/mock/Makefile.am
 delete mode 100644 tests/mock/__init__.py
 delete mode 100644 tests/mock/disk.py
 delete mode 100644 tests/mock/mock.py
 delete mode 100644 tests/pyanaconda_test/Makefile.am
 delete mode 100644 tests/pyanaconda_test/backend_test.py
 delete mode 100644 tests/pyanaconda_test/bootloader_test.py
 delete mode 100644 tests/pyanaconda_test/desktop_test.py
 delete mode 100644 tests/pyanaconda_test/flags_test.py
 delete mode 100644 tests/pyanaconda_test/image_test.py
 delete mode 100644 tests/pyanaconda_test/indexed_dict_test.py
 delete mode 100644 tests/pyanaconda_test/iutil_test.py
 delete mode 100644 tests/pyanaconda_test/network_test.py
 delete mode 100644 tests/pyanaconda_test/packages_test.py
 delete mode 100644 tests/pyanaconda_test/packaging_test.py
 delete mode 100644 tests/pyanaconda_test/partintfhelpers_test.py
 delete mode 100644 tests/pyanaconda_test/product_test.py
 delete mode 100644 tests/pyanaconda_test/rescue_test.py
 delete mode 100644 tests/pyanaconda_test/security_test.py
 delete mode 100644 tests/pyanaconda_test/simpleconfig_test.py
 delete mode 100644 tests/pyanaconda_test/timezone_test.py
 delete mode 100644 tests/pyanaconda_test/users_test.py
 delete mode 100644 tests/pyanaconda_test/vnc_test.py
 create mode 100644 tests/pyanaconda_tests/localization_test.py
 create mode 100644 tests/pyanaconda_tests/timezone_test.py
 delete mode 100644 tests/pylint/Makefile.am
 delete mode 100644 tests/pylint/pylint-false-positives
 delete mode 100755 tests/pylint/runpylint.sh
 delete mode 100644 tests/regex/Makefile.am
 delete mode 100644 tests/regex/__init__.py
 delete mode 100755 tests/regex/proxy_test.py

-- 
1.7.11.7



More information about the anaconda-patches mailing list