Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
argotest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Reis
argotest
Commits
1a6928dd
Commit
1a6928dd
authored
Dec 18, 2018
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readme update.
parent
fbd84589
Pipeline
#4719
passed with stage
in 31 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
47 deletions
+37
-47
.README.md
.README.md
+0
-14
README.md
README.md
+36
-32
shake.hs
shake.hs
+1
-1
No files found.
.README.md
View file @
1a6928dd
...
...
@@ -121,20 +121,6 @@ argotk.hs helloworld --help
root/argotk/argotk.hs helloworld --help
```
```
{.bash}
argotk.hs application --help
```
```
{.txt pipe="sh"}
root/argotk/argotk.hs application --help
```
```
{.bash}
argotk.hs daemon --help
```
```
{.txt pipe="sh"}
root/argotk/argotk.hs daemon --help
```
### Hacking
-
edit
`.README.md`
in place of README.md.
...
...
README.md
View file @
1a6928dd
...
...
@@ -120,19 +120,23 @@ Output:
Usage: argotk.hs COMMAND
Available options:
COMMAND Type of action to run
COMMAND Type of test to run. There are extensive options
under each action, but be careful, these do not all
have the same defaults. The default values are
printed when you call --help on these actions.
-h,--help Show this help text
Available commands:
clean Clean sockets, logfiles.
daemon Set up and launch the daemon in synchronous mode,
with properly cleaned sockets, logfiles.
application Setup stack and run an arbitrary command in a
container.
stack Setup stack and run a command in a container.
grep Setup stack and look for a message in the daemon's
standard output.
helloworld Test 1: Setup stack and check that a hello world app
sends message back to cmd.
perfwrapper Test 2: Setup stack and check that a
hello world app
sends
message back to cmd. Uses argo-perf-wrapper
.
perfwrapper Test 2: Setup stack and check that a
rgo-perf-wrapper
sends
at least one progress message up
.
```
```
{.bash}
...
...
@@ -140,37 +144,37 @@ argotk.hs helloworld --help
```
```
{.txt}
Usage: argotk.hs helloworld
Usage: argotk.hs helloworld [--application APP]
[--container_name ARGO_CONTAINER_UUID]
[--output FILE] [--manifest_directory FILE]
[--manifest_name FILE] [--cmd_out FILE]
[--cmd_err FILE] [--daemon_out FILE]
[--daemon_err FILE] [--nrm_log FILE]
[--time_file FILE]
Test 1: Setup stack and check that a hello world app sends message back to
cmd.
Available options:
-h,--help Show this help text
```
```
{.bash}
argotk.hs application --help
```
```
{.txt}
Usage: argotk.hs application COMMAND
Setup stack and run an arbitrary command in a container.
Available options:
COMMAND Application to run inside the container
-h,--help Show this help text
```
```
{.bash}
argotk.hs daemon --help
```
```
{.txt}
Usage: argotk.hs daemon
Set up and launch the daemon in synchronous mode, with properly cleaned
sockets, logfiles.
Available options:
--application APP Target application call, sh+path
valid (default: "echo helloworld")
--container_name ARGO_CONTAINER_UUID
Container name (default: "testContainer")
--output FILE Working directory. (default: FilePath "_output")
--manifest_directory FILE
Manifest lookup
directory (default: FilePath "/nix/store/9hbj77178wrp2pv8qs6d063afhdymgk2-manifests")
--manifest_name FILE Manifest basename (default: FilePath "basic.json")
--cmd_out FILE Output file, application
stdout (default: FilePath "cmd_out.log")
--cmd_err FILE Output file, application
stderr (default: FilePath "cmd_err.log")
--daemon_out FILE Output file, daemon
stdout (default: FilePath "daemon_out.log")
--daemon_err FILE Output file, daemon
stderr (default: FilePath "daemon_err.log")
--nrm_log FILE Output file, daemon log (default: FilePath "nrm.log")
--time_file FILE Output file, application
runtime (default: FilePath "time.log")
-h,--help Show this help text
```
...
...
shake.hs
View file @
1a6928dd
...
...
@@ -16,7 +16,7 @@ main = shakeArgs shakeOptions $ do
"README.md"
%>
\
out
->
do
let
template
=
".README.md"
need
[
template
]
need
[
template
,
"argotk/argotk.hs"
,
"argo/src/Argo/Stack.hs"
]
(
Stdout
panpipe
)
<-
cmd
"which panpipe"
cmd_
"pandoc --filter"
[
take
(
length
panpipe
-
1
)
panpipe
,
template
,
"-o"
,
out
]
...
...
Write
Preview
Markdown
is supported
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