summaryrefslogtreecommitdiff
path: root/tests/test-help.sh
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* ostree: Describe subcommands in help outputRuixin Bao2017-10-201-1/+2
| | | | | | | | | | | | | | | | | Added a description argument to all type of commands. Now when we include -h or --help for commands that contain subcommands, the description for those subcommands are shown. The added subcommands help will be provided to the following commands: - ostree -h - ostree admin -h - ostree admin instutil -h - ostree remote -h - ostree static-delta -h Closes: #1267 Approved by: cgwalters
* test-help.sh: Skip trivial-httpd if enabledSimon McVittie2017-09-151-1/+10
| | | | | | | | | | | | Because it runs a binary in ${libexecdir}, it will only work if libostree was already installed, which makes the build-time test fail. It also doesn't produce the output we expect: its usage mechanism mentions "ostree-trivial-httpd", not "ostree trivial-httpd". Signed-off-by: Simon McVittie <smcv@collabora.com> Closes: #1177 Approved by: jlebon
* tests/test-help.sh: Rework and strengthen checksJonathan Lebon2017-09-131-18/+43
| | | | | | | | | | | | | The `sed` expression wasn't actually matching the main output, so we weren't recursing into the subcommands. Update the syntax to match the current output and add a check so we don't miss that happening again. Add a check that the help output is only printed once in all circumstances. Also add a check for proper handling of non-existent commands. Closes: #1126 Approved by: cgwalters
* tests: Use "bash strict mode"Colin Walters2016-01-271-2/+2
| | | | | | | | | | I noticed in the static deltas tests, there were some tests that should have been under `-o pipefail` to ensure we properly propagate errors. There were a few places where we were referencing undefined variables. Overall, this is clearly a good idea IMO.
* Replace "==" with "=" in shell script testGiuseppe Scrivano2015-01-301-1/+1
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* tests: fix --help testGiuseppe Scrivano2014-10-211-4/+8
| | | | | | | Check for "Usage" only in the root command, builtins may not output it. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Add test for the behavior of --helpOwen W. Taylor2014-09-251-0/+59
Recursive over ostree and all subcommands, and check that --help is supported, properly outputs to standard out, and exits with a 0 exit status. Check that for commands with subcommands, they produce the help output to standard error when run with no arguments. https://bugzilla.gnome.org/show_bug.cgi?id=737194