External commands have been improved and many test cases were added (check_wrap_test_helpers.go)
.bat, .ps1 and .exe files can be run without using command wrapping. Variations of ARG macros were implemented.
Also scripts with blank spaces in their path (like "C:\Program Files\snclient\scripts") can be run now.
(check_service_linux_test had to be updated, so that it starts with a nonempty config. The new function to run external commands (systemctl in this case) requires at least the default config settings)
External commands have been improved and many test cases were added (check_wrap_test_helpers.go) .bat, .ps1 and .exe files can be run without using command wrapping. Variations of ARG macros were implemented. Also scripts with blank spaces in their path (like "C:\Program Files\snclient\scripts") can be run now.
(check_service_linux_test had to be updated, so that it starts with a nonempty config. The new function to run external commands (systemctl in this case) requires at least the default config settings)