skopeo/integration
Miloslav Trmač 6b9345a5f9 Add a commented-out CopySuite.TestRunShell
We are maintaining code to set up and run registries, including the
fairly complex setup for Atomic Registry, in the integration tests.
This is all useful for experimentation in shell, and the easiest way to
do that is to add a “test” which, after all the set up is done, simply
starts a shell.

This is gated by a build tag, so it does not affect normal test runs.

A possible alternative would be to convert all of the setup code not to
depend on check.C and testing.T, but that would be fairly cumbersome due
to how prevalent c.Logf and c.Assert are throughout the setup code.
Especially the natural replacement of c.Assert with a panic() would be
pretty ugly, and adding real error handling to all of that would make
the code noticeably longer.  The build tag and copy&pasting a command
works just as well, at least for now.

(It is not conveniently possible to create a new “main program” which
manually creates a check.C and testing.T just for the purpose of running
the setup code either; check.C can be created given a testing.T, but
testing.T is only created by testing.MainStart, which does not allow us
to submit a non-test method; and testing.MainStart is excluded from the
Go compatibility promise.)
2017-03-27 17:01:29 +02:00
..
fixtures Add sigstore tests 2016-09-27 15:21:24 +02:00
check_test.go adding tests 2017-03-20 12:53:34 +02:00
copy_test.go Update tests to handle OpenShift changing the schema1 signatures 2017-03-18 20:24:22 +01:00
fixtures_info_test.go Remove signature/fixtures subpackage 2016-05-21 21:21:58 +02:00
openshift_shell_test.go Add a commented-out CopySuite.TestRunShell 2017-03-27 17:01:29 +02:00
openshift.go Update OpenShift from 1.3.0-alpha.3 to 1.5.0-alpha.3 2017-03-18 20:25:01 +01:00
registry.go Add sigstore tests 2016-09-27 15:21:24 +02:00
signing_test.go Add more helpers for running skopeo, use them in existing tests 2016-06-22 16:19:59 +02:00
utils.go Split runExecCmdWithInput from runCommandWithInput 2017-03-18 20:24:22 +01:00