Login
 

Maze for Linux

  • Increase font size
  • Default font size
  • Decrease font size

Application output

 

The standard output and standard error streams of a program are typically directed to the user's terminal:

 

standard output and standard error are directed to the terminal



However, when the program is run by maze, maze's own stdout and stderr are forwarded to the terminal. In order to avoid confusion, and to allow the user to examine the results from each run separately, maze redirects the application std streams to the files:

maze redirects the application std streams to the files


The files are namedThere is no need to memorize the naming conventions described in this section. Maze always prints out a complete path to the application output files for every single run. after run numbers in the TEST mode: 1.out, 1.err, 2.out, 2.err, etc. They are stored in the directory .maze/pid/.

.maze is created under the run directory, unless the user specifies a different pathThe path is specified via “-­d dir” command line argument..

pid is the process id of the maze TEST session itself, not the process id of the application.



Example:

The maze TEST session with a single run of a program foo:

$ maze fooSame as “maze -­r 1 foo”. The default number of runs in the TEST mode is 1.

 

foo on top of maze with pid=345

results in the following directory tree:



The directory tree .maze/345/ and the files 1.out and 1.err




Maze in RECONSTRUCTION mode does not create a new directory. It stores the results in the directory created during the corresponding TEST mode session. The stdout and stderr streams are forwarded to the files run_number.pid.out and run_number.pid.err, respectively. run_number is the number of the TEST mode run being reproduced. pid is the process id of the maze RECONSTRUCTION mode session.



Example:

If we reproduce run # 1 from the previous TEST session:

$ maze


foo is cotrolled by maze with pid=897

 

maze will redirect foo's stdout and stderr into the files .maze/345/1.897.out and .maze/345/1.897.err respectively:

 

The directory tree .maze/345/ and the files 1.out, 1.err, 1.897.out, and1.897.err