Comments (5)
Hey @atmoz, thanks for reporting. This was my fault, in my example repo I linked to an old version of the code that had a lot of missing features. I've updated the links in that repo, using the latest released binary should fix this issue for you. Sorry for the confusion!
from container-structure-test.
I did not download from the example repo, I used the link from the readme in this repo.
Exact link: https://storage.googleapis.com/container-structure-test/latest/container-structure-test
I downloaded this again, but I see no difference.
This is the usage output:
Usage of container-structure-test:
-driver string
driver to use when running tests (default "docker")
-image string
path to test image
-test.bench regexp
run only benchmarks matching regexp
-test.benchmem
print memory allocations for benchmarks
-test.benchtime d
run each benchmark for duration d (default 1s)
-test.blockprofile file
write a goroutine blocking profile to file
-test.blockprofilerate rate
set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
-test.count n
run tests and benchmarks n times (default 1)
-test.coverprofile file
write a coverage profile to file
-test.cpu list
comma-separated list of cpu counts to run each test with
-test.cpuprofile file
write a cpu profile to file
-test.memprofile file
write a memory profile to file
-test.memprofilerate rate
set memory profiling rate (see runtime.MemProfileRate)
-test.mutexprofile string
write a mutex contention profile to the named file after execution
-test.mutexprofilefraction int
if >= 0, calls runtime.SetMutexProfileFraction() (default 1)
-test.outputdir dir
write profiles to dir
-test.parallel n
run at most n tests in parallel (default 4)
-test.run regexp
run only tests and examples matching regexp
-test.short
run smaller test suite to save time
-test.timeout d
fail test binary execution after duration d (0 means unlimited)
-test.trace file
write an execution trace to file
-test.v
verbose: print additional output
Notice there is no mentioning of any -save
flag.
from container-structure-test.
Ah, sorry you're right. I grouped this with the issues from the old binary link because there were so many at once 😨 This is happening because we haven't done a release with the latest changes since before this issue was fixed. I'll be doing a release this afternoon, so once you upgrade to the latest version this should be fixed for you.
from container-structure-test.
I just ran into this but found a workaround.
The -save needs to be before the yaml file on the command line.
This fails:
sudo ./container-structure-test -test.v -driver tar -image python python_file_test.yaml -save
with error:
2018/02/28 17:31:01 Error parsing config file: open -save: no such file or directory
This saves:
sudo ./container-structure-test -test.v -driver tar -image python -save python_file_test.yaml
from container-structure-test.
Yeah, the last CLI argument is one or more config files, which are positional so they have to be at the end. I'm working on a rewrite of the tool that changes the configs to be specified with a flag so they can be anywhere, which will make this more clear. Going to close this issue for now.
from container-structure-test.
Related Issues (20)
- How to use container_structure_test with oci_image on MacOS
- No Release asset checksums (sha256) since Release v1.11.0
- Add platform parameter to support testing multi-platform images
- Multiple outputs (i.e. `text` and `json`) HOT 1
- New Testcontainers driver HOT 3
- Env var expansion feature in commandTests output assertions
- Add support to containerRunOptions for --cap-drop
- Security Policy violation SECURITY.md HOT 139
- Update documentation regarding Bazel and Docker TCP connections
- Binaries for v1.16.1? HOT 2
- Unable use v1.16.1 with bzlmod
- How to mount a config file? HOT 1
- Hash for linux_i386 is missing
- Add Darwin ARM64 package type HOT 7
- Add ability to document container in markdown HOT 1
- Add a metadata test to test the base image used in the image
- Multi-arch images are not supported
- Permissions and IsExecutableBy in File Existence Tests contradictory
- Subcommand `version` does not work with `1.18.0` and `1.18.1` versions HOT 1
- bazel vendor error ERROR: key "linux-i386" not found in dictionary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-structure-test.