Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandru Croitor
minicoin
Commits
db1cfda6
Commit
db1cfda6
authored
Mar 06, 2022
by
Volker Hilsheimer
Browse files
Rename "test" job to "selftest"
parent
0713563d
Changes
12
Hide whitespace changes
Inline
Side-by-side
minicoin/jobs/test/help.txt
→
minicoin/jobs/
self
test/help.txt
View file @
db1cfda6
File moved
minicoin/jobs/test/main.cmd
→
minicoin/jobs/
self
test/main.cmd
View file @
db1cfda6
File moved
minicoin/jobs/test/main.ps1
→
minicoin/jobs/
self
test/main.ps1
View file @
db1cfda6
File moved
minicoin/jobs/test/main.sh
→
minicoin/jobs/
self
test/main.sh
View file @
db1cfda6
File moved
minicoin/jobs/test/matchers.yml
→
minicoin/jobs/
self
test/matchers.yml
View file @
db1cfda6
File moved
minicoin/jobs/test/post-run.rb
→
minicoin/jobs/
self
test/post-run.rb
View file @
db1cfda6
module
T
est
module
Selft
est
def
self
.
post_run
(
vm
,
*
args
)
vm
.
ui
.
info
"Post-run for
#{
vm
.
name
}
"
end
...
...
minicoin/jobs/test/post-run.sh
→
minicoin/jobs/
self
test/post-run.sh
View file @
db1cfda6
File moved
minicoin/jobs/test/pre-run.rb
→
minicoin/jobs/
self
test/pre-run.rb
View file @
db1cfda6
module
T
est
module
Selft
est
def
self
.
pre_run
(
vm
,
*
args
)
vm
.
ui
.
info
"Pre-run for
#{
vm
.
name
}
"
end
...
...
minicoin/jobs/test/pre-run.sh
→
minicoin/jobs/
self
test/pre-run.sh
View file @
db1cfda6
File moved
minicoin/lib/plugins/commands/run.rb
View file @
db1cfda6
...
...
@@ -772,7 +772,7 @@ module Minicoin
begin
require
"
#{
@job
.
path
}
/
#{
type
}
-run"
@job
.
log_verbose
(
@vm
.
ui
,
"Running
#{
type
}
-run ruby script for
#{
@job
.
name
}
"
)
eval
(
"
#{
@job
.
name
.
gsub
(
"-"
,
"_"
).
capitalize
}
::
#{
type
}
_run(@vm)"
)
eval
(
"
::
#{
@job
.
name
.
gsub
(
"-"
,
"_"
).
capitalize
}
::
#{
type
}
_run(@vm)"
)
rescue
LoadError
=>
e
end
ext
=
Vagrant
::
Util
::
Platform
.
windows?
?
"cmd"
:
"sh"
...
...
minicoin/tests/.minicoin/minicoin.yml
View file @
db1cfda6
...
...
@@ -9,14 +9,14 @@ settings:
no-hostname
:
true
jobconfigs
:
&testconfigs
-
job
:
test
-
job
:
self
test
name
:
simple
options
:
param1
:
value1
param2
:
value2
flag
:
-
job
:
test
-
job
:
self
test
name
:
complicated
options
:
array1
:
...
...
@@ -25,7 +25,7 @@ jobconfigs: &testconfigs
spacey
:
foo bar
quoted
:
hello "world"
-
job
:
test
-
job
:
self
test
name
:
colored
options
:
param1
:
text
...
...
minicoin/tests/runner.sh
View file @
db1cfda6
...
...
@@ -107,10 +107,10 @@ then
if
[
$count
-eq
0
]
;
then
echo
"No machines running, bring up test machines for more tests"
else
echo
"Running test on
$count
machines in sequence"
echo
"Running
self
test on
$count
machines in sequence"
stdout
=
""
stderr
=
""
minicoin run
--jobconfig
0
test
${
machines
[@]
}
--
error
>
.std.out 2> .std.err
minicoin run
--jobconfig
0
self
test
${
machines
[@]
}
--
error
>
.std.out 2> .std.err
return
=
$?
stdout
=
`
grep
"Hello"
.std.out
`
...
...
@@ -132,13 +132,13 @@ then
printf
"
${
RED
}
Skipping advanced tests due to earlier errors
${
NOCOL
}
\n
"
else
echo
"Running test on
$count
machines in parallel"
minicoin run
--parallel
--jobconfig
0
test
"
${
machines
[@]
}
"
>
.std.out 2> .std.err
minicoin run
--parallel
--jobconfig
0
self
test
"
${
machines
[@]
}
"
>
.std.out 2> .std.err
return
=
$?
rm
.std.out
rm
.std.err
assert
$return
0
minicoin run
--parallel
--jobconfig
0
test
"
${
machines
[@]
}
"
--
error
>
.std.out 2> .std.err
minicoin run
--parallel
--jobconfig
0
self
test
"
${
machines
[@]
}
"
--
error
>
.std.out 2> .std.err
return
=
$?
rm
.std.out
rm
.std.err
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment