[CMake] How to use sudo in CTest
Donald MacQueen [|]
dmacq at instantiations.com
Wed May 15 18:39:25 EDT 2019
I have a suite of CTests that install and test our product on Ubuntu.
The installer requires sudo to run. I have been running the whole suite
as sudo, which is not a great idea.
So I have toyed with trying to run just the installer with sudo, but no
luck so far.
I configured sudo to run without asking for a password and that runs fine.
But these CTest COMMANDS do not:
add_test(NAME install COMMAND sudo ./vainstall aParameter )
add_test(NAME install COMMAND "sudo ./vainstall aParameter" )
What am I doing wrong?
Thanks in advance.
--
Donald [|]
A bad day in [] is better than a good day in {}.
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
More information about the CMake
mailing list