File: tuto_nonregression.rst

package info (click to toggle)
pyhst2 2020c-7
  • links: PTS, VCS
  • area: contrib
  • in suites: bookworm, sid
  • size: 13,540 kB
  • sloc: ansic: 11,807; python: 9,708; cpp: 6,786; makefile: 152; sh: 31
file content (39 lines) | stat: -rw-r--r-- 1,373 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.. _tutorial-nonregression:

Non Regression Tests
====================


  * get the datasets archive from http://ftp.esrf.fr/scisoft/PYHST2/TEST_PYHST2.tgz  and untar it somewhere. Let's say that you copy the tar file in directory named /DATA and you untar it there.
  * Now go into directory TEST_PYHST and edit the script non regression.py
  You have to edit three variables there :
    * LAUNCHING_INSTRUCTION
    * outputprefix
    * PREFIX
    * casi
  
The variable LAUNCHING_INSTRUCTION determine how the program is launche.
The following setup will launch one process of the PyHST2_2016c version
and it will use GPU number 0 of the host sciosft12, this suppose that you are on scisoft12. Change the line according to you machine and to your pyhst version ::

  LAUNCHING_INSTRUCTION  = "echo 'localhost\n' > machinefile     ; time PyHST2_2016a  input.par   scisoft12,0"

The following instruction determine where the results will be written ::

    outputprefix="/data/scisofttmp/mirone/TEST_PYHST/RESULTS/2017c/tests"

Where datasets can be found is given by PREFIX, assuming that you have untarred the data in /DATA ::
  
   PREFIX="/DATA/DATASETS/"

finally by variable *casi* you can select which  cases will be run.
By default all the one distributed with  the data archive will
be runned.

Finally you can launch the tests ::

  python nonregressions.py