1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-05 00:20:05 +00:00

feat: new gitreleaseinfo macro and associated test

This commit is contained in:
munja
2022-10-15 17:09:26 +01:00
parent ee35f47f4f
commit 2666bbc85e
2 changed files with 104 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
/**
@file
@brief Testing mp_gitreleaseinfo.sas macro
<h4> SAS Macros </h4>
@li mp_gitreleaseinfo.sas
@li mp_assert.sas
**/
%mp_gitreleaseinfo(github,sasjs/core,outlib=mylibref,mdebug=1)
%mp_assert(
iftrue=(&syscc=0),
desc=mp_gitreleaseinfo runs without errors,
outds=work.test_results
)
data _null_;
set mylibref.author;
putlog (_all_)(=);
call symputx('author',login);
run;
%mp_assert(
iftrue=(&author=sasjsbot),
desc=release info extracted successfully,
outds=work.test_results
)