subtests...run_memory -> run_cgroups

*  Renamed configuration file name to match
*  Reworked class hierarchy to make adding non-memory related subsubtests
   easier
*  Split out memory and cpu tests into their own modules
*  Moved some common code up into new base-class
*  Moved specific subtest code down into specific base-classes
*  Implemented simple subsubtest to check unspecified, zero, and
   non-zero values for docker run -c

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests...import_url: Add md5 sub-subtest

Signed-off-by: Chris Evich <cevich@redhat.com>
subtests.docker_cli.ps_size: Fix the base class name

There was copy&paste error.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add images --all test

this test focuses on differences between `docker images` and
`docker images --all`. Additionally it checks the image history and
verifies the automatic cleanup of untagged unused images.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.images_all: Add variant with background containers

Sometimes docker rmi is confused when there are existing containers.
This variant creates 10 background containers and then run the test.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #293 from ldoktor/images_all

subtests.docker_cli: Add images --all test
Merge pull request #279 from cevich/run_cgroups

subtests...run_memory -> run_cgroups
Merge pull request #292 from cevich/import_url

subtests...import_url: Add md5 sub-subtest
dockertest.dockercmd: Fix AsyncDockerCmd to log correctly

DockerCmdBase distinguish between executed and nonexecuted command
by checking self.executed. This variable is not incremented in
AsycnDockerCmd. This patch increments the self.executed in execute()

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.kill: Fix incorrect Output initialization

The Output class used length of the output instead of number of lines.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add logs_follow test

This test uses `docker logs --follow` and checks it works correctly.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add run_env test

this tests the ENV related features. Currently it only contains one
subsubtest, which is focused on linked containers. It sends data
using the addr from ENV to the server, which resends them back.

In the end it checks the valid data + ENV variables added via `-e x=y`
including the linked values ($linked_ENV_...)

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.run_env: Add couple of env checks

Check another expected environments:
SERVER_NAME=/$client_name/server
SERVER_PORT=tcp://$addr:$port
SERVER_PORT_$port_TCP=tcp://$addr:$port
SERVER_PORT_$port_TCP_ADDR=$addr
SERVER_PORT_$port_TCP_PORT=$port
SERVER_PORT_$port_TCP_PROTO=tcp

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli: Add run_attach test

This test checks different ``docker run -a xxx`` variants.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.build: Turn build test into subsubtest

No actual changes, only couple fixed pep8 complains and the test is
rewritten to build/local_path subsubtest.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
subtests.docker_cli.build: Add two new subtests

These subtests use https and git repository as source path for
docker build.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #285 from ldoktor/run_env

subtests.docker_cli: Add run_env test
Merge pull request #290 from ldoktor/logs_follow

subtests.docker_cli: Add logs_follow test
Merge branch 'build' of https://github.com/ldoktor/autotest-docker into ldoktor-build
subtests...build: Config. example build URIs

Signed-off-by: Chris Evich <cevich@redhat.com>