Script runs all unit tests for app-installer.
After all the results are available in xml files in
/usr/bin/app-installers-ut/ directory.
Change-Id: Ibe8ecd349b272cd00ad1761d906f548ca7ce4321
xml_parser_unittest.cc ../xml_parser/xml_parser.cc)
INSTALL(DIRECTORY test_samples/ DESTINATION ${SHAREDIR}/${DESTINATION_DIR}/test_samples)
+INSTALL(FILES run-unit-tests.sh DESTINATION ${BINDIR}/app-installers-ut/
+ PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ)
FOREACH(test ${TESTS})
APPLY_PKG_CONFIG(${test} PUBLIC
--- /dev/null
+#!/bin/sh
+
+test_dir="`dirname $0`/*"
+for file in $test_dir
+do
+ if test -f "$file"; then
+ if [[ -x "$file" && ${file: -3} != ".sh" ]]; then
+ $file --gtest_output=xml:$file.xml
+ fi
+ fi
+done