3. Operands#
3.1. Generalities#
This command is used to generate « pieces » of files that can be included in the command file of a test in order to verify the « non-regression » of the code.
When you don’t use the FORMAT =” OBJET “keyword (which is recommended), there are fewer types of concepts you can test: tables, fields, and sd_results. For each concept, the ENGENDRE_TEST command will generate a TEST_TABLE or TEST_RESU command.
If the concept is a table, each column in the table will be tested. If the concept is an sd_result, all fields will be tested for all order numbers.
If we use the keyword FORMAT =” OBJET “(which is not recommended), the command will write lines of the type to the file attached to the iunit unit (RESULTAT by default) lines of the type:
_F (NOM =' CHAMEL14. VALE ', S_R=-1.45779E+08, PRECISION =1.D-5,),
_F (NOM =' CHAMNO3. VALE ', S_R= 1.16344E+06, PRECISION =1.D-5,),
_F (NOM =' LR3. NBPA ', S_I= 5, PRECISION =0.,),
_F (NOM =' LR3. BINT ', S_R= 1.00000E+01, PRECISION =1.D-5,),
_F (NOM =' LR3. VALE ', S_R= 3.00000E+01, PRECISION =1.D-5,),
_F (NOM =' FO20. VALE ', S_R=-1.16733E+06, PRECISION =1.D-5,),
These lines can then be inserted into the text of a TEST_RESU command:
TEST_RESU (OBJET = (
< lignes insérées><>
),)
Each line will result in one occurrence of the OBJET keyword from the TEST_RESU command. We will therefore test the non-regression of the content of the specified JEVEUX objects.
To be able to print the content of objects JEVEUX, these objects must obviously exist and that is why this command is generally called at the end of the command file.
3.2. Operand TOUT#
♦/TOUT = 'OUI'
All objects present on base GLOBALE at the time of the call to ENGENDRE_TEST will be subject to a non-regression test.
3.3. CO operand#
/CO = l_conc
l_conc is the list of concepts for which we want to generate non-regression tests.
3.4. Operand TYPE_TEST = “SOMME”#
For each JEVEUX object selected, we test:
SOMME |
The tested value corresponds to the sum of the values of the numbers contained in the object. |
SOMME_ABS |
The tested value corresponds to the sum of the absolute values of the numbers in the object. |
MIN |
The tested value corresponds to the minimum of the values of the numbers contained in the object. |
MAX |
The tested value corresponds to the maximum of the values of the numbers contained in the object. |
3.5. Operand UNITE#
◊ UNITE =/unit,
/8
This integer allows you to choose the logical unit of the file where the printing will be done. By default the printing will be done on the logical unit associated with the file fort.8.
3.6. Operand FORMAT_R#
◊ FORMAT_R =/format,
/”1 PE20 .13”, [DEFAUT]
This character string allows you to choose the number of decimals printed for real numbers.
3.7. Operand PREC_R#
◊ PREC_R =/prec,
/”1.E-10”, [DEFAUT]
This character string allows you to choose the precision with which the test will be done in the TEST_RESU command (for floating numbers).