Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools for technical analysts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Preservation
tools for technical analysts
Commits
cc5f4e22
Commit
cc5f4e22
authored
1 year ago
by
Andreas Romeyke
Browse files
Options
Downloads
Patches
Plain Diff
- added help testcases
parent
5747e396
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
t/03-info.t
+11
-3
11 additions, 3 deletions
t/03-info.t
with
11 additions
and
3 deletions
t/03-info.t
+
11
−
3
View file @
cc5f4e22
use
v5
.36
;
use
Test::
Cmd
;
use
Test::
More
tests
=>
3
;
use
Test::
More
tests
=>
12
;
use
Path::
Tiny
;
my
$perl
=
$^X
;
my
$testapp
=
Test::
Cmd
->
new
(
...
...
@@ -27,12 +27,20 @@ password: 839852bed005a7f1237578a6ac1197c142f7d0dd58bb248446dc7849d4bf770902e7f9
user:
lza
_CFG_
# tests
foreach
my
$param
("
help info
",
"
info -h
",
"
info --help
")
{
$testapp
->
run
(
args
=>
$param
);
#say "STDOUT:",$testapp->stdout;
#say "STDERR:",$testapp->stderr;
like
(
$testapp
->
stdout
,
qr/this usage screen/
,
"
ta-tool
$param
, stdout
");
like
(
$testapp
->
stderr
,
qr/^$/
,
"
ta-tool
$param
, stderr
");
is
(
$?
>>
8
,
0
,
"
ta-tool
$param
, exit status
");
}
note
"
elastic search version
";
$testapp
->
run
(
args
=>
'
info --target-version
');
like
(
$testapp
->
stdout
,
qr/^6\.\d\.\d{1,2}$/
,
'
ta-tool elasticsearch version, stdout
');
like
(
$testapp
->
stderr
,
qr/^$/
,
'
ta-tool elasticsearch version, stderr
');
is
(
$?
>>
8
,
0
,
'
ta-tool elasticsearch version, exit status
');
1
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment