Commit 1293356e authored by Valentin Reis's avatar Valentin Reis

Augmenting test regexes.

parent fea26201
Pipeline #5015 failed with stage
in 45 seconds
......@@ -90,7 +90,8 @@ configureTest = \case
, cmdlistenprogress = JustRun (StdOutLog "progress.csv")
(StdErrLog "progress.log")
}
, description = "Set up and start daemon, run a command in a container."
, description = "Set up and start daemon, run a command in a container and\
\ log performance+power+progress."
, isTest = NotTest
}
TestHello -> TestSpec
......@@ -105,23 +106,23 @@ configureTest = \case
(StdOutLog "monitored-cmdrun-out.log")
(StdErrLog "monitored-cmdrun-err.log")
}
, description = "1: Setup stack and check that a hello world app sends \
\message back to cmd."
, description = "Setup stack and check that a hello world app sends \
\message back to cmd's stdout."
, isTest = IsTest
}
TestListen -> TestSpec
{ stackArgsUpdate = \sa -> sa
{ app = AppName "sleep"
, args = [AppArg "15"]
, args = [AppArg "1"]
, daemon = daemonBehavior
, cmdrun = runBehavior
, cmdlisten = listentestBehavior
(TestText (TextBehaviorStdout (WaitFor "start"))
(TestText (TextBehaviorStdout (WaitFor "container_exit"))
(TextBehaviorStderr ExpectClean)
)
}
, description = "2: Setup stack and check that argo-perf-wrapper sends\
\ at least one message to the daemon."
, description = "Setup stack, run command and check that cmd listen receives\
\ at least the container_exit message from the daemon."
, isTest = IsTest
}
TestPerfwrapper -> TestSpec
......@@ -132,11 +133,11 @@ configureTest = \case
, daemon = daemonBehavior
, cmdrun = runBehavior
, cmdlistenperformance = listenperformancetestBehavior
(TestText (TextBehaviorStdout (WaitFor ","))
(TestText (TextBehaviorStdout (WaitFor "performance"))
(TextBehaviorStderr ExpectClean)
)
}
, description = "3: Setup stack and check that argo-perf-wrapper sends\
, description = "Setup stack and check that argo-perf-wrapper sends\
\ at least one *performance* message to cmd listen through the\
\ daemon."
, isTest = IsTest
......@@ -148,12 +149,12 @@ configureTest = \case
, daemon = daemonBehavior
, cmdrun = runBehavior
, cmdlistenpower = listenpowertestBehavior
(TestText (TextBehaviorStdout (WaitFor ","))
(TestText (TextBehaviorStdout (WaitFor "power"))
(TextBehaviorStderr ExpectClean)
)
}
, description = "4: Setup stack and check that the daemon sends\
\ at least one *power* message."
, description = "Setup stack and check that the daemon sends\
\ at least one *power* message to cmd listen."
, isTest = IsTest
}
TestAMG -> TestSpec
......@@ -177,11 +178,11 @@ configureTest = \case
, daemon = daemonBehavior
, cmdrun = runBehavior
, cmdlistenprogress = listenprogresstestBehavior
(TestText (TextBehaviorStdout (WaitFor ","))
(TestText (TextBehaviorStdout (WaitFor "progress"))
(TextBehaviorStderr ExpectClean)
)
}
, description = "5: Setup stack, run AMG and check that it sends\
, description = "Setup stack, run AMG and check that it sends\
\ at least one progress message to the daemon."
, isTest = IsTest
}
......@@ -192,11 +193,11 @@ configureTest = \case
, daemon = daemonBehavior
, cmdrun = runBehavior
, cmdlistenprogress = listenprogresstestBehavior
(TestText (TextBehaviorStdout (WaitFor ","))
(TestText (TextBehaviorStdout (WaitFor "progress"))
(TextBehaviorStderr ExpectClean)
)
}
, description = "6: Setup stack, run STREAM and check that it sends\
, description = "Setup stack, run STREAM and check that it sends\
\ at least one progress message to the daemon."
, isTest = IsTest
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment