Update framework test

This commit is contained in:
Aoran Zeng 2025-07-14 22:36:55 +08:00
parent 3e3e9aede2
commit 8f501dd50e
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98

View File

@ -3,9 +3,10 @@
* -------------------------------------------------------------
* File Authors : Aoran Zeng <ccmywish@qq.com>
* Contributors : Nil Null <nil@null.org>
* |
* Created On : <2024-12-14>
* Last Modified : <2025-07-14>
*
* DEBUG mode
* ------------------------------------------------------------*/
#define Chsrc_Version "Frameworker"
@ -78,6 +79,18 @@ main (int argc, char const *argv[])
fclose (tmp);
remove (tmpfile);
// chsrc_run_in_inline_pwsh_shell ("Write-Host \"Hello from inline PowerShell\"");
if (xy_on_windows)
{
chsrc_run_as_pwsh_file ("Write-Host \"Hello from PowerShell file\"");
}
else
{
chsrc_run_as_sh_file ("echo Hello from sh file");
chsrc_run_as_bash_file ("echo Hello from Bash file");
}
chsrc_run ("echo " Chsrc_Version " test pass!", RunOpt_Dont_Notify_On_Success);
return 0;
}