mirror of
https://github.com/sasjs/core.git
synced 2026-07-23 15:35:29 +00:00
Merge pull request #431 from sasjs/mx_createjob
fix: updates to make tests pass on viya and sasjs server for mx_creat…
This commit is contained in:
@@ -3495,7 +3495,7 @@ run;
|
|||||||
)/*/STORE SOURCE*/;
|
)/*/STORE SOURCE*/;
|
||||||
|
|
||||||
data ;
|
data ;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_comments="&sysmacroname: Test result of "!!symget('iftrue');
|
test_comments="&sysmacroname: Test result of "!!symget('iftrue');
|
||||||
%if %eval(%unquote(&iftrue)) %then %do;
|
%if %eval(%unquote(&iftrue)) %then %do;
|
||||||
@@ -3624,7 +3624,7 @@ run;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data;
|
data;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
if test_description='0'
|
if test_description='0'
|
||||||
then test_description="Testing &inds for existence of &test of: &cols";
|
then test_description="Testing &inds for existence of &test of: &cols";
|
||||||
@@ -3803,7 +3803,7 @@ run;
|
|||||||
)
|
)
|
||||||
|
|
||||||
data;
|
data;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_result='FAIL';
|
test_result='FAIL';
|
||||||
test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
|
test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
|
||||||
@@ -3918,7 +3918,7 @@ run;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data &ds;
|
data &ds;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_result='FAIL';
|
test_result='FAIL';
|
||||||
test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
|
test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
|
||||||
@@ -4082,7 +4082,7 @@ run;
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data ;
|
data ;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_comments=symget('test_comments');
|
test_comments=symget('test_comments');
|
||||||
test_result=symget('test_result');
|
test_result=symget('test_result');
|
||||||
@@ -10101,6 +10101,7 @@ filename &tempref clear;
|
|||||||
|
|
||||||
%global
|
%global
|
||||||
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
|
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
|
||||||
|
&prefix.PROCESSMODE &prefix._STPSRV_HEADER_LOC /* SASjs server specific vars*/
|
||||||
&prefix._FUNCTIONS /* used in mcf_init() to track core function compilation */
|
&prefix._FUNCTIONS /* used in mcf_init() to track core function compilation */
|
||||||
&prefix._INIT_NUM /* initialisation time as numeric */
|
&prefix._INIT_NUM /* initialisation time as numeric */
|
||||||
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
|
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@
|
|||||||
)/*/STORE SOURCE*/;
|
)/*/STORE SOURCE*/;
|
||||||
|
|
||||||
data ;
|
data ;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_comments="&sysmacroname: Test result of "!!symget('iftrue');
|
test_comments="&sysmacroname: Test result of "!!symget('iftrue');
|
||||||
%if %eval(%unquote(&iftrue)) %then %do;
|
%if %eval(%unquote(&iftrue)) %then %do;
|
||||||
|
|||||||
@@ -108,7 +108,7 @@
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data;
|
data;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
if test_description='0'
|
if test_description='0'
|
||||||
then test_description="Testing &inds for existence of &test of: &cols";
|
then test_description="Testing &inds for existence of &test of: &cols";
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
data;
|
data;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_result='FAIL';
|
test_result='FAIL';
|
||||||
test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
|
test_comments="&sysmacroname: &lib..&ds..&col has &result/&orig values "
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data &ds;
|
data &ds;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_result='FAIL';
|
test_result='FAIL';
|
||||||
test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
|
test_comments="&sysmacroname: Dataset &inds has &nobs observations.";
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
%end;
|
%end;
|
||||||
|
|
||||||
data ;
|
data ;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
test_description=symget('desc');
|
test_description=symget('desc');
|
||||||
test_comments=symget('test_comments');
|
test_comments=symget('test_comments');
|
||||||
test_result=symget('test_result');
|
test_result=symget('test_result');
|
||||||
|
|||||||
@@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
%global
|
%global
|
||||||
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
|
SASJS_PREFIX /* the ONLY hard-coded global macro variable in SASjs */
|
||||||
|
&prefix.PROCESSMODE &prefix._STPSRV_HEADER_LOC /* SASjs server specific vars*/
|
||||||
&prefix._FUNCTIONS /* used in mcf_init() to track core function compilation */
|
&prefix._FUNCTIONS /* used in mcf_init() to track core function compilation */
|
||||||
&prefix._INIT_NUM /* initialisation time as numeric */
|
&prefix._INIT_NUM /* initialisation time as numeric */
|
||||||
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
|
&prefix._INIT_DTTM /* initialisation time in E8601DT26.6 format */
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
%let test5=%mf_getvarlist(sashelp.class,typefilter=C);
|
%let test5=%mf_getvarlist(sashelp.class,typefilter=C);
|
||||||
|
|
||||||
data work.test_results;
|
data work.test_results;
|
||||||
length test_description $256 test_result $4 test_comments base result $256;
|
length test_result $4 test_description $256 test_comments base result $256;
|
||||||
test_description="Basic test";
|
test_description="Basic test";
|
||||||
base=symget('test1');
|
base=symget('test1');
|
||||||
result='Name Sex Age Height Weight';
|
result='Name Sex Age Height Weight';
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ run;
|
|||||||
)
|
)
|
||||||
%put TEST1: checking web service code;
|
%put TEST1: checking web service code;
|
||||||
data work.test_results;
|
data work.test_results;
|
||||||
length test_description $256 test_result $4 test_comments $256;
|
length test_result $4 test_description $256 test_comments $256;
|
||||||
if _n_=1 then call missing (of _all_);
|
if _n_=1 then call missing (of _all_);
|
||||||
infile compare end=eof;
|
infile compare end=eof;
|
||||||
input;
|
input;
|
||||||
|
|||||||
@@ -26,7 +26,10 @@ parmcards4;
|
|||||||
;;;;
|
;;;;
|
||||||
%mp_assertscope(SNAPSHOT)
|
%mp_assertscope(SNAPSHOT)
|
||||||
%mx_createjob(path=&mcTestAppLoc/jobs,name=testjob1,replace=YES)
|
%mx_createjob(path=&mcTestAppLoc/jobs,name=testjob1,replace=YES)
|
||||||
%mp_assertscope(COMPARE)
|
%mp_assertscope(COMPARE,ignorelist=MC0_JADP1LEN MC0_JADP2LEN MC0_JADPNUM
|
||||||
|
MC0_JADVLEN MC2_JADP1LEN MC2_JADP2LEN MC2_JADPNUM MC2_JADVLEN MC4_JADP1LEN
|
||||||
|
MC4_JADP2LEN MC4_JADPNUM MC4_JADVLEN
|
||||||
|
)
|
||||||
|
|
||||||
%mp_assert(
|
%mp_assert(
|
||||||
iftrue=(&syscc=0),
|
iftrue=(&syscc=0),
|
||||||
|
|||||||
Reference in New Issue
Block a user