| JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) |
| if has OSX $NODE_LABELS; then |
| security unlock-keychain -p named-data |
| ndnsec-keygen "/tmp/jenkins/$NODE_NAME" | ndnsec-install-cert - |
| if [[ $1 == sudo ]]; then |
| ${sudo} ./build/unit-tests-${module} -l all "$@" -- --log_format2=XML --log_sink2="build/xunit-${count}-${module}${sudo:+-}${sudo}.xml" |
| ${sudo} ./build/unit-tests-${module} -l test_suite "$@" |
| # First run all tests as unprivileged user |
| # Then use sudo to run those tests that need superuser powers |
| run_tests sudo core -t TestPrivilegeHelper |
| run_tests sudo daemon -t Face/TestEthernetFactory,TestEthernetTransport |
| run_tests sudo daemon -t Mgmt/TestGeneralConfigSection/UserAndGroupConfig,NoUserConfig |
| run_tests sudo daemon -t Mgmt/TestFaceManager/ProcessConfig/ProcessSectionUdp,ProcessSectionUdpMulticastReinit,ProcessSectionEther,ProcessSectionEtherMulticastReinit |