[Freeipa-devel] [freeipa PR#494][comment] Support client-only build

lslebodn freeipa-github-notification at redhat.com
Wed Feb 22 10:56:18 UTC 2017


  URL: https://github.com/freeipa/freeipa/pull/494
Title: #494: Support client-only build

lslebodn commented:
"""
On (22/02/17 02:51), Christian Heimes wrote:
>You assumption is incorrect. ```ipatests``` does not depend on ```ipaserver```, https://github.com/freeipa/freeipa/blob/master/ipatests/setup.py#L61
>
>```
>        install_requires=[
>            "cryptography",
>            "dnspython",
>            "gssapi",
>            "ipaclient",
>            "ipalib",
>            "ipaplatform",
>            "ipapython",
>            "nose",
>            "polib",
>            "pyldap",
>            "pytest",
>            "pytest_multihost",
>            "python-nss",
>            "six",
>],
>```
>
>Only some subcomponents of ```ipatests``` do depend on the ```ipaserver``` package or a running server for integration tests, https://github.com/freeipa/freeipa/blob/master/ipatests/setup.py#L77
>
>```
>        extras_require={
>            "integration": ["dbus-python", "pyyaml", "ipaserver"],
>            "ipaserver": ["ipaserver"],
>            "webui": ["selenium", "pyyaml", "ipaserver"],
>            "xmlrpc": ["ipaserver"],
>}
>```
>

Packagers can run unit tests in-tree. And that's a usual way
how packagers run unit tests.

e.g.
```
    PYTHONPATH=$PWD/ \
      $PYTHON ./ipatests/ipa-run-tests -vvv --tb=native \
                  $PWD/ipatests/test_ipaclient/ \
                  $PWD/ipatests/test_ipalib \
                  $PWD/ipatests/test_ipapython \
                  $PWD/ipatests/test_util.py \
                  $PWD/ipatests/util.py
```

Tox is a special case.
Therefore installation of tests is disabled for `--disable-server`
But for tox it is possible to overrride it.
e.g. `./configure --disable-server --with-tests`

LS

"""

See the full comment at https://github.com/freeipa/freeipa/pull/494#issuecomment-281636358


More information about the Freeipa-devel mailing list