mirror of
https://github.com/projectatomic/atomic.git
synced 2026-02-06 12:45:57 +01:00
As we add more commands related to containers, IE Trim, we need to make containers be a subcommand and add verbs like list, and trim Closes: #579 Approved by: giuseppe
26 lines
887 B
Bash
Executable File
26 lines
887 B
Bash
Executable File
#!/bin/bash -x
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# Test scripts run with PWD=tests/..
|
|
|
|
# The test harness exports some variables into the environment during
|
|
# testing: PYTHONPATH (python module import path
|
|
# WORK_DIR (a directory that is safe to modify)
|
|
# DOCKER (the docker executable location)
|
|
# ATOMIC (an invocation of 'atomic' which measures code coverage)
|
|
# SECRET (a generated sha256 hash inserted into test containers)
|
|
|
|
# In addition, the test harness creates some images for use in testing.
|
|
# See tests/test-images/
|
|
|
|
OUTPUT=$(/bin/true)
|
|
|
|
${ATOMIC} containers list --all -q -f runtime=Docker | sort > atomic.ps.out
|
|
docker ps --all -q | sort > docker.ps.out
|
|
diff docker.ps.out atomic.ps.out
|
|
|
|
${ATOMIC} containers list -q -f runtime=Docker | sort > atomic.ps.out
|
|
docker ps -q | sort > docker.ps.out
|
|
diff docker.ps.out atomic.ps.out
|