nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib/popcorn: extract Router::handler_in private service
[nit.git]
/
contrib
/
nitester
/
src
/
nitester.nit
diff --git
a/contrib/nitester/src/nitester.nit
b/contrib/nitester/src/nitester.nit
index
11df5b2
..
0904053
100644
(file)
--- a/
contrib/nitester/src/nitester.nit
+++ b/
contrib/nitester/src/nitester.nit
@@
-77,7
+77,7
@@
abstract class Processor
var engines: Array[String] is noinit
# All known engines, used to detect errors in `engines`
var engines: Array[String] is noinit
# All known engines, used to detect errors in `engines`
- var all_engines: Array[String] = ["nitg-s", "nitg-sg", "nitg-g", "nitg-e", "niti", "emscripten"]
+ var all_engines: Array[String] = ["nitcs", "nitcsg", "nitcg", "nitce", "niti", "emscripten"]
# Programs to test in this execution
var test_programs: Array[String] is noinit
# Programs to test in this execution
var test_programs: Array[String] is noinit
@@
-131,7
+131,6
@@
abstract class Processor
else
full_path.file_delete
end
else
full_path.file_delete
end
- stat.free
end
mpi.finalize
exit 0
end
mpi.finalize
exit 0
@@
-150,7
+149,7
@@
abstract class Processor
var engines
if engines_str == null then
# default
var engines
if engines_str == null then
# default
- engines = ["nitg-s"]
+ engines = ["nitcs"]
else
engines = engines_str.split(',')
else
engines = engines_str.split(',')
@@
-171,7
+170,7
@@
abstract class Processor
end
# All tasks to be performed
end
# All tasks to be performed
- var tasks = new Array[Task]
+ var tasks = new Array[TesterTask]
# Gather and register all tasks
fun create_tasks
# Gather and register all tasks
fun create_tasks
@@
-194,7
+193,7
@@
abstract class Processor
continue label
end
continue label
end
- tasks.add new Task(engine, prog)
+ tasks.add new TesterTask(engine, prog)
end label
end
end
end label
end
end
@@
-430,7
+429,7
@@
class Worker
# Single C `int` to hold the next task id received from the `Controller`
var task_buffer = new CIntArray(1)
# Single C `int` to hold the next task id received from the `Controller`
var task_buffer = new CIntArray(1)
- # Manage communication with the `Controller` and execute dispatched `Task`s
+ # Manage communication with the `Controller` and execute dispatched `TesterTask`s
fun work_on_tasks
do
var status = new Status
fun work_on_tasks
do
var status = new Status
@@
-567,7
+566,7
@@
end
#
# Note that a task may involve more than one program to test considering the
# alts and args for the `test_program`.
#
# Note that a task may involve more than one program to test considering the
# alts and args for the `test_program`.
-class Task
+class TesterTask
# Engine to test executing `test_program`
var engine: String
# Engine to test executing `test_program`
var engine: String
@@
-577,12
+576,12
@@
class Task
redef fun to_s do return "{engine} {test_program}"
end
redef fun to_s do return "{engine} {test_program}"
end
-# Result of a `Task`
+# Result of a `TesterTask`
#
#
-# There may be more than one result per `Task`.
+# There may be more than one result per `TesterTask`.
class Result
class Result
- # `Task` associated to `self`
- var task: Task
+ # `TesterTask` associated to `self`
+ var task: TesterTask
# Argument index of the execution resulting in `self`
var arg: Int
# Argument index of the execution resulting in `self`
var arg: Int