Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
980926a9
Commit
980926a9
authored
Oct 08, 2008
by
preston.jackson
Browse files
Adding tests to Xcode project
parent
64cdcb69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3706 additions
and
590 deletions
+3706
-590
xcode/Config/InternalTestTarget.xcconfig
xcode/Config/InternalTestTarget.xcconfig
+8
-0
xcode/Config/TestTarget.xcconfig
xcode/Config/TestTarget.xcconfig
+7
-0
xcode/Scripts/runtests.sh
xcode/Scripts/runtests.sh
+56
-0
xcode/gtest.xcodeproj/project.pbxproj
xcode/gtest.xcodeproj/project.pbxproj
+3635
-590
No files found.
xcode/Config/InternalTestTarget.xcconfig
0 → 100644
View file @
980926a9
//
// InternalTestTarget.xcconfig
//
// These are Test target settings for the gtest framework and examples. It
// is set in the "Based On:" dropdown in the "Target" info dialog.
PRODUCT_NAME = $(TARGET_NAME)
HEADER_SEARCH_PATHS = "../"
\ No newline at end of file
xcode/Config/TestTarget.xcconfig
0 → 100644
View file @
980926a9
//
// TestTarget.xcconfig
//
// These are Test target settings for the gtest framework and examples. It
// is set in the "Based On:" dropdown in the "Target" info dialog.
PRODUCT_NAME = $(TARGET_NAME)
xcode/Scripts/runtests.sh
0 → 100644
View file @
980926a9
#!/bin/bash
# Executes the samples and tests for the Google Test Framework
# Help the dynamic linker find the path to the framework
export
DYLD_FRAMEWORK_PATH
=
$BUILT_PRODUCTS_DIR
# Create an array of test executables
test_executables
=(
"
$BUILT_PRODUCTS_DIR
/sample1_unittest"
"
$BUILT_PRODUCTS_DIR
/sample2_unittest"
"
$BUILT_PRODUCTS_DIR
/sample3_unittest"
"
$BUILT_PRODUCTS_DIR
/sample4_unittest"
"
$BUILT_PRODUCTS_DIR
/sample5_unittest"
"
$BUILT_PRODUCTS_DIR
/sample6_unittest"
"
$BUILT_PRODUCTS_DIR
/gtest_unittest"
"
$BUILT_PRODUCTS_DIR
/gtest-death-test_test"
"
$BUILT_PRODUCTS_DIR
/gtest-filepath_test"
"
$BUILT_PRODUCTS_DIR
/gtest-message_test"
"
$BUILT_PRODUCTS_DIR
/gtest-options_test"
"
$BUILT_PRODUCTS_DIR
/gtest_pred_impl_unittest"
"
$BUILT_PRODUCTS_DIR
/gtest_environment_test"
"
$BUILT_PRODUCTS_DIR
/gtest_no_test_unittest"
"
$BUILT_PRODUCTS_DIR
/gtest_main_unittest"
"
$BUILT_PRODUCTS_DIR
/gtest_prod_test"
"
$BUILT_PRODUCTS_DIR
/gtest_repeat_test"
"
$BUILT_PRODUCTS_DIR
/gtest_stress_test"
"
$BUILT_PRODUCTS_DIR
/gtest-typed-test_test"
"
$BUILT_PRODUCTS_DIR
/gtest_output_test.py"
"
$BUILT_PRODUCTS_DIR
/gtest_color_test.py"
"
$BUILT_PRODUCTS_DIR
/gtest_env_var_test.py"
"
$BUILT_PRODUCTS_DIR
/gtest_filter_unittest.py"
"
$BUILT_PRODUCTS_DIR
/gtest_break_on_failure_unittest.py"
"
$BUILT_PRODUCTS_DIR
/gtest_list_tests_unittest.py"
"
$BUILT_PRODUCTS_DIR
/gtest_xml_output_unittest.py"
"
$BUILT_PRODUCTS_DIR
/gtest_xml_outfiles_test.py"
"
$BUILT_PRODUCTS_DIR
/gtest_uninitialized_test.py"
)
# Now execute each one in turn keeping track of how many succeeded and failed.
succeeded
=
0
failed
=
0
for
test
in
${
test_executables
[*]
}
;
do
"
$test
"
result
=
$?
if
[
$result
-eq
0
]
;
then
succeeded
=
$((
$succeeded
+
1
))
else
failed
=
$((
failed
+
1
))
fi
done
# Report the successes and failures to the console
echo
"Tests complete with
$succeeded
successes and
$failed
failures."
exit
$failed
xcode/gtest.xcodeproj/project.pbxproj
View file @
980926a9
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment