@@ -177,20 +177,61 @@ About minimalistic modes:
177177In ` <prog> ` , ` --tgerr <dir> ` , ` --tgout <dir> `  and config files you can use special dynamic variables.
178178These are the following: 
179179
180- |  name                   |  description                                                      | 
181- | ------------------------| ------------------------------------------------------------------| 
182- |  ** %input_file**         |  Current input file name along with extension                     | 
183- |  ** %input_file_name**    |  Current input file without .in or .out extension                 | 
184- |  ** %input_file_folder**  |  Directory of current input file                                  | 
185- |  ** %input_file_path**    |  Full input path                                                  | 
186- |  ** %input_file_list**    |  List of all input files (separated by space) that will be loaded | 
187- |  ** %file_count**         |  Number of all input files that will be loaded                    | 
180+ |  name                     |  description                                                      | 
181+ | --------------------------| ------------------------------------------------------------------| 
182+ |  ** %input_file**           |  Current input file name along with extension                     | 
183+ |  ** %input_file_name**      |  Current input file without .in or .out extension                 | 
184+ |  ** %input_file_folder**    |  Directory of current input file                                  | 
185+ |  ** %input_file_path**      |  Full input path                                                  | 
186+ |  ** %input_file_list**      |  List of all input files (separated by space) that will be loaded | 
187+ |  ** %file_count**           |  Number of all input files that will be loaded                    | 
188+ |  ** %file_index**           |  Number of the current input file starting from 1                 | 
189+ |  ** %ok_index**             |  Current number of test that succeeded                            | 
190+ |  ** %warn_index**           |  Current number of test that generated warnnings                  | 
191+ |  ** %not_exists_index**     |  Current number of test that had problems with non existing files | 
192+ |  ** %param_prog**           |  Currently tested command                                         | 
193+ |  ** %input_prog_flag_acc**  |  Currently tested command's arguments                             | 
188194
189195Example usage: 
190196``` 
191197utest "echo %input_file" <folder> 
192198``` 
193199
200+ 
201+ Moreover you can use formatting variables (that are set via formatting switches). 
202+ Please use them instead of hard-coded values, because it's easy and improves 
203+ customizability of your output.
204+ 
205+ |  formatting variable name |  description                                    | 
206+ | --------------------------| ------------------------------------------------| 
207+ |   ** %bdebug**              |  Begins <b >DEBUG</b > text section               | 
208+ |   ** %edebug**              |  Ends <b >DEBUG</b > text section                 | 
209+ |   ** %berr**                |  Begins <b >ERROR</b > text section               | 
210+ |   ** %eerr**                |  Ends <b >ERROR</b > text section                 | 
211+ |   ** %binfo**               |  Begins <b >INFORMATION</b > text section         | 
212+ |   ** %einfo**               |  Ends <b >INFORMATION</b > text section           | 
213+ |   ** %bwarn**               |  Begins <b >WARNNING</b > text section            | 
214+ |   ** %ewarn**               |  Ends <b >WARNNING</b > text section              | 
215+ |   ** %bbold**               |  Begins <b >NOTICE</b > text section              | 
216+ |   ** %ebold**               |  Ends <b >NOTICE</b > text section                | 
217+ |   ** %bok**                 |  Begins <b >OK STATUS</b > text section           | 
218+ |   ** %eok**                 |  Ends <b >OK STATUS</b > text section             | 
219+ 
220+ Example usage: 
221+ ``` yaml 
222+ 
223+ input : ./test 
224+ executions :
225+     - prog 
226+ hooks :
227+     test_case_start :
228+         - @echo %{bwarn}Hello%{ewarn} %input_file %{bok} %ok_index %{eok} 
229+ prog :
230+     command : echo Something 
231+     
232+ ` ` ` 
233+ 
234+ 
194235## Piping 
195236
196237Utest provides easy way to preprocess your input file or postprocess program outputs.  
0 commit comments