SASUnit Examples  Version 1.2
run_all.sas
Go to the documentation of this file.
1 
28 /* change history
29  29.01.2013 KL changed link from _sasunit_doc.sas to Sourceforge SASUnit User's Guide
30  30.08.2012 KL Values for rootpath of SASUnit, language and overwrite are taken over from OS-Variables.
31  So there is no need to change run_all for operating systems or languages
32  05.09.2008 NA Anpassungen Linux
33  06.02.2008 AM Neuerstellung
34 */
35 
36 OPTIONS
37  MPRINT MAUTOSOURCE NOMLOGIC NOSYMBOLGEN
38  SASAUTOS=(SASAUTOS "%sysget(SASUNIT_ROOT)/saspgm/sasunit") /* SASUnit macro library */
39 ;
40 
41 /* open test repository or create when needed */
42 %initSASUnit(
43  i_root = %sysget(SASUNIT_ROOT) /* root path, all other paths can then be relative paths */
44  ,io_target = example/doc/sasunit/%lowcase(%sysget(SASUNIT_LANGUAGE)) /* Output of SASUnit: test repository, logs, results, reports */
45  ,i_overwrite = %sysget(SASUNIT_OVERWRITE) /* set to 1 to force all test scenarios to be run, else only changed
46  scenarios or scenarios with changed unit under test will be run*/
47  ,i_project = SASUnit Examples /* Name of project, for report */
48  ,i_sasunit = saspgm/sasunit /* SASUnit macro library */
49  ,i_sasautos = example/saspgm /* Search for units under test here */
50  ,i_testdata = example/dat /* test data, libref testdata */
51  ,i_refdata = example/dat /* reference data, libref refdata */
52  ,i_sascfg = example/bin/sasunit.%sysget(SASUNIT_SAS_VERSION).%lowcase(%sysget(SASUNIT_HOST_OS)).%lowcase(%sysget(SASUNIT_LANGUAGE)).cfg
53 )
54 
55 /* Run specified test scenarios. There can be more than one call to runSASUnit */
56 %runSASUnit(i_source = example/saspgm/%str(*)_test.sas)
57 
58 /* Create or recreate HTML pages for report where needed */
59 %reportSASUnit(
60  i_language=%upcase(%sysget(SASUNIT_LANGUAGE))
61 );
62