Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TestServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
YAPEX
TestServer
Commits
c7ad6d34
Commit
c7ad6d34
authored
2 years ago
by
Janis Daniel Dähne
Browse files
Options
Downloads
Patches
Plain Diff
- added some comments
parent
403c4b6e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
api.php
+1
-0
1 addition, 0 deletions
api.php
bootstrap.php
+1
-1
1 addition, 1 deletion
bootstrap.php
do_externalCheckerTest_func.php
+2
-7
2 additions, 7 deletions
do_externalCheckerTest_func.php
readme.md
+4
-0
4 additions, 0 deletions
readme.md
with
8 additions
and
8 deletions
api.php
+
1
−
0
View file @
c7ad6d34
...
...
@@ -630,6 +630,7 @@ foreach ($testCases as $test) {
}
else
{
# Note showTestRunnerDebugOutput this is stored in calling service (part of response)
$showTestRunnerDebugOutput
=
FALSE
;
if
(
isset
(
$config
[
'showTestRunnerDebugOutput'
]))
{
$showTestRunnerDebugOutput
=
$config
[
'showTestRunnerDebugOutput'
];
...
...
This diff is collapsed.
Click to expand it.
bootstrap.php
+
1
−
1
View file @
c7ad6d34
...
...
@@ -69,7 +69,7 @@ $config[$s_arg_insertTraceLogs] = $row[$s_arg_insertTraceLogs];
$config
[
'maxNumberOfTestsWithOneRequest'
]
=
$row
[
'maxNumberOfTestsWithOneRequest'
];
$config
[
'runner'
]
=
$row
[
'runner'
];
$config
[
'showTestRunnerDebugOutput'
]
=
$row
[
'showTestRunnerDebugOutput'
]
===
'1'
;
$config
[
'showTestRunnerDebugOutput'
]
=
$row
[
'showTestRunnerDebugOutput'
]
===
'1'
;
# Note showTestRunnerDebugOutput this is stored in calling service (part of response)
$config
[
'environmentVars'
]
=
$row
[
'environmentVars'
];
//parse environmentVars
...
...
This diff is collapsed.
Click to expand it.
do_externalCheckerTest_func.php
+
2
−
7
View file @
c7ad6d34
...
...
@@ -44,8 +44,7 @@ function do_externalCheckerTest($conn, $traceString, $sourceCode, $mainFileName
global
$isDebug
;
global
$config
;
global
$s_command_blackBoxTest
;
global
$s_command_justRunTest
;
global
$s_command_externalCheckerTest
;
global
$s_test_content
;
global
$s_test_allAssets
;
global
$s_return_val
;
...
...
@@ -61,11 +60,7 @@ function do_externalCheckerTest($conn, $traceString, $sourceCode, $mainFileName
global
$s_points
;
$command_to_execute_string
=
$s_command_blackBoxTest
;
if
(
$justRun
)
{
$command_to_execute_string
=
$s_command_justRunTest
;
}
$command_to_execute_string
=
$s_command_externalCheckerTest
;
# compile is done in the runner
...
...
This diff is collapsed.
Click to expand it.
readme.md
+
4
−
0
View file @
c7ad6d34
...
...
@@ -80,6 +80,10 @@ The commands will probably require the users files (code). This files can be acc
*
**#9**
- all other files (all user files excluding the main file) absolute paths with extension
*
**#10**
- the max points for the test (one can give more or less points, just as a hint)
-
this is normally only set for external checkers, for other test types this contains -1
*
**#11**
- "true"/"false" if the checker should output the achieved points or not
-
default is true, is specified in the test content as
`evaluate:true/false`
-
only used for external checkers
*
**#50**
- contains the timeout in ms
*
**#51**
- contains the memory limit in kb
...
...
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