├── .clang-tidy ├── .ecrc ├── .editorconfig ├── .idea ├── iutest.iml ├── misc.xml ├── modules.xml └── vcs.xml ├── CHANGES.md ├── CMakeLists.txt ├── CONTRIBUTING.md ├── CPPLINT.cfg ├── Earthfile ├── LICENSE ├── Makefile ├── README.md ├── cmake └── iutest-config.cmake ├── docs ├── Doxyfile ├── LICENSE-MIXING ├── Makefile ├── cover.html ├── css │ └── doc.css ├── doxygen_filter.py ├── gource │ ├── Makefile │ └── make.bat ├── images │ └── iuwandbox_sample.png ├── index.html ├── make_html.bat ├── osdn │ └── doc │ │ └── .htaccess ├── primer.html ├── sidebar.html ├── status │ └── compiler_os_ci_status.rst ├── twilio.html └── wandbox.html ├── fused-src └── Makefile ├── include ├── gtest │ ├── iutest_assertion_only.hpp │ ├── iutest_gmock_ver.hpp │ ├── iutest_gtest_ver.hpp │ ├── iutest_spi_switch.hpp │ ├── iutest_switch.hpp │ ├── iutest_switch_for_gtest.hpp │ ├── iutest_switch_for_iutest.hpp │ └── switch │ │ ├── iutest_switch_assert.hpp │ │ ├── iutest_switch_assertion_return.hpp │ │ ├── iutest_switch_assume.hpp │ │ ├── iutest_switch_cmphelper.hpp │ │ ├── iutest_switch_core.hpp │ │ ├── iutest_switch_expect.hpp │ │ ├── iutest_switch_filepath.hpp │ │ ├── iutest_switch_gmock.hpp │ │ ├── iutest_switch_inform.hpp │ │ ├── iutest_switch_no_failure.hpp │ │ ├── iutest_switch_package.hpp │ │ ├── iutest_switch_peep.hpp │ │ ├── iutest_switch_pmz.hpp │ │ ├── iutest_switch_port.hpp │ │ ├── iutest_switch_pred.hpp │ │ ├── iutest_switch_skip.hpp │ │ └── iutest_switch_throw_value.hpp ├── impl │ ├── iutest_body.ipp │ ├── iutest_charcode.ipp │ ├── iutest_core.ipp │ ├── iutest_core_impl.ipp │ ├── iutest_debug.ipp │ ├── iutest_default_printer.ipp │ ├── iutest_default_xml_generator.ipp │ ├── iutest_env.ipp │ ├── iutest_filepath.ipp │ ├── iutest_info.ipp │ ├── iutest_junit_xml_generator.ipp │ ├── iutest_listener.ipp │ ├── iutest_message.ipp │ ├── iutest_port.ipp │ ├── iutest_regex.ipp │ ├── iutest_streaming_listener.ipp │ ├── iutest_suite.ipp │ └── iutest_time.ipp ├── internal │ ├── iutest_charcode.hpp │ ├── iutest_compatible_defs.hpp │ ├── iutest_compiler.hpp │ ├── iutest_console.hpp │ ├── iutest_constant.hpp │ ├── iutest_core_impl.hpp │ ├── iutest_debug.hpp │ ├── iutest_default_main.hpp │ ├── iutest_exception.hpp │ ├── iutest_factory.hpp │ ├── iutest_file.hpp │ ├── iutest_filepath.hpp │ ├── iutest_genparams.hpp │ ├── iutest_genparams_from_file.hpp │ ├── iutest_internal.hpp │ ├── iutest_internal_defs.hpp │ ├── iutest_list.hpp │ ├── iutest_log_stream.hpp │ ├── iutest_mediator.hpp │ ├── iutest_message.hpp │ ├── iutest_mfc.hpp │ ├── iutest_option_message.hpp │ ├── iutest_params_util.hpp │ ├── iutest_platform.hpp │ ├── iutest_pool.hpp │ ├── iutest_port.hpp │ ├── iutest_pp.hpp │ ├── iutest_pragma.hpp │ ├── iutest_random.hpp │ ├── iutest_regex.hpp │ ├── iutest_result_reporter.hpp │ ├── iutest_socket.hpp │ ├── iutest_stdlib.hpp │ ├── iutest_stdlib_defs.hpp │ ├── iutest_stream.hpp │ ├── iutest_stream_capture.hpp │ ├── iutest_string.hpp │ ├── iutest_string_stream.hpp │ ├── iutest_string_view.hpp │ ├── iutest_tchar.hpp │ ├── iutest_time.hpp │ ├── iutest_type_traits.hpp │ ├── iutest_typed_util.hpp │ └── iutest_typelist.hpp ├── iutest.hpp ├── iutest_any.hpp ├── iutest_assertion.hpp ├── iutest_body.hpp ├── iutest_case.hpp ├── iutest_config.hpp ├── iutest_core.hpp ├── iutest_defs.hpp ├── iutest_env.hpp ├── iutest_expression_assertion.hpp ├── iutest_ignore.hpp ├── iutest_info.hpp ├── iutest_legacy.hpp ├── iutest_listener.hpp ├── iutest_matcher.hpp ├── iutest_package.hpp ├── iutest_param_tests.hpp ├── iutest_pred.hpp ├── iutest_printers.hpp ├── iutest_prod.hpp ├── iutest_result.hpp ├── iutest_spi.hpp ├── iutest_static_assertion.hpp ├── iutest_suite.hpp ├── iutest_typed_tests.hpp ├── iutest_util.hpp ├── iutest_ver.hpp ├── listener │ ├── iutest_default_printer.hpp │ ├── iutest_default_xml_generator.hpp │ ├── iutest_junit_xml_generator.hpp │ ├── iutest_progress_printer.hpp │ ├── iutest_sstp_notifier.hpp │ ├── iutest_stderr_xml_generator.hpp │ ├── iutest_streaming_listener.hpp │ └── iutest_tap_printer.hpp ├── tr1 │ ├── iutest_failurecount_assertion.hpp │ ├── iutest_param_direct_tests.hpp │ ├── iutest_value_tmp_tests.hpp │ └── iutest_vc_unittest.hpp └── util │ ├── iutest_util_assertion.hpp │ ├── iutest_util_menu.hpp │ ├── iutest_util_no_yoda.hpp │ ├── iutest_util_output.hpp │ ├── iutest_util_quiet_result_printer.hpp │ ├── iutest_util_tests.hpp │ └── iutest_util_vc_unittest.hpp ├── iutest.cue ├── package.json ├── projects ├── arm │ └── Makefile ├── avr │ └── Makefile ├── cmake │ ├── CMakeLists.txt │ ├── CPPLINT.cfg │ ├── Makefile │ ├── apple.cmake │ ├── example.bat │ ├── internal_utils.cmake │ └── xcode_version.cmake ├── cuda │ ├── Makefile │ └── make.cmd ├── make │ ├── Makefile │ ├── build.bat │ ├── iutest_sample.sln │ ├── iutest_sample.vcxproj │ └── iutest_sample.vcxproj.filters ├── nuget │ ├── iutest.nuspec │ └── iutest.targets ├── vs2012 │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ └── iutest_sample.vcxproj.filters ├── vs2013 │ ├── CPPLINT.cfg │ ├── gmock │ │ ├── gmock1 │ │ │ ├── gmock1.vcxproj │ │ │ └── gmock1.vcxproj.filters │ │ └── gmock_samples.sln │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ ├── iutest_sample.vcxproj.filters │ ├── mfc │ │ ├── Resource.h │ │ ├── iutest_mfc_sample.cpp │ │ ├── iutest_mfc_sample.h │ │ ├── iutest_mfc_sample.rc │ │ ├── iutest_mfc_sample.vcxproj │ │ ├── iutest_mfc_sample.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── test │ │ ├── test.sln │ │ ├── test.vcxproj │ │ └── test.vcxproj.filters │ └── tr1 │ │ ├── tr1.vcxproj │ │ └── tr1.vcxproj.filters ├── vs2015 │ ├── CPPLINT.cfg │ ├── abbreviation.whitelist │ ├── gmock │ │ ├── gmock1 │ │ │ ├── gmock1.vcxproj │ │ │ └── gmock1.vcxproj.filters │ │ └── gmock_samples.sln │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ ├── iutest_sample.vcxproj.filters │ ├── mfc │ │ ├── Resource.h │ │ ├── iutest_mfc_sample.cpp │ │ ├── iutest_mfc_sample.h │ │ ├── iutest_mfc_sample.rc │ │ ├── iutest_mfc_sample.vcxproj │ │ ├── iutest_mfc_sample.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── tr1 │ │ ├── tr1.vcxproj │ │ └── tr1.vcxproj.filters │ └── unittest │ │ ├── iutest_unittest.sln │ │ ├── iutest_unittest.vcxproj │ │ ├── iutest_unittest.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h ├── vs2017 │ ├── CPPLINT.cfg │ ├── abbreviation.whitelist │ ├── android │ │ ├── iutest_android.NativeActivity │ │ │ ├── android_native_app_glue.c │ │ │ ├── android_native_app_glue.h │ │ │ ├── iutest_android.NativeActivity.vcxproj │ │ │ ├── iutest_android.NativeActivity.vcxproj.filters │ │ │ ├── main.cpp │ │ │ └── pch.h │ │ ├── iutest_android.Packaging │ │ │ ├── AndroidManifest.xml │ │ │ ├── build.xml │ │ │ ├── iutest_android.Packaging.androidproj │ │ │ ├── project.properties │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── strings.xml │ │ └── iutest_android.sln │ ├── gmock │ │ ├── gmock1 │ │ │ ├── gmock1.vcxproj │ │ │ └── gmock1.vcxproj.filters │ │ └── gmock_samples.sln │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ ├── iutest_sample.vcxproj.filters │ ├── mfc │ │ ├── Resource.h │ │ ├── iutest_mfc_sample.cpp │ │ ├── iutest_mfc_sample.h │ │ ├── iutest_mfc_sample.rc │ │ ├── iutest_mfc_sample.vcxproj │ │ ├── iutest_mfc_sample.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── tr1 │ │ ├── tr1.vcxproj │ │ └── tr1.vcxproj.filters │ └── unittest │ │ ├── iutest_unittest.sln │ │ ├── iutest_unittest.vcxproj │ │ ├── iutest_unittest.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h ├── vs2019 │ ├── CPPLINT.cfg │ ├── abbreviation.whitelist │ ├── gmock │ │ ├── gmock1 │ │ │ ├── gmock1.vcxproj │ │ │ └── gmock1.vcxproj.filters │ │ └── gmock_samples.sln │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ ├── iutest_sample.vcxproj.filters │ ├── mfc │ │ ├── Resource.h │ │ ├── iutest_mfc_sample.cpp │ │ ├── iutest_mfc_sample.h │ │ ├── iutest_mfc_sample.rc │ │ ├── iutest_mfc_sample.vcxproj │ │ ├── iutest_mfc_sample.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── tr1 │ │ ├── tr1.vcxproj │ │ └── tr1.vcxproj.filters │ └── unittest │ │ ├── iutest_unittest.sln │ │ ├── iutest_unittest.vcxproj │ │ ├── iutest_unittest.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h ├── vs2022 │ ├── CPPLINT.cfg │ ├── abbreviation.whitelist │ ├── gmock │ │ ├── gmock1 │ │ │ ├── gmock1.vcxproj │ │ │ └── gmock1.vcxproj.filters │ │ └── gmock_samples.sln │ ├── gtest │ │ ├── gtest1 │ │ │ ├── gtest1.vcxproj │ │ │ └── gtest1.vcxproj.filters │ │ ├── gtest10 │ │ │ ├── gtest10.vcxproj │ │ │ └── gtest10.vcxproj.filters │ │ ├── gtest2 │ │ │ ├── gtest2.vcxproj │ │ │ └── gtest2.vcxproj.filters │ │ ├── gtest3 │ │ │ ├── gtest3.vcxproj │ │ │ └── gtest3.vcxproj.filters │ │ ├── gtest4 │ │ │ ├── gtest4.vcxproj │ │ │ └── gtest4.vcxproj.filters │ │ ├── gtest5 │ │ │ ├── gtest5.vcxproj │ │ │ └── gtest5.vcxproj.filters │ │ ├── gtest6 │ │ │ ├── gtest6.vcxproj │ │ │ └── gtest6.vcxproj.filters │ │ ├── gtest7 │ │ │ ├── gtest7.vcxproj │ │ │ └── gtest7.vcxproj.filters │ │ ├── gtest8 │ │ │ ├── gtest8.vcxproj │ │ │ └── gtest8.vcxproj.filters │ │ └── gtest9 │ │ │ ├── gtest9.vcxproj │ │ │ └── gtest9.vcxproj.filters │ ├── iutest.sln │ ├── iutest.vcxproj │ ├── iutest.vcxproj.filters │ ├── iutest_main.vcxproj │ ├── iutest_main.vcxproj.filters │ ├── iutest_sample.vcxproj │ ├── iutest_sample.vcxproj.filters │ ├── mfc │ │ ├── Resource.h │ │ ├── iutest_mfc_sample.cpp │ │ ├── iutest_mfc_sample.h │ │ ├── iutest_mfc_sample.rc │ │ ├── iutest_mfc_sample.vcxproj │ │ ├── iutest_mfc_sample.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h │ ├── tr1 │ │ ├── tr1.vcxproj │ │ └── tr1.vcxproj.filters │ └── unittest │ │ ├── iutest_unittest.sln │ │ ├── iutest_unittest.vcxproj │ │ ├── iutest_unittest.vcxproj.filters │ │ ├── stdafx.cpp │ │ ├── stdafx.h │ │ └── targetver.h └── vscode │ └── iutest.code-workspace ├── samples ├── .clang-tidy ├── CPPLINT.cfg ├── assertion.cpp ├── csvparams.csv ├── disabledtest.cpp ├── exception.cpp ├── fixture.cpp ├── gmock │ └── main.cpp ├── gtest │ ├── main.cc │ ├── prime_tables.h │ ├── sample1.cc │ ├── sample1.h │ ├── sample10_unittest.cc │ ├── sample1_unittest.cc │ ├── sample2.cc │ ├── sample2.h │ ├── sample2_unittest.cc │ ├── sample3-inl.h │ ├── sample3_unittest.cc │ ├── sample4.cc │ ├── sample4.h │ ├── sample4_unittest.cc │ ├── sample5_unittest.cc │ ├── sample6_unittest.cc │ ├── sample7_unittest.cc │ ├── sample8_unittest.cc │ └── sample9_unittest.cc ├── japanese.cpp ├── main.cpp ├── main.cu ├── main.mm ├── matcher.cpp ├── parameterized.cpp ├── printto.cpp ├── simple.cpp ├── typed.cpp ├── vcunittest │ └── unittest.cpp └── windows │ ├── CPPLINT.cfg │ ├── Resource.h │ ├── iutest_windows_sample.cpp │ ├── iutest_windows_sample.h │ ├── iutest_windows_sample.ico │ ├── iutest_windows_sample.rc │ ├── iutest_windows_sample.sln │ ├── iutest_windows_sample.vcxproj │ ├── iutest_windows_sample.vcxproj.filters │ ├── small.ico │ ├── stdafx.cpp │ ├── stdafx.h │ ├── targetver.h │ └── tests │ └── test1.cpp ├── setenv.wsf ├── src ├── iutest_all.cpp └── iutest_main.cpp ├── test ├── CommonMakefile.in ├── GNUmakefile ├── Makefile ├── almost_eq_tests.cpp ├── also_run_disabled_tests.cpp ├── assertion_only_tests.cpp ├── assertion_return_tests.cpp ├── assertion_tests.cpp ├── assume_tests.cpp ├── basic_tests.cpp ├── benchmark │ ├── GNUmakefile │ ├── benchmark_base.cpp │ ├── main.cpp │ └── test.cpp ├── break_on_failure_nobreak_tests.cpp ├── break_on_failure_tests.cpp ├── catch_exceptions_tests.cpp ├── charcode_tests.cpp ├── check_strict_tests.cpp ├── combine_tests.cpp ├── commandline_tests.cpp ├── compatibility_tests.cpp ├── concat_tests.cpp ├── configcheck │ └── Makefile ├── cppcheck │ ├── Config.mk │ └── Makefile ├── cpplint │ ├── Makefile │ └── README.md ├── csvparams_invalid_file_tests.cpp ├── csvparams_tests.cpp ├── cxx_feature_tests.cpp ├── debug_tests.cpp ├── default_main_tests.cpp ├── default_printer_listener_tests.cpp ├── disabled_tests.cpp ├── disabled_tests_decl.cpp ├── docs │ ├── DoxygenCommandCheck.mk │ ├── Makefile │ └── VersionTest.mk ├── empty_testname_failure_tests.cpp ├── empty_testname_tests.cpp ├── env_var_gtest_tests.cpp ├── env_var_tests.cpp ├── environment_tests.cpp ├── exception_assertion_tests.cpp ├── exception_set_up_testsuite_tests.cpp ├── exception_tests.cpp ├── exit_tests.cpp ├── expression_assertion_tests.cpp ├── extension_tests.cpp ├── feature_spec_tests.cpp ├── file_system_tests.cpp ├── filepath_tests.cpp ├── filter_file_invalid_path_tests.cpp ├── filter_file_syntax_tests.cpp ├── filter_file_tests.cpp ├── filter_tests.cpp ├── fixture_alias_tests.cpp ├── fixture_tests.cpp ├── flagfile_env_var_tests.cpp ├── flagfile_gtest_tests.cpp ├── flagfile_invalid_path_tests.cpp ├── flagfile_tests.cpp ├── floatingpoint_tests.cpp ├── gtest_tap_tests.cpp ├── gtest_version_tests.cpp ├── help_tests.cpp ├── ignore_tests.cpp ├── inform_tests.cpp ├── internal_log_tests.cpp ├── invalid_both_suite_and_case_set_up_tests.cpp ├── invalid_both_suite_and_case_teardown_tests.cpp ├── invalid_commandline_tests.cpp ├── invalid_locale_ctype_tests.cpp ├── japanese_tests.cpp ├── legacy_testcase_api_tests.cpp ├── list_test_tests.cpp ├── listener_tests.cpp ├── logger_tests.hpp ├── main.cpp ├── matcher_tests.cpp ├── minimum_tests.cpp ├── no_failure_fail_tests.cpp ├── no_failure_tests.cpp ├── no_fatalfailure_tests.cpp ├── no_test_tests.cpp ├── no_yoda_tests.cpp ├── nullptr_tests.cpp ├── ostream_formatter_tests.cpp ├── output_env_var_tests.cpp ├── output_junit_xml_empty_tests.cpp ├── output_junit_xml_tests.cpp ├── output_long_type_param_tests.cpp ├── output_tests.cpp ├── output_xml_invalid_path_tests.cpp ├── output_xml_repeat_tests.cpp ├── output_xml_tests.cpp ├── package_tests.hpp ├── package_tests1.cpp ├── package_tests2.cpp ├── pairwise_tests.cpp ├── param_method_tests.cpp ├── param_test_name_invalid_tests.cpp ├── param_test_name_tests.cpp ├── param_test_tests.hpp ├── param_test_tests1.cpp ├── param_test_tests2.cpp ├── param_test_with_any_tests.cpp ├── port_tests.cpp ├── pp_tests.cpp ├── pred_tests.cpp ├── pred_tests.hpp ├── printers_tests.cpp ├── prod_tests.hpp ├── prod_tests1.cpp ├── prod_tests2.cpp ├── progress_tests.cpp ├── quiet_result_printer_tests.cpp ├── random_seed_tests.cpp ├── random_values_tests.cpp ├── record_property_tests.cpp ├── repeat_tests.cpp ├── repository │ └── Makefile ├── scoped_trace_exception_tests.cpp ├── scoped_trace_tests.cpp ├── set_up_failure_tests.cpp ├── set_up_global_failure_tests.cpp ├── set_up_testcase_failure_tests.cpp ├── shuffle_tests.cpp ├── skip_tests.cpp ├── spec_tests.cpp ├── spi_failure_tests.cpp ├── spi_tests.cpp ├── spi_tests_decl.cpp ├── static_assertion_failure_tests.cpp ├── static_assertion_tests.cpp ├── stdlib_config_check │ ├── Makefile │ ├── stdlib_config_check.cpp │ └── stdlib_config_check.defs ├── stdlib_feature_tests │ ├── Makefile │ ├── show_macros.tmp │ └── stdlib_feature_test.cpp ├── streaming_listener_tests.cpp ├── string_assertion_tests.cpp ├── syntax_gtest_tests.cpp ├── syntax_tests.cpp ├── tap_file_generator_listener_tests.cpp ├── tap_printer_listener_tests.cpp ├── testdata │ ├── empty.bin │ ├── empty.csv │ ├── filter.txt │ ├── flagfile.txt │ ├── floatcsvparams.csv │ ├── gtest_flagfile.txt │ ├── intcsvparams.csv │ ├── intcsvparams.tsv │ └── unit_file_tests.tmp ├── throw_on_assertion_failure_tests.cpp ├── throw_on_failure_tests.cpp ├── tr1_failurecount_assertion_tests.cpp ├── tr1_param_direct_tests.cpp ├── tr1_tests.cpp ├── tr1_value_tmp_tests.cpp ├── type_param_register_exception_int_tests.cpp ├── type_param_register_exception_std_tests.cpp ├── type_param_register_exception_tests_decl.cpp ├── type_param_register_exception_tests_decl.hpp ├── type_param_strict_failure_tests.cpp ├── type_param_strict_tests.cpp ├── type_param_tests.hpp ├── type_param_tests1.cpp ├── type_param_tests2.cpp ├── type_param_tests3.cpp ├── typed_test_tests.cpp ├── uninitialize_tests.cpp ├── unit_file_tests.cpp ├── unit_macro_tests.cpp ├── unit_misc_tests.cpp ├── unit_own_string_view_tests.cpp ├── unit_string_tests.cpp ├── unit_string_view_tests.cpp ├── unit_typetraits_tests.cpp ├── util_release_default_xml_generator_tests.cpp ├── util_tests.cpp ├── values_gen_tests.cpp ├── values_tests.cpp └── variadic_templates_tests.cpp ├── tools ├── VisualStudio │ ├── Visualizers │ │ ├── iutest-dev.natstepfilter │ │ ├── iutest.natstepfilter │ │ ├── iutest.natvis │ │ └── stdstring-s8.natvis │ ├── cl-dME.bat │ ├── cl-dME.py │ ├── vcperf.bat │ └── vcvars.bat ├── codecov │ └── codecov-upload.sh ├── docker │ ├── Dockerfile │ └── Makefile ├── fused │ ├── Makefile │ ├── fused_iutest_files.py │ ├── fused_iutest_files.pyproj │ ├── fused_iutest_files.sln │ ├── iutest_pp_strip.py │ ├── iuwandbox_pp.py │ ├── iuwandbox_pp.pyproj │ └── tests │ │ ├── test.min.cpp │ │ └── test.wandbox.min.cpp ├── paiza.io │ ├── Makefile │ ├── iupaizaio.py │ ├── iupaizaio.pyproj │ ├── iupaizaio.sln │ ├── iupaizaio_pp.py │ ├── paizaio.py │ └── sample.cpp ├── python │ ├── Makefile │ ├── editorconfig-self-lint.py │ ├── eval_line.py │ ├── iutest_compile_error_test.py │ ├── iutest_compile_error_test.pyproj │ ├── iutest_incg_test.py │ └── pythontools.sln ├── twilio │ ├── Makefile │ ├── iutwilio.py │ └── sample.cpp ├── wandbox │ ├── CPPLINT.cfg │ ├── Makefile │ ├── iuwandbox.py │ ├── iuwandbox.pyproj │ ├── iuwandbox.sln │ ├── sample.cpp │ ├── sample.h │ ├── sample2.cpp │ ├── sample2.h │ ├── simple.cpp │ ├── tests │ │ ├── __init__.py │ │ ├── src │ │ │ ├── A │ │ │ │ ├── sample.cpp │ │ │ │ └── sample.h │ │ │ ├── B │ │ │ │ ├── sample.cpp │ │ │ │ └── sample.h │ │ │ └── main.cpp │ │ └── test_iuwandbox.py │ └── wandbox.py └── xml2file │ ├── Makefile │ └── xml2file.py └── utils ├── ci.mk ├── clangversion.mk ├── cpp.mk ├── cygwin.mk ├── function.mk ├── gccversion.mk ├── iccversion.mk ├── mingw.mk ├── props └── TreatWarningAsError.props ├── python.mk ├── stdcver.mk ├── usegtest.mk ├── utils.mk ├── warning.mk ├── xcode.mk └── zapccversion.mk /.clang-tidy: -------------------------------------------------------------------------------- 1 | Checks: "*\ 2 | ,-__llvm_libc-*\ 3 | ,-cert-err58-cpp\ 4 | ,-clang-analyzer-*\ 5 | ,-cppcoreguidelines-macro-usage\ 6 | ,-cppcoreguidelines-explicit-virtual-functions\ 7 | ,-hicpp-use-override\ 8 | ,-llvm-namespace-comment\ 9 | ,-llvm-include-order\ 10 | ,-modernize-use-override\ 11 | ,-modernize-use-trailing-return-type\ 12 | ,-readability-isolate-declaration\ 13 | " 14 | # WarningsAsErrors: > 15 | # * 16 | -------------------------------------------------------------------------------- /.ecrc: -------------------------------------------------------------------------------- 1 | { 2 | "Verbose": false, 3 | "IgnoreDefaults": true, 4 | "Exclude": [ 5 | "\\.sln$", 6 | "\\..*proj$", 7 | "\\.filters$", 8 | "iutest_ver.hpp", 9 | ".*\\.NativeActivity/", 10 | ".*\\.Packaging/", 11 | "samples/gmock", 12 | "samples/gtest", 13 | "\\.md$", 14 | "Doxyfile", 15 | "node_modules/", 16 | "\\.git/" 17 | ], 18 | "Disable": { 19 | "EndOfLine": false, 20 | "Indentation": true, 21 | "InsertFinalNewline": false, 22 | "TrimTrailingWhitespace": false, 23 | "IndentSize": true 24 | }, 25 | "SpacesAftertabs": false 26 | } 27 | -------------------------------------------------------------------------------- /.idea/iutest.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | ######################################################################## 2 | # CMake build script for iutest. 3 | # 4 | 5 | # CMake バージョン 6 | cmake_minimum_required(VERSION 3.0.2) 7 | 8 | add_subdirectory(projects/cmake) 9 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 貢献方法 2 | 3 | 1. フォークする 4 | 1. feature branch を作る 5 | 1. 変更するを commit する 6 | 1. push 7 | 1. プルリクする 8 | 1. CI の結果を確認する(重要なのは Travis CI です。それ以外は気にしなくて良いです) 9 | 10 | ---- 11 | 12 | # How To Contribute 13 | 14 | 1. Fork it ( https://github.com/srz-zumix/iutest ) 15 | 1. Create your feature branch (git checkout -b my-new-feature) 16 | 1. Commit your changes (git commit -am 'Add some feature') 17 | 1. Push to the branch (git push origin my-new-feature) 18 | 1. Create new Pull Request 19 | 1. Please check the result of CI (Important is Travis CI. Other than that, you do not have to worry) 20 | 21 | -------------------------------------------------------------------------------- /CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | set noparent 2 | exclude_files=fused-src 3 | exclude_files=\..* 4 | exclude_files=docs 5 | -------------------------------------------------------------------------------- /Earthfile: -------------------------------------------------------------------------------- 1 | # earthly version 2 | VERSION 0.6 3 | 4 | # Earthfile 5 | FROM ubuntu:22.04 6 | 7 | # configure apt to be noninteractive 8 | ENV DEBIAN_FRONTEND noninteractive 9 | ENV DEBCONF_NONINTERACTIVE_SEEN true 10 | 11 | # install dependencies 12 | RUN apt-get update && apt-get install -y \ 13 | build-essential cmake \ 14 | git \ 15 | python3 python-is-python3 16 | 17 | # iutest test env 18 | ENV IUTEST_OUTPUT_DIR=TestResults 19 | 20 | WORKDIR /code 21 | 22 | all: 23 | BUILD +lint 24 | BUILD +build 25 | BUILD +test 26 | 27 | full: 28 | BUILD +all 29 | BUILD +cppcheck 30 | 31 | code: 32 | COPY . src 33 | 34 | build: 35 | FROM +code 36 | RUN mkdir -p ${IUTEST_OUTPUT_DIR} 37 | RUN cmake src/projects/cmake -DTEST_OUTPUT_DIR=${IUTEST_OUTPUT_DIR} 38 | # cache cmake temp files to prevent rebuilding .o files 39 | # when the .cpp files don't change 40 | RUN --mount=type=cache,target=/code/CMakeFiles make 41 | 42 | test: 43 | FROM +build 44 | RUN --mount=type=cache,target=/code/CMakeFiles ctest . 45 | SAVE ARTIFACT ${IUTEST_OUTPUT_DIR} AS LOCAL earthly-out/ 46 | 47 | lint: 48 | FROM +code 49 | RUN make -C src/test/cpplint 50 | 51 | cppcheck: 52 | FROM +code 53 | RUN apt-get update && apt-get install -y cppcheck 54 | RUN make -C src/test/cppcheck 55 | RUN make -C src/test/cppcheck html HTML_REPORT_DIR=./cppcheck-result 56 | SAVE ARTIFACT src/test/cppcheck/cppcheck-result AS LOCAL earthly-out/ 57 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2011-2022, Takazumi Shirayanagi 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions are met: 8 | 9 | * Redistributions of source code must retain the above copyright notice, this 10 | list of conditions and the following disclaimer. 11 | 12 | * Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | * Neither the name of the copyright holder nor the names of its 17 | contributors may be used to endorse or promote products derived from 18 | this software without specific prior written permission. 19 | 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 23 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 24 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 26 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 27 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 28 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 4 | # Copyright (C) 2018-2020, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | 8 | # 9 | # help 10 | # 11 | help: ## show help 12 | @grep -E '^[a-zA-Z][a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sed -e 's/^GNUmakefile://' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' 13 | 14 | fused: ## create fused src 15 | make -C tools/fused 16 | 17 | editorconfig-self-lint: 18 | make -C tools/python editorconfig-self-lint 19 | 20 | DAGGER_OPTS:=--log-format=plain 21 | dagger-ctest: 22 | dagger do ctest $(DAGGER_OPTS) 23 | 24 | dagger-format: 25 | cue fmt -s 26 | -------------------------------------------------------------------------------- /cmake/iutest-config.cmake: -------------------------------------------------------------------------------- 1 | # - Try to find iutest include dirs 2 | # 3 | # Usage of this module as follows: 4 | # 5 | # find_package(IUTEST) 6 | # 7 | # Variables used by this module, they can change the default behaviour and need 8 | # to be set before calling find_package: 9 | # 10 | # IUTEST_ROOT_DIR Set this variable to the root installation of 11 | # iutest if the module has problems finding the 12 | # proper installation path. 13 | # 14 | # Variables defined by this module: 15 | # 16 | # IUTEST_FOUND System has iutest, include dirs found 17 | # IUTEST_INCLUDE_DIR The iutest include directories. 18 | 19 | find_path(IUTEST_ROOT_DIR 20 | NAMES include/iutest.hpp 21 | HINTS 22 | ENV IUTEST_ROOT 23 | ENV IUTEST_DIR 24 | ) 25 | 26 | find_path(IUTEST_INCLUDE_DIR 27 | NAMES iutest.hpp 28 | HINTS 29 | ${IUTEST_ROOT_DIR}/include 30 | ) 31 | 32 | include(FindPackageHandleStandardArgs) 33 | find_package_handle_standard_args(IUTEST DEFAULT_MSG 34 | IUTEST_INCLUDE_DIR 35 | ) 36 | -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make 2 | 3 | LANG=ja_JP.SJIS 4 | HTMLLINT_PATH=$(subst \,/, $(HTMLLINT_ROOT)) 5 | GHPAGES_DIR:=gh-pages 6 | 7 | default: target 8 | 9 | all: target lint 10 | 11 | upgrade: 12 | doxygen -u 13 | 14 | target: html/index.html 15 | 16 | html/index.html: Makefile Doxyfile doxygen_filter.py 17 | export PYTHONIOENCODING=utf-8 18 | doxygen Doxyfile 19 | # doxyindexer searchdata.xml -o html/ 20 | # cp '$(DOXYGEN_ROOT)/bin/doxysearch.cgi' html/ 21 | 22 | gh-pages: target 23 | - mkdir ${GHPAGES_DIR} 24 | cp *.html ${GHPAGES_DIR}/ 25 | cp -r css ${GHPAGES_DIR}/ 26 | cp -r html ${GHPAGES_DIR}/ 27 | cp -r images ${GHPAGES_DIR}/ 28 | cp ../README.md ${GHPAGES_DIR}/ 29 | 30 | gh-pages-for-master: 31 | cp -r dev/.circleci ${GHPAGES_DIR}/ 32 | cp dev/*.yml ${GHPAGES_DIR}/ 33 | cp ../README.md ${GHPAGES_DIR}/ 34 | 35 | clean: 36 | rm -rf html 37 | rm -rf gh-pages 38 | 39 | lint: 40 | (find ./ -maxdepth 1 -type f -name "*.html" -print0 | xargs -0 perl $(HTMLLINT_PATH)/htmllint) 41 | 42 | open: target 43 | ifeq ($(OS),Windows_NT) 44 | cmd /c start html/index.html 45 | else 46 | open html/index.html 47 | endif 48 | -------------------------------------------------------------------------------- /docs/css/doc.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Arial,'�l�r �o�S�V�b�N',sans-serif ; 3 | background-color:#008080; 4 | line-height:130%; 5 | } 6 | h1 { 7 | padding:20px 10px; 8 | background-color:#cccccc; 9 | border-bottom: solid 1px #808080; 10 | } 11 | h2 { 12 | padding:14px 10px; 13 | background-color:#cccccc; 14 | border-bottom: solid 1px #808080; 15 | } 16 | h3 { 17 | padding:10px 10px; 18 | background-color:#cccccc; 19 | border-bottom: solid 1px #808080; 20 | } 21 | .contents { 22 | padding:0px 0px 1em 0px; 23 | background-color:#f8f8f8; 24 | border-right: solid 5px #006400; 25 | border-bottom: solid 10px #006400; 26 | } 27 | li { 28 | padding-bottom:4px; 29 | } 30 | .text_block { 31 | padding-left:1em; 32 | } 33 | .source { 34 | border : solid 2px #006400; 35 | background-color:#ffffff; 36 | padding: 0.5em; 37 | margin: 10px; 38 | } 39 | table.ruled { 40 | border-top: solid 1px; 41 | border-bottom: solid 1px; 42 | width: 90%; 43 | } 44 | pre.console { 45 | background-color: #000; 46 | color: #FEFEFE; 47 | padding: 0.5em; 48 | width: 95%; 49 | } 50 | div.copyright { 51 | text-align: right; 52 | } 53 | table.wandbox tr td:first-child { 54 | width: 20px; 55 | } 56 | table.wandbox tr td:nth-child(2) { 57 | width: 250px; 58 | } 59 | -------------------------------------------------------------------------------- /docs/doxygen_filter.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | # 4 | # doxygen_filter.py 5 | # 6 | # Copyright (C) 2015-2019, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | import sys 12 | import io 13 | import os 14 | import codecs 15 | 16 | def filter(path, encoding): 17 | f = codecs.open(path, 'r', encoding) 18 | n = 0 19 | fname = os.path.basename(path) 20 | if fname == "iutest_config.hpp": 21 | n = 2 22 | if f: 23 | for line in f: 24 | sys.stdout.write(line) 25 | if n < 2: 26 | if line.find("//=========================================================") != -1: 27 | n += 1 28 | if n == 2: 29 | print('#include "iutest_config.hpp"') 30 | f.close() 31 | 32 | 33 | def main(): 34 | path = sys.argv[1] 35 | if not sys.stdout.encoding == 'utf-8': 36 | try: 37 | sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') 38 | except AttributeError: 39 | sys.stdout = codecs.getwriter('utf-8')(sys.stdout) 40 | try: 41 | filter(path, 'utf-8-sig') 42 | except UnicodeDecodeError: 43 | filter(path, 'utf-8') 44 | 45 | 46 | if __name__ == '__main__': 47 | main() 48 | -------------------------------------------------------------------------------- /docs/gource/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make 2 | 3 | NOOP=sh -c true 4 | FPS=60 5 | 6 | FFMPEG_PRESET=-preset ultrafast 7 | FFMPEG_PIXEL_FORMAT=-pix_fmt yuv420p 8 | 9 | FFMPEG_OPTIONS=$(FFMPEG_PRESET) $(FFMPEG_PIXEL_FORMAT) 10 | 11 | .PHONY: high low long short 12 | 13 | default: low short git 14 | 15 | high: default_scm 16 | @$(NOOP) 17 | low: default_scm 18 | @$(NOOP) 19 | long: default_scm 20 | @$(NOOP) 21 | short: default_scm 22 | @$(NOOP) 23 | 24 | ifeq ($(MAKECMDGOALS),) 25 | GOURCE_OPTIONS=-640x480 -s 1 -r 25 26 | else 27 | GOURCE_OPTIONS= 28 | endif 29 | 30 | ifeq ($(filter long,$(MAKECMDGOALS)),long) 31 | GOURCE_OPTIONS+=-s 30 32 | else 33 | ifeq ($(filter short,$(MAKECMDGOALS)),short) 34 | GOURCE_OPTIONS+=-s 1 -c 4.0 35 | endif 36 | endif 37 | 38 | ifeq ($(filter high,$(MAKECMDGOALS)),high) 39 | FPS=60 40 | GOURCE_OPTIONS+=-1280x720 -r $(FPS) 41 | else 42 | ifeq ($(filter low,$(MAKECMDGOALS)),low) 43 | FPS=25 44 | GOURCE_OPTIONS+=-640x480 -r $(FPS) 45 | endif 46 | endif 47 | 48 | default_scm: git 49 | 50 | git: 51 | gource $(GOURCE_OPTIONS) -o gource.ppm ../../ 52 | ffmpeg -y -r $(FPS) -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 $(FFMPEG_OPTIONS) -crf 1 -threads 0 -bf 0 iutest-gource.mp4 53 | 54 | svn: 55 | svn log http://svn.osdn.jp/svnroot/iutest/ -r 1:HEAD --xml --verbose --quiet > log.xml 56 | gource $(GOURCE_OPTIONS) -o gource.ppm log.xml 57 | ffmpeg -y -r $(FPS) -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 $(FFMPEG_OPTIONS) -crf 1 -threads 0 -bf 0 iutest-gource.mp4 58 | -------------------------------------------------------------------------------- /docs/gource/make.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | if "%~1" == "svn" goto svn 4 | SET RESO=1280x720 5 | SET GOURCE_OPTIONS=-%RESO% -c 4.0 -s 1 -r 60 6 | 7 | :git 8 | call gource %GOURCE_OPTIONS% -o gource.ppm ../../ 9 | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 iutest-gource.mp4 10 | del /F gource.ppm 11 | goto :EOF 12 | 13 | :svn 14 | svn log http://svn.osdn.jp/svnroot/iutest/ -r 1:HEAD --xml --verbose --quiet > log.xml 15 | start /wait gource %GOURCE_OPTIONS% -o gource.ppm log.xml 16 | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 iutest-gource.mp4 17 | del /F gource.ppm 18 | goto :EOF 19 | -------------------------------------------------------------------------------- /docs/images/iuwandbox_sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/docs/images/iuwandbox_sample.png -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | iutest 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | <body> 17 | <p>このページを表示するには、フレームをサポートしているブラウザが必要です。</p> 18 | </body> 19 | 20 | 21 | -------------------------------------------------------------------------------- /docs/make_html.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | make 4 | if errorlevel 1 goto error 5 | 6 | goto :EOF 7 | 8 | :error 9 | pause 10 | exit /b 1 11 | 12 | -------------------------------------------------------------------------------- /docs/osdn/doc/.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine on 2 | RewriteBase /doc 3 | RewriteRule ^(.*) https://srz-zumix.github.io/iutest/latest/$1 [R=301,L] 4 | -------------------------------------------------------------------------------- /docs/sidebar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | サイドバー 7 | 8 | 9 | 32 | 33 | 34 | 35 | 36 |

目次

37 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /fused-src/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile 3 | 4 | fused: 5 | make -C ../tools/fused 6 | 7 | clean: 8 | make -C ../tools/fused clean 9 | 10 | ls: 11 | ls -lh . 12 | -------------------------------------------------------------------------------- /include/gtest/iutest_switch.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_switch.hpp 5 | * @brief switching to iutest from gtest / gtest from iutest 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2011-2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_SWITCH_HPP_ 16 | #define INCG_IRIS_IUTEST_SWITCH_HPP_ 17 | 18 | // IWYU pragma: begin_exports 19 | #include "iutest_switch_for_gtest.hpp" 20 | #include "iutest_switch_for_iutest.hpp" 21 | // IWYU pragma: end_exports 22 | 23 | #endif // INCG_IRIS_IUTEST_SWITCH_HPP_ 24 | -------------------------------------------------------------------------------- /include/gtest/switch/iutest_switch_package.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_switch_package.hpp 5 | * @brief IUTEST_PACKAGE 切り替え定義 ファイル 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_SWITCH_PACKAGE_HPP_5D6B75EE_F445_4730_8FEA_FB6249BCBD9C_ 16 | #define INCG_IRIS_IUTEST_SWITCH_PACKAGE_HPP_5D6B75EE_F445_4730_8FEA_FB6249BCBD9C_ 17 | 18 | #if !defined(IUTEST_USE_GTEST) 19 | 20 | //====================================================================== 21 | // define 22 | 23 | #else // !defined(IUTEST_USE_GTEST) 24 | 25 | //====================================================================== 26 | // undef 27 | #if defined(INCG_IRIS_IUTEST_HPP_) 28 | 29 | #undef IUTEST_PACKAGE 30 | #undef IUTEST_HAS_PACKAGE 31 | 32 | #endif 33 | 34 | //====================================================================== 35 | // define 36 | #define IUTEST_PACKAGE(name) namespace name 37 | #define IUTEST_HAS_PACKAGE 0 38 | 39 | #endif // !defined(IUTEST_USE_GTEST) 40 | 41 | #endif // INCG_IRIS_IUTEST_SWITCH_PACKAGE_HPP_5D6B75EE_F445_4730_8FEA_FB6249BCBD9C_ 42 | -------------------------------------------------------------------------------- /include/gtest/switch/iutest_switch_pmz.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_switch_pmz.hpp 5 | * @brief IUTEST_PMZ 切り替え定義 ファイル 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_SWITCH_PMZ_HPP_3913D1E7_E6FD_49B9_BB4C_795939FEB5C5_ 16 | #define INCG_IRIS_IUTEST_SWITCH_PMZ_HPP_3913D1E7_E6FD_49B9_BB4C_795939FEB5C5_ 17 | 18 | #if !defined(IUTEST_USE_GTEST) 19 | 20 | //====================================================================== 21 | // define 22 | 23 | #else // !defined(IUTEST_USE_GTEST) 24 | 25 | //====================================================================== 26 | // undef 27 | #if defined(INCG_IRIS_IUTEST_HPP_) 28 | 29 | #undef IUTEST_HAS_PARAM_METHOD_TEST 30 | 31 | #endif 32 | 33 | //====================================================================== 34 | // define 35 | #ifndef IUTEST_HAS_PARAM_METHOD_TEST 36 | # define IUTEST_HAS_PARAM_METHOD_TEST 0 37 | #endif 38 | 39 | #endif // !defined(IUTEST_USE_GTEST) 40 | 41 | #endif // INCG_IRIS_IUTEST_SWITCH_PMZ_HPP_3913D1E7_E6FD_49B9_BB4C_795939FEB5C5_ 42 | -------------------------------------------------------------------------------- /include/internal/iutest_compatible_defs.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_compatible_defs.hpp 5 | * @brief internal gtest/iutest compatible definition 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2019, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_COMPATIBLE_DEFS_HPP_9BCFF3D0_A045_4B94_B51F_4C6E88D8654C_ 16 | #define INCG_IRIS_IUTEST_COMPATIBLE_DEFS_HPP_9BCFF3D0_A045_4B94_B51F_4C6E88D8654C_ 17 | 18 | namespace iutest_compatible 19 | { 20 | 21 | //====================================================================== 22 | // function 23 | 24 | /** 25 | * @internal 26 | * @brief NULL リテラルかどうか 27 | */ 28 | struct IsNullLiteralHelper 29 | { 30 | class Object; 31 | 32 | static char IsNullLiteral(Object*); 33 | static char (&IsNullLiteral(...))[2]; 34 | }; 35 | 36 | } // end of namespace iutest_compatible 37 | 38 | #endif // INCG_IRIS_IUTEST_COMPATIBLE_DEFS_HPP_9BCFF3D0_A045_4B94_B51F_4C6E88D8654C_ 39 | -------------------------------------------------------------------------------- /include/internal/iutest_default_main.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_default_main.hpp 5 | * @brief iris unit test default main 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2014-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_DEFAULT_MAIN_HPP_954CE73E_3002_4339_AE91_030BDE594F8F_ 16 | #define INCG_IRIS_IUTEST_DEFAULT_MAIN_HPP_954CE73E_3002_4339_AE91_030BDE594F8F_ 17 | 18 | //====================================================================== 19 | // function 20 | 21 | /** 22 | * @brief default main 23 | */ 24 | #ifdef UNICODE 25 | int wmain(int argc, wchar_t** argv) 26 | #else 27 | int main(int argc, char** argv) 28 | #endif 29 | { 30 | #if !defined(IUTEST_OS_WINDOWS_MOBILE) 31 | setlocale(LC_CTYPE, ""); 32 | #endif 33 | 34 | IUTEST_INIT(&argc, argv); 35 | return IUTEST_RUN_ALL_TESTS(); 36 | } 37 | 38 | #endif // INCG_IRIS_IUTEST_DEFAULT_MAIN_HPP_954CE73E_3002_4339_AE91_030BDE594F8F_ 39 | -------------------------------------------------------------------------------- /include/iutest_case.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_case.hpp 5 | * @brief iris unit test legacy testcase 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_CASE_HPP_F57C9B7E_7CAA_4429_BE75_FCAAEED1B220_ 16 | #define INCG_IRIS_IUTEST_CASE_HPP_F57C9B7E_7CAA_4429_BE75_FCAAEED1B220_ 17 | 18 | #include "iutest_suite.hpp" 19 | 20 | #endif // INCG_IRIS_IUTEST_CASE_HPP_F57C9B7E_7CAA_4429_BE75_FCAAEED1B220_ 21 | -------------------------------------------------------------------------------- /include/util/iutest_util_output.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_util_output.hpp 5 | * @brief iris unit test print 出力 utility ファイル 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IRIS_IUTEST_UTIL_OUTPUT_HPP_44C683CF_3452_4F68_B34E_10606EB9E190_ 16 | #define INCG_IRIS_IUTEST_UTIL_OUTPUT_HPP_44C683CF_3452_4F68_B34E_10606EB9E190_ 17 | 18 | //====================================================================== 19 | // include 20 | // IWYU pragma: begin_exports 21 | #if defined(INCG_IRIS_IUTEST_SWITCH_HPP_) 22 | # if defined(IUTEST_USE_GTEST) 23 | # ifndef iutest 24 | # define iutest testing 25 | # include "../internal/iutest_console.hpp" 26 | # undef iutest 27 | # else 28 | # undef INCG_IRIS_IUTEST_CONSOLE_HPP_DCAC5025_B7BB_424E_A849_9E6FE0A3B460_ 29 | # include "../internal/iutest_console.hpp" 30 | # endif 31 | # endif 32 | #endif 33 | // IWYU pragma: end_exports 34 | 35 | namespace iuutil 36 | { 37 | 38 | //! コンソール出力クラスの再利用 39 | typedef ::iutest::detail::iuConsole Console; 40 | 41 | } // end of namespace iuutil 42 | 43 | #endif // INCG_IRIS_IUTEST_UTIL_OUTPUT_HPP_44C683CF_3452_4F68_B34E_10606EB9E190_ 44 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iutest", 3 | "version": "1.0.0", 4 | "devDependencies": { 5 | "eclint": "^2.8.1", 6 | "editorconfig-checker": "^3.0.0", 7 | "npm-run-all": "^4.1.5", 8 | "remark-lint": "^6.0.6", 9 | "remark-preset-lint-recommended": "^3.0.4" 10 | }, 11 | "scripts": { 12 | "lint:editorconfig": "npm-run-all eclint eccheck", 13 | "eccheck": "editorconfig-checker .", 14 | "eccheck:cpp": "editorconfig-checker src include", 15 | "eclint": "npm-run-all eclint:*", 16 | "eclint:src": "eclint check ./src", 17 | "eclint:include": "find ./include -type f -not -name iutest_ver.hpp | xargs eclint check -s 2", 18 | "eclint:root": "find . -maxdepth 1 -type f | xargs eclint check", 19 | "lint-md": "remark ." 20 | }, 21 | "remarkConfig": { 22 | "plugins": [ 23 | "remark-preset-lint-recommended" 24 | ] 25 | }, 26 | "repository": { 27 | "type": "git", 28 | "url": "git+https://github.com/srz-zumix/iutest.git" 29 | }, 30 | "author": "srz_zumix", 31 | "license": "BSD-3-Clause", 32 | "bugs": { 33 | "url": "https://github.com/srz-zumix/iutest/issues" 34 | }, 35 | "homepage": "https://github.com/srz-zumix/iutest#readme" 36 | } 37 | -------------------------------------------------------------------------------- /projects/cmake/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=tmp 2 | -------------------------------------------------------------------------------- /projects/cmake/apple.cmake: -------------------------------------------------------------------------------- 1 | # for apple 2 | if (APPLE) 3 | if(NOT OSX_ARCHITECTURES OR OSX_ARCHITECTURES STREQUAL "") 4 | if(_CMAKE_OSX_MACHINE MATCHES "ppc") 5 | set(OSX_ARCHITECTURES 6 | "ppc;ppc64" 7 | CACHE 8 | STRING 9 | "Build architectures for OS X" 10 | FORCE) 11 | else() 12 | set(OSX_ARCHITECTURES 13 | "x86_64" 14 | CACHE 15 | STRING 16 | "Build architectures for OS X" 17 | FORCE) 18 | endif() 19 | endif() 20 | if(NOT CMAKE_OSX_ARCHITECTURES OR CMAKE_OSX_ARCHITECTURES STREQUAL "") 21 | set(CMAKE_OSX_ARCHITECTURES ${OSX_ARCHITECTURES} CACHE STRING "Build architectures for OS X" FORCE) 22 | endif() 23 | message(STATUS "CMAKE_OSX_ARCHITECTURES: ${CMAKE_OSX_ARCHITECTURES}") 24 | # CMAKE_MACOSX_BUNDLE is needed to avoid the error "target specifies product type 'com.apple.product-type.tool' 25 | set(CMAKE_MACOSX_BUNDLE YES) 26 | set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED NO) 27 | set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED NO) 28 | if(NOT DEFINED CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY) 29 | set(CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "") 30 | endif() 31 | endif() 32 | -------------------------------------------------------------------------------- /projects/cmake/example.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | SET VCVERSION=16 4 | SET DIRNAME=vc%VCVERSION% 5 | 6 | pushd . 7 | if not exist tmp mkdir tmp 8 | cd tmp 9 | if errorlevel 1 goto end 10 | if not exist %DIRNAME% mkdir %DIRNAME% 11 | cd %DIRNAME% 12 | if errorlevel 1 goto end 13 | 14 | cmake -G "Visual Studio %VCVERSION%" ../../ %* 15 | 16 | :end 17 | popd 18 | pause 19 | -------------------------------------------------------------------------------- /projects/cmake/xcode_version.cmake: -------------------------------------------------------------------------------- 1 | if (CMAKE_GENERATOR MATCHES Xcode) 2 | # Get the Xcode version 3 | execute_process(COMMAND xcodebuild -version 4 | OUTPUT_VARIABLE XCODE_VERSION_STRING 5 | ERROR_QUIET 6 | OUTPUT_STRIP_TRAILING_WHITESPACE) 7 | string(REGEX MATCH "Xcode [0-9\\.]+" XCODE_VERSION "${XCODE_VERSION_STRING}") 8 | string(REGEX REPLACE "Xcode ([0-9\\.]+)" "\\1" XCODE_VERSION "${XCODE_VERSION}") 9 | message(STATUS "XCODE_VERSION: ${XCODE_VERSION}") 10 | endif() 11 | -------------------------------------------------------------------------------- /projects/cuda/make.cmd: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem SET VCLIST= "%VS80COMNTOOLS%" %VCLIST% 4 | SET VCLIST= "%VS90COMNTOOLS%" %VCLIST% 5 | SET VCLIST= "%VS100COMNTOOLS%" %VCLIST% 6 | SET VCLIST= "%VS110COMNTOOLS%" %VCLIST% 7 | SET VCLIST= "%VS120COMNTOOLS%" %VCLIST% 8 | SET VCLIST= "%VS140COMNTOOLS%" %VCLIST% 9 | 10 | SET PATH=%CUDA_PATH%\bin;%PATH% 11 | 12 | rem VC 13 | for %%v in (%VCLIST%) do ( 14 | if not %%v == "" ( 15 | call :vcenv %%v 16 | if not errorlevel 1 goto build 17 | ) 18 | ) 19 | 20 | @echo visual studio not installed. 21 | exit /b 1 22 | 23 | :vcenv 24 | call "%~1\vsvars32.bat" 25 | goto :EOF 26 | 27 | :build 28 | call make.exe %* TARGET_X86=yes 29 | -------------------------------------------------------------------------------- /projects/make/build.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | SET LANG=ja_JP.SJIS 4 | bash -c "make --no-print-directory %*" 2> build_log.txt 5 | if errorlevel 1 ( 6 | sed -e "s/:\([0-9]*\):[0-9]*:/(\1):/g" build_log.txt | sed -e "s/\/cygdrive\/\([a-z]\)/\1:/g" 7 | del /F build_log.txt 8 | exit /b 1 9 | ) else ( 10 | sed -e "s/:\([0-9]*\):[0-9]*:/(\1):/g" build_log.txt | sed -e "s/\/cygdrive\/\([a-z]\)/\1:/g" 11 | del /F build_log.txt 12 | exit /b 0 13 | ) 14 | -------------------------------------------------------------------------------- /projects/make/iutest_sample.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Express 2012 for Windows Desktop 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iutest_sample", "iutest_sample.vcxproj", "{4E8EE1D0-F451-4D58-9787-2F66C3C89309}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {4E8EE1D0-F451-4D58-9787-2F66C3C89309}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {4E8EE1D0-F451-4D58-9787-2F66C3C89309}.Debug|Win32.Build.0 = Debug|Win32 14 | {4E8EE1D0-F451-4D58-9787-2F66C3C89309}.Release|Win32.ActiveCfg = Release|Win32 15 | {4E8EE1D0-F451-4D58-9787-2F66C3C89309}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /projects/nuget/iutest.nuspec: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | iutest 5 | iutest 6 | 1.17.99 7 | Takazumi Shirayanagi 8 | Copyright (c) 2011-2020 9 | C++ testing framework. 10 | iutest is framework for writing C++ tests. 11 | Supports automatic tests discovery, include only, value- and type- parameterized tests, 12 | XML test report, inform- and assume- flavor, and japanese test name, matchers, etc... 13 | 14 | https://github.com/srz-zumix/iutest 15 | http://opensource.org/licenses/BSD-3-Clause 16 | false 17 | native, iutest, test, nativepackage 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /projects/nuget/iutest.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | $(MSBuildThisFileDirectory)..\..\build\native\include\;%(AdditionalIncludeDirectories) 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2012/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2012/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2012/iutest_sample.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {20d472ae-bb2e-4c49-9e13-73e8de1ac7a4} 6 | 7 | 8 | 9 | 10 | src 11 | 12 | 13 | src 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | src 26 | 27 | 28 | src 29 | 30 | 31 | src 32 | 33 | 34 | src 35 | 36 | 37 | src 38 | 39 | 40 | src 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /projects/vs2013/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=mfc 2 | exclude_files=android 3 | exclude_files=unittest 4 | -------------------------------------------------------------------------------- /projects/vs2013/gmock/gmock1/gmock1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2013/gmock/gmock_samples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Express 2013 for Windows Desktop 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmock1", "gmock1\gmock1.vcxproj", "{652027C2-BCD8-44E5-A987-201992407DCD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.Build.0 = Debug|Win32 19 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.ActiveCfg = Release|Win32 20 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2013/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2013/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2013/mfc/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2013/mfc/Resource.h -------------------------------------------------------------------------------- /projects/vs2013/mfc/iutest_mfc_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /projects/vs2013/mfc/iutest_mfc_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2013/mfc/iutest_mfc_sample.rc -------------------------------------------------------------------------------- /projects/vs2013/mfc/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2013/mfc/stdafx.cpp -------------------------------------------------------------------------------- /projects/vs2013/mfc/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2013/mfc/stdafx.h -------------------------------------------------------------------------------- /projects/vs2013/mfc/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2013/mfc/targetver.h -------------------------------------------------------------------------------- /projects/vs2013/test/test.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Express 2013 for Windows Desktop 4 | VisualStudioVersion = 12.0.21005.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test.vcxproj", "{BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Release|Win32 = Release|Win32 12 | Test|Win32 = Test|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Debug|Win32.ActiveCfg = Debug|Win32 16 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Debug|Win32.Build.0 = Debug|Win32 17 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Release|Win32.ActiveCfg = Release|Win32 18 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Release|Win32.Build.0 = Release|Win32 19 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Test|Win32.ActiveCfg = Test|Win32 20 | {BCDA426B-C12B-49E9-B8D3-5B32E4D14A54}.Test|Win32.Build.0 = Test|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2015/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=mfc 2 | exclude_files=android 3 | exclude_files=unittest 4 | -------------------------------------------------------------------------------- /projects/vs2015/abbreviation.whitelist: -------------------------------------------------------------------------------- 1 | iutest 2 | gtest 3 | gmock 4 | -------------------------------------------------------------------------------- /projects/vs2015/gmock/gmock1/gmock1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2015/gmock/gmock_samples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmock1", "gmock1\gmock1.vcxproj", "{652027C2-BCD8-44E5-A987-201992407DCD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.Build.0 = Debug|Win32 19 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.ActiveCfg = Release|Win32 20 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2015/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2015/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2015/mfc/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2015/mfc/Resource.h -------------------------------------------------------------------------------- /projects/vs2015/mfc/iutest_mfc_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /projects/vs2015/mfc/iutest_mfc_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2015/mfc/iutest_mfc_sample.rc -------------------------------------------------------------------------------- /projects/vs2015/mfc/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2015/mfc/stdafx.cpp -------------------------------------------------------------------------------- /projects/vs2015/mfc/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2015/mfc/stdafx.h -------------------------------------------------------------------------------- /projects/vs2015/mfc/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2015/mfc/targetver.h -------------------------------------------------------------------------------- /projects/vs2015/unittest/iutest_unittest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iutest_unittest", "iutest_unittest.vcxproj", "{B20BD2D4-96B8-9534-98D1-D159E5804ABB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.Build.0 = Debug|Win32 19 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.ActiveCfg = Release|Win32 20 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2015/unittest/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // iutest_unittest.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /projects/vs2015/unittest/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | // Headers for CppUnitTest 11 | #include "CppUnitTest.h" 12 | 13 | // TODO: reference additional headers your program requires here 14 | -------------------------------------------------------------------------------- /projects/vs2015/unittest/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /projects/vs2017/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=mfc 2 | exclude_files=android 3 | exclude_files=unittest 4 | -------------------------------------------------------------------------------- /projects/vs2017/abbreviation.whitelist: -------------------------------------------------------------------------------- 1 | iutest 2 | gtest 3 | gmock 4 | -------------------------------------------------------------------------------- /projects/vs2017/android/iutest_android.NativeActivity/pch.h: -------------------------------------------------------------------------------- 1 | // 2 | // pch.h 3 | // 標準システムのインクルード ファイルのヘッダー。 4 | // 5 | //プリコンパイル済みヘッダーを生成するためにビルド システムによって使用されました。 6 | // pch.cpp は必要なく、pch.h がプロジェクトの一部であるすべての cpp ファイルに 7 | // 自動的に含まれます。 8 | // 9 | 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | #include 18 | #include 19 | 20 | #include 21 | 22 | #include 23 | #include "android_native_app_glue.h" 24 | -------------------------------------------------------------------------------- /projects/vs2017/android/iutest_android.Packaging/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /projects/vs2017/android/iutest_android.Packaging/project.properties: -------------------------------------------------------------------------------- 1 | # Project target 2 | target=$(androidapilevel) 3 | -------------------------------------------------------------------------------- /projects/vs2017/android/iutest_android.Packaging/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | iutest_android.Packaging 4 | 5 | -------------------------------------------------------------------------------- /projects/vs2017/gmock/gmock1/gmock1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2017/gmock/gmock_samples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.1705 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmock1", "gmock1\gmock1.vcxproj", "{652027C2-BCD8-44E5-A987-201992407DCD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.Build.0 = Debug|Win32 19 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.ActiveCfg = Release|Win32 20 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | GlobalSection(ExtensibilityGlobals) = postSolution 26 | SolutionGuid = {70AF7BE8-3A0F-4950-9202-2D7BA0CEB0B8} 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2017/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2017/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2017/mfc/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2017/mfc/Resource.h -------------------------------------------------------------------------------- /projects/vs2017/mfc/iutest_mfc_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /projects/vs2017/mfc/iutest_mfc_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2017/mfc/iutest_mfc_sample.rc -------------------------------------------------------------------------------- /projects/vs2017/mfc/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2017/mfc/stdafx.cpp -------------------------------------------------------------------------------- /projects/vs2017/mfc/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2017/mfc/stdafx.h -------------------------------------------------------------------------------- /projects/vs2017/mfc/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2017/mfc/targetver.h -------------------------------------------------------------------------------- /projects/vs2017/unittest/iutest_unittest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iutest_unittest", "iutest_unittest.vcxproj", "{B20BD2D4-96B8-9534-98D1-D159E5804ABB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.Build.0 = Debug|Win32 19 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.ActiveCfg = Release|Win32 20 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2017/unittest/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // iutest_unittest.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /projects/vs2017/unittest/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | // Headers for CppUnitTest 11 | #include "CppUnitTest.h" 12 | 13 | // TODO: reference additional headers your program requires here 14 | -------------------------------------------------------------------------------- /projects/vs2017/unittest/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /projects/vs2019/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=mfc 2 | exclude_files=android 3 | exclude_files=unittest 4 | -------------------------------------------------------------------------------- /projects/vs2019/abbreviation.whitelist: -------------------------------------------------------------------------------- 1 | iutest 2 | gtest 3 | gmock 4 | -------------------------------------------------------------------------------- /projects/vs2019/gmock/gmock1/gmock1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2019/gmock/gmock_samples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31729.503 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmock1", "gmock1\gmock1.vcxproj", "{652027C2-BCD8-44E5-A987-201992407DCD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.Build.0 = Debug|Win32 19 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.ActiveCfg = Release|Win32 20 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | GlobalSection(ExtensibilityGlobals) = postSolution 26 | SolutionGuid = {7D0A00DC-A6C5-44DB-B1EA-B1F87DBAA10C} 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2019/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2019/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2019/mfc/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2019/mfc/Resource.h -------------------------------------------------------------------------------- /projects/vs2019/mfc/iutest_mfc_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /projects/vs2019/mfc/iutest_mfc_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2019/mfc/iutest_mfc_sample.rc -------------------------------------------------------------------------------- /projects/vs2019/mfc/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2019/mfc/stdafx.cpp -------------------------------------------------------------------------------- /projects/vs2019/mfc/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2019/mfc/stdafx.h -------------------------------------------------------------------------------- /projects/vs2019/mfc/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2019/mfc/targetver.h -------------------------------------------------------------------------------- /projects/vs2019/unittest/iutest_unittest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iutest_unittest", "iutest_unittest.vcxproj", "{B20BD2D4-96B8-9534-98D1-D159E5804ABB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.Build.0 = Debug|Win32 19 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.ActiveCfg = Release|Win32 20 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2019/unittest/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // iutest_unittest.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /projects/vs2019/unittest/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | // Headers for CppUnitTest 11 | #include "CppUnitTest.h" 12 | 13 | // TODO: reference additional headers your program requires here 14 | -------------------------------------------------------------------------------- /projects/vs2019/unittest/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /projects/vs2022/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=mfc 2 | exclude_files=android 3 | exclude_files=unittest 4 | -------------------------------------------------------------------------------- /projects/vs2022/abbreviation.whitelist: -------------------------------------------------------------------------------- 1 | iutest 2 | gtest 3 | gmock 4 | -------------------------------------------------------------------------------- /projects/vs2022/gmock/gmock1/gmock1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2022/gmock/gmock_samples.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.0.31903.59 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gmock1", "gmock1\gmock1.vcxproj", "{652027C2-BCD8-44E5-A987-201992407DCD}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {652027C2-BCD8-44E5-A987-201992407DCD}.Debug|Win32.Build.0 = Debug|Win32 19 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.ActiveCfg = Release|Win32 20 | {652027C2-BCD8-44E5-A987-201992407DCD}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | GlobalSection(ExtensibilityGlobals) = postSolution 26 | SolutionGuid = {9696E7C3-2229-45B0-B60D-7B777E51AC51} 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest1/gtest1.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest10/gtest10.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest2/gtest2.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | 15 | 16 | src 17 | 18 | 19 | src 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest3/gtest3.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | 18 | 19 | ソース ファイル 20 | 21 | 22 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest4/gtest4.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | ソース ファイル 18 | 19 | 20 | 21 | 22 | ソース ファイル 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest5/gtest5.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | src 15 | 16 | 17 | src 18 | 19 | 20 | 21 | 22 | src 23 | 24 | 25 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest6/gtest6.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest7/gtest7.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest8/gtest8.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | ソース ファイル 12 | 13 | 14 | ソース ファイル 15 | 16 | 17 | -------------------------------------------------------------------------------- /projects/vs2022/gtest/gtest9/gtest9.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2022/iutest_main.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | 10 | 11 | src 12 | 13 | 14 | -------------------------------------------------------------------------------- /projects/vs2022/mfc/Resource.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2022/mfc/Resource.h -------------------------------------------------------------------------------- /projects/vs2022/mfc/iutest_mfc_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /projects/vs2022/mfc/iutest_mfc_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2022/mfc/iutest_mfc_sample.rc -------------------------------------------------------------------------------- /projects/vs2022/mfc/stdafx.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2022/mfc/stdafx.cpp -------------------------------------------------------------------------------- /projects/vs2022/mfc/stdafx.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2022/mfc/stdafx.h -------------------------------------------------------------------------------- /projects/vs2022/mfc/targetver.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/projects/vs2022/mfc/targetver.h -------------------------------------------------------------------------------- /projects/vs2022/unittest/iutest_unittest.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "iutest_unittest", "iutest_unittest.vcxproj", "{B20BD2D4-96B8-9534-98D1-D159E5804ABB}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug_gtest|Win32 = Debug_gtest|Win32 11 | Debug|Win32 = Debug|Win32 12 | Release|Win32 = Release|Win32 13 | EndGlobalSection 14 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 15 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.ActiveCfg = Debug_gtest|Win32 16 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug_gtest|Win32.Build.0 = Debug_gtest|Win32 17 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.ActiveCfg = Debug|Win32 18 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Debug|Win32.Build.0 = Debug|Win32 19 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.ActiveCfg = Release|Win32 20 | {B20BD2D4-96B8-9534-98D1-D159E5804ABB}.Release|Win32.Build.0 = Release|Win32 21 | EndGlobalSection 22 | GlobalSection(SolutionProperties) = preSolution 23 | HideSolutionNode = FALSE 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /projects/vs2022/unittest/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : source file that includes just the standard includes 2 | // iutest_unittest.pch will be the pre-compiled header 3 | // stdafx.obj will contain the pre-compiled type information 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: reference any additional headers you need in STDAFX.H 8 | // and not in this file 9 | -------------------------------------------------------------------------------- /projects/vs2022/unittest/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | // Headers for CppUnitTest 11 | #include "CppUnitTest.h" 12 | 13 | // TODO: reference additional headers your program requires here 14 | -------------------------------------------------------------------------------- /projects/vs2022/unittest/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Including SDKDDKVer.h defines the highest available Windows platform. 4 | 5 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and 6 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h. 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /samples/.clang-tidy: -------------------------------------------------------------------------------- 1 | Checks: " 2 | ,-modernize-use-nullptr\ 3 | ,-cppcoreguidelines-pro-type-reinterpret-cast\ 4 | " 5 | InheritParentConfig: true 6 | -------------------------------------------------------------------------------- /samples/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | filter=-build/namespaces,-runtime/printf,-build/include_subdir 2 | -------------------------------------------------------------------------------- /samples/csvparams.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,10000 -------------------------------------------------------------------------------- /samples/gtest/main.cc: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "gtest/iutest_switch.hpp" 4 | 5 | int main(int argc, char **argv) { 6 | testing::InitGoogleTest(&argc, argv); 7 | return RUN_ALL_TESTS(); 8 | } 9 | -------------------------------------------------------------------------------- /samples/japanese.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file japanese.cpp 5 | * @brief japanese test name 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2018, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #include "../include/iutest.hpp" 16 | 17 | /* --------------------------------------------------- 18 | * 日本語テスト名 19 | *//*--------------------------------------------------*/ 20 | #if IUTEST_HAS_TESTNAME_ALIAS_JP 21 | 22 | IUTEST_PRAGMA_MSC_WARN_PUSH() 23 | IUTEST_PRAGMA_MSC_WARN_DISABLE(4566) 24 | 25 | IUTEST(IUTEST_JAPANESE_NAME(テスト), IUTEST_JAPANESE_NAME(テスト)) 26 | { 27 | } 28 | class JapaneseFixedTest : public ::iutest::Test {}; 29 | 30 | IUTEST_F(IUTEST_JAPANESE_NAME_F(あいうえお, JapaneseFixedTest), IUTEST_JAPANESE_NAME(かきくけこ)) 31 | { 32 | } 33 | 34 | IUTEST_PRAGMA_MSC_WARN_POP() 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /samples/main.cu: -------------------------------------------------------------------------------- 1 | #include "main.cpp" 2 | #include "assertion.cpp" 3 | #include "disabledtest.cpp" 4 | #include "exception.cpp" 5 | #include "fixture.cpp" 6 | #include "matcher.cpp" 7 | #include "parameterized.cpp" 8 | #include "printto.cpp" 9 | #include "simple.cpp" 10 | #include "typed.cpp" 11 | -------------------------------------------------------------------------------- /samples/main.mm: -------------------------------------------------------------------------------- 1 | #include "main.cpp" 2 | #include "assertion.cpp" 3 | #include "disabledtest.cpp" 4 | #include "exception.cpp" 5 | #include "fixture.cpp" 6 | #include "matcher.cpp" 7 | #include "parameterized.cpp" 8 | #include "printto.cpp" 9 | #include "simple.cpp" 10 | #include "typed.cpp" 11 | -------------------------------------------------------------------------------- /samples/windows/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=Resource\.h 2 | exclude_files=stdafx\..* 3 | exclude_files=targetver.h 4 | exclude_files=iutest_windows_sample\..* -------------------------------------------------------------------------------- /samples/windows/Resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Visual C++ generated include file. 3 | // Used by iutest_windows_sample.rc 4 | // 5 | 6 | #define IDS_APP_TITLE 103 7 | 8 | #define IDR_MAINFRAME 128 9 | #define IDD_IUTEST_WINDOWS_SAMPLE_DIALOG 102 10 | #define IDD_ABOUTBOX 103 11 | #define IDM_ABOUT 104 12 | #define IDM_EXIT 105 13 | #define IDI_IUTEST_WINDOWS_SAMPLE 107 14 | #define IDI_SMALL 108 15 | #define IDC_IUTEST_WINDOWS_SAMPLE 109 16 | #define IDC_MYICON 2 17 | #ifndef IDC_STATIC 18 | #define IDC_STATIC -1 19 | #endif 20 | // 新しいオブジェクトの次の既定値 21 | // 22 | #ifdef APSTUDIO_INVOKED 23 | #ifndef APSTUDIO_READONLY_SYMBOLS 24 | 25 | #define _APS_NO_MFC 130 26 | #define _APS_NEXT_RESOURCE_VALUE 129 27 | #define _APS_NEXT_COMMAND_VALUE 32771 28 | #define _APS_NEXT_CONTROL_VALUE 1000 29 | #define _APS_NEXT_SYMED_VALUE 110 30 | #endif 31 | #endif 32 | -------------------------------------------------------------------------------- /samples/windows/iutest_windows_sample.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include "resource.h" 4 | -------------------------------------------------------------------------------- /samples/windows/iutest_windows_sample.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/samples/windows/iutest_windows_sample.ico -------------------------------------------------------------------------------- /samples/windows/iutest_windows_sample.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/samples/windows/iutest_windows_sample.rc -------------------------------------------------------------------------------- /samples/windows/small.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/samples/windows/small.ico -------------------------------------------------------------------------------- /samples/windows/stdafx.cpp: -------------------------------------------------------------------------------- 1 | // stdafx.cpp : 標準インクルード iutest_windows_sample.pch のみを 2 | // 含むソース ファイルは、プリコンパイル済みヘッダーになります。 3 | // stdafx.obj にはプリコンパイル済み型情報が含まれます。 4 | 5 | #include "stdafx.h" 6 | 7 | // TODO: このファイルではなく、STDAFX.H で必要な 8 | // 追加ヘッダーを参照してください。 9 | -------------------------------------------------------------------------------- /samples/windows/stdafx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : 標準のシステム インクルード ファイルのインクルード ファイル、または 2 | // 参照回数が多く、かつあまり変更されない、プロジェクト専用のインクルード ファイル 3 | // を記述します。 4 | // 5 | 6 | #pragma once 7 | 8 | #include "targetver.h" 9 | 10 | #define WIN32_LEAN_AND_MEAN // Windows ヘッダーから使用されていない部分を除外します。 11 | // Windows ヘッダー ファイル: 12 | #include 13 | 14 | // C ランタイム ヘッダー ファイル 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | 21 | // TODO: プログラムに必要な追加ヘッダーをここで参照してください。 22 | #include 23 | #include -------------------------------------------------------------------------------- /samples/windows/targetver.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // SDKDDKVer.h をインクルードすると、利用できる最も上位の Windows プラットフォームが定義されます。 4 | 5 | // 以前の Windows プラットフォーム用にアプリケーションをビルドする場合は、WinSDKVer.h をインクルードし、 6 | // SDKDDKVer.h をインクルードする前に、サポート対象とするプラットフォームを示すように _WIN32_WINNT マクロを設定します。 7 | 8 | #include 9 | -------------------------------------------------------------------------------- /samples/windows/tests/test1.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file test1.cpp 5 | * @brief windows sample 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include 17 | 18 | IUTEST_TEST(TestCase1, Test1) 19 | { 20 | IUTEST_ASSERT_TRUE(false); 21 | } 22 | 23 | IUTEST_TEST(TestCase1, Test2) 24 | { 25 | IUTEST_ASSERT_TRUE(false); 26 | } 27 | 28 | IUTEST_TEST(TestCase2, Test1) 29 | { 30 | IUTEST_ASSERT_TRUE(false); 31 | } 32 | 33 | -------------------------------------------------------------------------------- /setenv.wsf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/iutest_main.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file iutest_main.cpp 5 | * @brief iris unit test main 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2013-2019, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #define IUTEST_USE_LIB 16 | 17 | //====================================================================== 18 | // include 19 | #include 20 | 21 | #include "../include/iutest.hpp" 22 | 23 | #ifdef UNICODE 24 | int wmain(int argc, wchar_t** argv) 25 | #else 26 | int main(int argc, char** argv) 27 | #endif 28 | { 29 | ::std::cout << "Running main() from iutest_main.cpp" << ::std::endl; 30 | 31 | IUTEST_INIT(&argc, argv); 32 | return IUTEST_RUN_ALL_TESTS(); 33 | } 34 | -------------------------------------------------------------------------------- /test/benchmark/main.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file main.cpp 5 | * @brief test main 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2014, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | /* 17 | * include testing framework 18 | */ 19 | #include "gtest/iutest_switch.hpp" 20 | #include "listener/iutest_tap_printer.hpp" 21 | #include "listener/iutest_progress_printer.hpp" 22 | 23 | #ifdef UNICODE 24 | int wmain(int argc, wchar_t* argv[]) 25 | #else 26 | int main(int argc, char* argv[]) 27 | #endif 28 | { 29 | IUTEST_INIT(&argc, argv); 30 | return IUTEST_RUN_ALL_TESTS(); 31 | } 32 | 33 | -------------------------------------------------------------------------------- /test/break_on_failure_nobreak_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file break_on_failure_nobreak_tests.cpp 5 | * @brief break_on_fialure no break test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2014-2017, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | IUTEST(Foo, Skip) 21 | { 22 | IUTEST_SKIP(); 23 | } 24 | 25 | IUTEST(Foo, Inform) 26 | { 27 | IUTEST_INFORM_FALSE(true); 28 | } 29 | 30 | IUTEST(Foo, Assume) 31 | { 32 | IUTEST_ASSUME_FALSE(true); 33 | } 34 | 35 | #ifdef UNICODE 36 | int wmain(int argc, wchar_t* argv[]) 37 | #else 38 | int main(int argc, char* argv[]) 39 | #endif 40 | { 41 | IUTEST_INIT(&argc, argv); 42 | ::iutest::IUTEST_FLAG(break_on_failure) = true; 43 | #if !defined(IUTEST_USE_GTEST) 44 | ::iutest::IUTEST_FLAG(warning_into_error) = false; 45 | #endif 46 | return IUTEST_RUN_ALL_TESTS(); 47 | } 48 | -------------------------------------------------------------------------------- /test/charcode_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file charcode_tests.cpp 5 | * @brief iutest charcode test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2018, Takazumi Shirayanagi\n 10 | * The new BSD License is applied to this software. 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if defined(_MSC_VER) 21 | IUTEST(CharCodeTest, UTF8ToSJIS) 22 | { 23 | (void)iutest::detail::UTF8ToSJIS("test"); 24 | } 25 | #endif 26 | 27 | #ifdef UNICODE 28 | int wmain(int argc, wchar_t* argv[]) 29 | #else 30 | int main(int argc, char* argv[]) 31 | #endif 32 | { 33 | IUTEST_INIT(&argc, argv); 34 | return IUTEST_RUN_ALL_TESTS(); 35 | } 36 | 37 | -------------------------------------------------------------------------------- /test/check_strict_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file check_strict_tests.cpp 5 | * @brief IUTEST_CHECK_STRICT test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2015-2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #if defined(IUTEST_CHECK_STRICT) 17 | # undef IUTEST_CHECK_STRICT 18 | #endif 19 | 20 | #define IUTEST_CHECK_STRICT 1 21 | 22 | //====================================================================== 23 | // include 24 | #include "iutest.hpp" 25 | 26 | class TestFixture : public ::iutest::Test 27 | { 28 | public: 29 | virtual void SetUp() {} 30 | }; 31 | 32 | #if IUTEST_HAS_IF_EXISTS || !defined(IUTEST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(IUTEST_NO_FUNCTION_TEMPLATE_ORDERING) 33 | IUTEST_TEST_STATICASSERT("TestFixture is fixture class, mistake the IUTEST_F?") 34 | IUTEST(TestFixture, Test) 35 | { 36 | } 37 | #endif 38 | 39 | #ifdef UNICODE 40 | int wmain(int argc, wchar_t* argv[]) 41 | #else 42 | int main(int argc, char* argv[]) 43 | #endif 44 | { 45 | IUTEST_INIT(&argc, argv); 46 | return IUTEST_RUN_ALL_TESTS(); 47 | } 48 | 49 | -------------------------------------------------------------------------------- /test/cpplint/README.md: -------------------------------------------------------------------------------- 1 | [ ![Codeship Status for srz-zumix/iutest](https://codeship.com/projects/5bc87030-5b41-0133-6000-4242aa07dce3/status?branch=master)](https://codeship.com/projects/110695) 2 | 3 | iutest cpplint 4 | ========== 5 | 6 | Configuration 7 | -------------------------------------------------- 8 | 9 | linelength=150 10 | 11 | Disable: 12 | 13 | - whitespace 14 | * tab 15 | * indent 16 | * braces 17 | * comments 18 | * newline 19 | * labels 20 | * operators 21 | * parens 22 | - build 23 | * include_what_you_use 24 | * c++11 25 | - readability 26 | * todo 27 | * braces 28 | * function 29 | - runtime 30 | * int 31 | * references 32 | -------------------------------------------------------------------------------- /test/debug_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file debug_tests.cpp 5 | * @brief iutest_debug.hpp test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #define _IUTEST_DEBUG 19 | #include "iutest.hpp" 20 | 21 | IUTEST(Debug, BreakAlloc) 22 | { 23 | #if !defined(IUTEST_USE_GTEST) 24 | ::iutest::detail::iuDebugBreakAlloc(9999); 25 | #endif 26 | } 27 | 28 | #ifdef UNICODE 29 | int wmain(int argc, wchar_t* argv[]) 30 | #else 31 | int main(int argc, char* argv[]) 32 | #endif 33 | { 34 | IUTEST_INIT(&argc, argv); 35 | return IUTEST_RUN_ALL_TESTS(); 36 | } 37 | -------------------------------------------------------------------------------- /test/default_main_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file default_main_tests.cpp 5 | * @brief default main test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2014-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #define IUTEST_USE_MAIN 19 | #include "iutest.hpp" 20 | 21 | IUTEST(Foo, Bar) 22 | { 23 | IUTEST_ASSERT_EQ(1, abs(-1)); 24 | } 25 | -------------------------------------------------------------------------------- /test/disabled_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file disabled_tests.cpp 5 | * @brief also_run_disabled_tests option test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2021, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | #include "disabled_tests_decl.cpp" 20 | 21 | #ifdef UNICODE 22 | int wmain(int argc, wchar_t* argv[]) 23 | #else 24 | int main(int argc, char* argv[]) 25 | #endif 26 | { 27 | IUTEST_INIT(&argc, argv); 28 | const int ret = IUTEST_RUN_ALL_TESTS(); 29 | IUTEST_TERMINATE_ON_FAILURE( ::iutest::UnitTest::GetInstance()->disabled_test_count() == expected_disable_test_count ); 30 | #if !defined(IUTEST_USE_GTEST) || (defined(GTEST_MINOR) && GTEST_MINOR >= 0x07) 31 | IUTEST_TERMINATE_ON_FAILURE( ::iutest::UnitTest::GetInstance()->reportable_disabled_test_count() == expected_disable_test_count ); 32 | #endif 33 | #if !defined(IUTEST_USE_GTEST) 34 | IUTEST_TERMINATE_ON_FAILURE( ::iutest::UnitTest::GetInstance()->skip_test_count() == expected_disable_test_count ); 35 | #endif 36 | return ret; 37 | } 38 | -------------------------------------------------------------------------------- /test/docs/Makefile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make 2 | 3 | default: version-test doxygen-command-typo-check 4 | 5 | version-test: 6 | make -f VersionTest.mk --no-print-directory 7 | 8 | doxygen-test: 9 | make -f DoxygenCommandCheck.mk --no-print-directory ROOT=../../include 10 | -------------------------------------------------------------------------------- /test/env_var_gtest_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file env_var_gtest_tests.cpp 5 | * @brief environment variable tests 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2013-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #define USE_GTEST_PREFIX 17 | 18 | #include "env_var_tests.cpp" 19 | -------------------------------------------------------------------------------- /test/extension_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file extension_tests.cpp 5 | * @brief iutest 拡張部分の test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2013-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "main.cpp" 19 | #include "concat_tests.cpp" 20 | #include "fixture_alias_tests.cpp" 21 | #include "ignore_tests.cpp" 22 | #include "package_tests1.cpp" 23 | #include "package_tests2.cpp" 24 | #include "pairwise_tests.cpp" 25 | #include "param_method_tests.cpp" 26 | #include "param_test_with_any_tests.cpp" 27 | #include "pp_tests.cpp" 28 | #include "random_values_tests.cpp" 29 | #include "values_gen_tests.cpp" 30 | #include "variadic_templates_tests.cpp" 31 | 32 | -------------------------------------------------------------------------------- /test/gtest_tap_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file gtest_tap_tests.cpp 5 | * @brief https://github.com/kinow/gtest-tap-listener 対応テスト 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #define GTEST_TAP_PRINT_TO_STDOUT 16 | 17 | //====================================================================== 18 | // include 19 | #include "iutest.hpp" 20 | #include "tap.h" 21 | 22 | IUTEST(Foo, Bar) 23 | { 24 | IUTEST_EXPECT_EQ(0, 1); 25 | } 26 | 27 | #ifdef UNICODE 28 | int wmain(int argc, wchar_t* argv[]) 29 | #else 30 | int main(int argc, char* argv[]) 31 | #endif 32 | { 33 | IUTEST_INIT(&argc, argv); 34 | ::iutest::TestEventListeners& listeners = ::iutest::UnitTest::GetInstance()->listeners(); 35 | delete listeners.Release(listeners.default_result_printer()); 36 | listeners.Append(new tap::TapListener()); 37 | return IUTEST_RUN_ALL_TESTS(); 38 | } 39 | -------------------------------------------------------------------------------- /test/main.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file main.cpp 5 | * @brief test main 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | /* 17 | * is not available vprintf, can be replaced. 18 | */ 19 | //#define IUTEST_VPRINTF 20 | 21 | /* 22 | * include testing framework 23 | */ 24 | #include "iutest.hpp" 25 | 26 | #ifdef USE_TAP 27 | # include "../include/listener/iutest_tap_printer.hpp" 28 | #endif 29 | 30 | #ifdef USE_PROGRESS 31 | # include "../include/listener/iutest_progress_printer.hpp" 32 | #endif 33 | 34 | #ifdef UNICODE 35 | int wmain(int argc, wchar_t* argv[]) 36 | #else 37 | int main(int argc, char* argv[]) 38 | #endif 39 | { 40 | IUTEST_INIT(&argc, argv); 41 | 42 | #ifdef USE_TAP 43 | ::iutest::TAPPrintListener::SetUp(); 44 | #endif 45 | 46 | #ifdef USE_PROGRESS 47 | ::iutest::ProgressPrintListener::SetUp(); 48 | #endif 49 | 50 | return IUTEST_RUN_ALL_TESTS(); 51 | } 52 | 53 | -------------------------------------------------------------------------------- /test/minimum_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file minimum_tests.cpp 5 | * @brief minimum test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #ifdef UNICODE 21 | int wmain(int argc, wchar_t* argv[]) 22 | #else 23 | int main(int argc, char* argv[]) 24 | #endif 25 | { 26 | IUTEST_INIT(&argc, argv); 27 | return IUTEST_RUN_ALL_TESTS(); 28 | } 29 | 30 | IUTEST(Foo, Bar) 31 | { 32 | IUTEST_ASSERT_EQ(1, abs(-1)); 33 | } 34 | -------------------------------------------------------------------------------- /test/nullptr_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file nullptr_tests.cpp 5 | * @brief nullptr test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2013-2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "../include/gtest/iutest_spi_switch.hpp" // IWYU pragma: keep 19 | 20 | IUTEST(NullTest, Null) 21 | { 22 | int* p = NULL; 23 | IUTEST_ASSERT_NULL(p); 24 | IUTEST_EXPECT_NULL(p); 25 | IUTEST_INFORM_NULL(p); 26 | 27 | #if IUTEST_HAS_NULLPTR 28 | IUTEST_ASSERT_NULL(nullptr); 29 | #else 30 | IUTEST_ASSERT_NULL(NULL); 31 | #endif 32 | } 33 | 34 | IUTEST(NullTest, NotNull) 35 | { 36 | void* p = this; 37 | IUTEST_ASSERT_NOTNULL(p); 38 | IUTEST_EXPECT_NOTNULL(p); 39 | IUTEST_INFORM_NOTNULL(p); 40 | } 41 | 42 | #if IUTEST_HAS_NULLPTR 43 | IUTEST(NullTest, NullEq) 44 | { 45 | int* p = NULL; 46 | IUTEST_ASSERT_EQ(nullptr, p); 47 | } 48 | #endif 49 | 50 | -------------------------------------------------------------------------------- /test/param_method_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file param_method_tests.cpp 5 | * @brief parameter method test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" // IWYU pragma: keep 19 | 20 | #if IUTEST_HAS_PARAM_METHOD_TEST && !defined(IUTEST_BUILD_FOR_IWYU) 21 | 22 | void TestFunction(int x, int y) 23 | { 24 | IUTEST_ASSERT_EQ(x, y); 25 | } 26 | IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 0, 0); 27 | IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 1, 1); 28 | IUTEST_PMZ(ParamMethodTest, EQ, TestFunction, 2, 2); 29 | 30 | class ParamMethodTestFixed : public ::iutest::Test {}; 31 | 32 | IUTEST_PMZ_F(ParamMethodTestFixed, EQ, TestFunction, 0, 0); 33 | IUTEST_PMZ_F(ParamMethodTestFixed, EQ, TestFunction, 1, 1); 34 | IUTEST_PMZ_F(ParamMethodTestFixed, EQ, TestFunction, 2, 2); 35 | 36 | #endif 37 | 38 | -------------------------------------------------------------------------------- /test/param_test_tests.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file param_test_tests.hpp 5 | * @brief parameter test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IUTEST_PARAM_TEST_TESTS_HPP_ 16 | #define INCG_IUTEST_PARAM_TEST_TESTS_HPP_ 17 | 18 | //====================================================================== 19 | // include 20 | #include "iutest.hpp" 21 | 22 | #if IUTEST_HAS_PARAM_TEST 23 | 24 | //====================================================================== 25 | // class 26 | class ParamTest : public ::iutest::TestWithParam {}; 27 | 28 | class MultiInstantiateParamTest : public ::iutest::TestWithParam 29 | { 30 | public: 31 | const int value; 32 | MultiInstantiateParamTest(void) : value(0) {} 33 | }; 34 | 35 | #endif 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /test/prod_tests2.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file prod_tests2.cpp 5 | * @brief product code access test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | #include "prod_tests.hpp" 20 | 21 | namespace prod_test 22 | { 23 | 24 | static ProdClass s_prod_2; 25 | 26 | #if IUTEST_HAS_PEEP 27 | 28 | IUTEST(ProdTest, PeepA2) 29 | { 30 | IUTEST_PEEP_GET(s_prod_2, ProdClass, m_a) = 2; 31 | IUTEST_EXPECT_EQ(2, s_prod_2.GetA()); 32 | 33 | IUTEST_EXPECT_EQ(2, IUTEST_PEEP_GET(s_prod_2, ProdClass, m_a)); 34 | } 35 | 36 | #endif 37 | 38 | } // end of namespace prod_test 39 | -------------------------------------------------------------------------------- /test/repository/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # 4 | # Copyright (C) 2020, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | 8 | default: check-fullpath check-remote-crlf 9 | 10 | check-fullpath: 11 | ! find ../../projects -type f -print0 | xargs -0 grep '[d-zD-Z]:\\.*' 12 | 13 | check-remote-crlf: 14 | ! git grep --cached -I -l -P '\r' -------------------------------------------------------------------------------- /test/spec_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file spec_tests.cpp 5 | * @brief print spec 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if defined(iutest) 21 | # undef iutest 22 | #endif 23 | 24 | #ifdef UNICODE 25 | int wmain(int argc, wchar_t* argv[]) 26 | #else 27 | int main(int argc, char* argv[]) 28 | #endif 29 | { 30 | IUTEST_UNUSED_VAR(argc); 31 | IUTEST_UNUSED_VAR(argv); 32 | ::iutest::detail::iuOptionMessage::ShowFeature(); 33 | ::iutest::detail::iuOptionMessage::ShowSpec(); 34 | return 0; 35 | } 36 | -------------------------------------------------------------------------------- /test/static_assertion_failure_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file static_assertion_failure_tests.cpp 5 | * @brief StaticAssertTypeEq fail test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2015-2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if IUTEST_HAS_STATIC_ASSERT_TYPEEQ 21 | 22 | templatestruct test_struct : public iutest_type_traits::bool_constant {}; 23 | 24 | IUTEST_TEST_COMPILEERROR("static_assert_typeeq") 25 | bool b = ::iutest::StaticAssertTypeEq(); 26 | 27 | IUTEST(StaticAssertTypeEqTest, Fail) 28 | { 29 | IUTEST_TEST_COMPILEERROR("static_assert_typeeq") 30 | ::iutest::StaticAssertTypeEq(); 31 | } 32 | 33 | IUTEST(StaticAssertTypeEqTest, Fail2) 34 | { 35 | IUTEST_TEST_STATICASSERT("(static_assert|static assertion failed)") 36 | IUTEST_STATIC_ASSERT(false); 37 | } 38 | 39 | IUTEST(StaticAssertTypeEqTest, Fail3) 40 | { 41 | IUTEST_TEST_STATICASSERT("(static_assert|static assertion failed)") 42 | IUTEST_STATIC_ASSERT((test_struct::value)); 43 | } 44 | 45 | #endif 46 | -------------------------------------------------------------------------------- /test/static_assertion_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file static_assertion_tests.cpp 5 | * @brief StaticAssertTypeEq アサーション test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2021, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if IUTEST_HAS_STATIC_ASSERT_TYPEEQ 21 | 22 | const bool IUTEST_ATTRIBUTE_UNUSED_ static_assert_typeeq_result_b = ::iutest::StaticAssertTypeEq(); 23 | 24 | IUTEST(StaticAssertTypeEqTest, OK) 25 | { 26 | ::iutest::StaticAssertTypeEq(); 27 | IUTEST_STATIC_ASSERT(true); 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /test/stdlib_config_check/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile 3 | # 4 | # Copyright (C) 2022, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | # 8 | 9 | EXECUTE_TARGET=stdlib_config_check 10 | TARGET=stdlib_config_check.pp 11 | MAKEFILE=Makefile 12 | 13 | .PHONY: clean default all test show 14 | 15 | default : all 16 | 17 | all : clean default show ## clean and build, run 18 | 19 | # dir : 20 | # @if [ ! -e `dirname $(OUTDIR)` ]; then mkdir -p `dirname $(OUTDIR)`; fi 21 | 22 | clean : ## clean 23 | $(RM) $(TARGET) $(EXECUTE_TARGET) 24 | 25 | test : $(EXECUTE_TARGET) ## run tests 26 | ./${EXECUTE_TARGET} 27 | 28 | ${EXECUTE_TARGET}: % : %.cpp $(MAKEFILE) 29 | $(CXX) $(CXXFLAGS) -DSTDLIB_CONFIG_CHECK_EXECUTABLE -o $@ $< 30 | 31 | show : $(TARGET) ## show feature macros 32 | @cat -s ./$(TARGET) \ 33 | | grep -A 256 stdlib_config_check.defs \ 34 | | grep -B 256 $(EXECUTE_TARGET).cpp \ 35 | | sed '/^#/d' \ 36 | | sed 's/[";]//g' \ 37 | | tr -d '\n' \ 38 | | sed -e 's/define/\ndefine/g' -e 's/undef/\nundef/g' \ 39 | | sed '/^$$/d' \ 40 | | sed 's/^/#/g' \ 41 | | paste - 42 | 43 | ${TARGET}: %.pp : %.cpp $(MAKEFILE) 44 | $(CXX) $(CXXFLAGS) -E -x c++ -o $@ $< 45 | -------------------------------------------------------------------------------- /test/stdlib_config_check/stdlib_config_check.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file stdlib_config_check.cpp 5 | * @brief stdlib config check 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2016-2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include 17 | #include "../../include/internal/iutest_pp.hpp" 18 | #include "../../include/internal/iutest_compiler.hpp" 19 | #include "../../include/internal/iutest_stdlib.hpp" 20 | #include "../../include/internal/iutest_type_traits.hpp" 21 | 22 | #ifdef STDLIB_CONFIG_CHECK_EXECUTABLE 23 | #define SHOW_MACRO(macro) ::std::cout << "#define " #macro " " IUTEST_PP_TOSTRING(macro) << ::std::endl 24 | #else 25 | #define SHOW_MACRO(macro) define #macro macro 26 | #endif 27 | 28 | #ifdef UNICODE 29 | int wmain(int , wchar_t* []) 30 | #else 31 | int main(int , char* []) 32 | #endif 33 | { 34 | #include "stdlib_config_check.defs" 35 | return 0; 36 | } 37 | 38 | -------------------------------------------------------------------------------- /test/stdlib_feature_tests/show_macros.tmp: -------------------------------------------------------------------------------- 1 | #ifdef @DEF 2 | SHOW_MACRO(@DEF); 3 | #else 4 | SHOW_UNDEF(@DEF); 5 | #endif 6 | -------------------------------------------------------------------------------- /test/stdlib_feature_tests/stdlib_feature_test.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file stdlib_feature_test.cpp 5 | * @brief stdlib feature macro test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include "../../include/internal/iutest_pp.hpp" 17 | #include "../../include/internal/iutest_compiler.hpp" 18 | #include "../../include/internal/iutest_stdlib.hpp" 19 | 20 | #ifdef FEATURE_TEST_EXECUTABLE 21 | #define SHOW_MACRO(macro) printf("#define %s %s\n", #macro, IUTEST_PP_TOSTRING(macro)) 22 | #define SHOW_UNDEF(macro) printf("#undef %s\n", #macro) 23 | #else 24 | #define SHOW_MACRO(macro) define #macro macro 25 | #define SHOW_UNDEF(macro) undef #macro 26 | #endif 27 | 28 | #define SUPPRESS_WARNING 1 29 | void f() 30 | { 31 | SHOW_MACRO(SUPPRESS_WARNING) 32 | SHOW_UNDEF(SUPPRESS_WARNING) 33 | } 34 | 35 | int main() 36 | { 37 | #include "show_macros.i" // NOLINT 38 | return 0; 39 | } 40 | 41 | -------------------------------------------------------------------------------- /test/testdata/empty.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/test/testdata/empty.bin -------------------------------------------------------------------------------- /test/testdata/empty.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/test/testdata/empty.csv -------------------------------------------------------------------------------- /test/testdata/filter.txt: -------------------------------------------------------------------------------- 1 | # iutest_filter_file_tests testdata 2 | *Run* 3 | # comment 4 | *OK* -------------------------------------------------------------------------------- /test/testdata/flagfile.txt: -------------------------------------------------------------------------------- 1 | # iutest_flagfile_tests testdata 2 | --iutest_filter=@testdata/filter.txt 3 | --iutest_color=off 4 | 5 | -------------------------------------------------------------------------------- /test/testdata/floatcsvparams.csv: -------------------------------------------------------------------------------- 1 | 0.1, 0.2, 0.3 2 | ,3.14 3 | ,-1.1f 4 | -------------------------------------------------------------------------------- /test/testdata/gtest_flagfile.txt: -------------------------------------------------------------------------------- 1 | --gtest_filter=*Run*:*OK* 2 | --gtest_color=no 3 | -------------------------------------------------------------------------------- /test/testdata/intcsvparams.csv: -------------------------------------------------------------------------------- 1 | 1,2,3,4,5 2 | ,-1, 3 | 100 4 | -------------------------------------------------------------------------------- /test/testdata/intcsvparams.tsv: -------------------------------------------------------------------------------- 1 | 1 2 3 4 5 2 | -1 3 | 100 4 | -------------------------------------------------------------------------------- /test/testdata/unit_file_tests.tmp: -------------------------------------------------------------------------------- 1 | test1234abcdWXYZ -------------------------------------------------------------------------------- /test/tr1_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file tr1_tests.cpp 5 | * @brief tr1 all test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2013-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "main.cpp" 19 | #include "tr1_failurecount_assertion_tests.cpp" 20 | #include "tr1_param_direct_tests.cpp" 21 | #include "tr1_value_tmp_tests.cpp" 22 | 23 | -------------------------------------------------------------------------------- /test/type_param_register_exception_int_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file type_param_register_exception_int_tests.cpp 5 | * @brief type parameter exception in register test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2021, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include "type_param_register_exception_tests_decl.hpp" 17 | #if REGISTER_EXCEPTION_TEST 18 | # define REGISTER_EXCEPTION_TEST_THROW_INT 1 19 | #endif 20 | #include "type_param_register_exception_tests_decl.cpp" 21 | -------------------------------------------------------------------------------- /test/type_param_register_exception_std_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file type_param_register_exception_std_tests.cpp 5 | * @brief type parameter exception in register test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2021, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include "type_param_register_exception_tests_decl.hpp" 17 | #if REGISTER_EXCEPTION_TEST 18 | # define REGISTER_EXCEPTION_TEST_THROW_INT 0 19 | #endif 20 | #include "type_param_register_exception_tests_decl.cpp" 21 | -------------------------------------------------------------------------------- /test/type_param_register_exception_tests_decl.hpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file type_param_register_exception_tests.hpp 5 | * @brief type parameter exception in register test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2021, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #ifndef INCG_IUTEST_TYPE_PARAM_REGISTER_EXCEPTION_TESTS_HPP_ 16 | #define INCG_IUTEST_TYPE_PARAM_REGISTER_EXCEPTION_TESTS_HPP_ 17 | 18 | #if defined(IUTEST_HAS_TYPED_TEST_APPEND_TYPENAME) 19 | # undef IUTEST_HAS_TYPED_TEST_APPEND_TYPENAME 20 | #endif 21 | #define IUTEST_HAS_TYPED_TEST_APPEND_TYPENAME 1 22 | #define IUTEST_ABORT() (void)0 23 | 24 | #include "iutest.hpp" 25 | 26 | #if IUTEST_HAS_TYPED_TEST_P && IUTEST_HAS_EXCEPTIONS && !defined(IUTEST_USE_GTEST) && !defined(IUTEST_USE_LIB) 27 | # define REGISTER_EXCEPTION_TEST 1 28 | #endif 29 | 30 | #if !defined(REGISTER_EXCEPTION_TEST) 31 | # define REGISTER_EXCEPTION_TEST 0 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /test/type_param_tests2.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file type_param_tests2.cpp 5 | * @brief type parameter test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2022, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | #include "type_param_tests.hpp" 20 | 21 | #if IUTEST_HAS_TYPED_TEST_P 22 | 23 | namespace type_param_test 24 | { 25 | 26 | IUTEST_INSTANTIATE_TYPED_TEST_SUITE_P(My2, TypeParamTest, float); 27 | 28 | } 29 | 30 | #endif 31 | 32 | -------------------------------------------------------------------------------- /test/uninitialize_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file uninitialize_tests.cpp 5 | * @brief 未初期化テスト 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2018, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | IUTEST(Test, Dummy) 21 | { 22 | } 23 | 24 | #ifdef UNICODE 25 | int wmain(int argc, wchar_t* argv[]) 26 | #else 27 | int main(int argc, char* argv[]) 28 | #endif 29 | { 30 | (void)argc; 31 | (void)argv; 32 | if( IUTEST_RUN_ALL_TESTS() == 0 ) 33 | { 34 | #if !defined(IUTEST_USE_GTEST) 35 | return 1; 36 | #else 37 | printf("googletest latest is behavior changed...\n"); 38 | #endif 39 | } 40 | printf("*** Successful ***\n"); 41 | return 0; 42 | } 43 | -------------------------------------------------------------------------------- /test/unit_macro_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file unit_macro_tests.cpp 5 | * @brief iutest test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2019-2021, Takazumi Shirayanagi\n 10 | * The new BSD License is applied to this software. 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if IUTEST_HAS_CXX2B 21 | IUTEST(UnitMacroTest, CXX2B) 22 | { 23 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX20); 24 | } 25 | #endif 26 | #if IUTEST_HAS_CXX20 27 | IUTEST(UnitMacroTest, CXX20) 28 | { 29 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX2A); 30 | } 31 | #endif 32 | #if IUTEST_HAS_CXX2A 33 | IUTEST(UnitMacroTest, CXX2A) 34 | { 35 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX17); 36 | } 37 | #endif 38 | #if IUTEST_HAS_CXX17 39 | IUTEST(UnitMacroTest, CXX17) 40 | { 41 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX1Z); 42 | } 43 | #endif 44 | #if IUTEST_HAS_CXX1Z 45 | IUTEST(UnitMacroTest, CXX1Z) 46 | { 47 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX14); 48 | } 49 | #endif 50 | #if IUTEST_HAS_CXX14 51 | IUTEST(UnitMacroTest, CXX14) 52 | { 53 | IUTEST_EXPECT_EQ(1, IUTEST_HAS_CXX11); 54 | } 55 | #endif 56 | -------------------------------------------------------------------------------- /test/unit_own_string_view_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file unit_own_string_view_tests.cpp 5 | * @brief iutest test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2019-2022, Takazumi Shirayanagi\n 10 | * The new BSD License is applied to this software. 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #define IUTEST_USE_OWN_STRING_VIEW 1 17 | 18 | //====================================================================== 19 | // include 20 | #include "iutest.hpp" 21 | #include "unit_string_view_tests.cpp" 22 | 23 | #ifdef UNICODE 24 | int wmain(int argc, wchar_t* argv[]) 25 | #else 26 | int main(int argc, char* argv[]) 27 | #endif 28 | { 29 | IUTEST_INIT(&argc, argv); 30 | return IUTEST_RUN_ALL_TESTS(); 31 | } 32 | -------------------------------------------------------------------------------- /test/variadic_templates_tests.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file variadic_templates_tests.cpp 5 | * @brief Variadic Templates test 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2012-2016, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | //====================================================================== 17 | // include 18 | #include "iutest.hpp" 19 | 20 | #if IUTEST_HAS_VARIADIC_PRED 21 | 22 | bool pred_test(int a0, int a1, int a2, int a3, int a4, int a5) 23 | { 24 | return a0+a2+a4 == a1+a3+a5; 25 | } 26 | 27 | IUTEST(PredTest, Variadic) 28 | { 29 | IUTEST_ASSERT_PRED(pred_test, 0, 0, 0, 0, 0, 0); 30 | IUTEST_EXPECT_PRED(pred_test, 0, 0, 0, 0, 0, 0); 31 | IUTEST_INFORM_PRED(pred_test, 0, 0, 0, 0, 0, 0); 32 | } 33 | 34 | #endif 35 | 36 | -------------------------------------------------------------------------------- /tools/VisualStudio/Visualizers/iutest.natvis: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ name={test_info_->m_testname}}} 5 | 6 | test_info_->m_testname 7 | test_info_->m_testcase->m_test_case->m_testcase_name 8 | test_info_->m_test_result 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /tools/VisualStudio/Visualizers/stdstring-s8.natvis: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | {_Mypair._Myval2._Bx._Buf,nas8} 11 | {_Mypair._Myval2._Bx._Ptr,nas8} 12 | _Mypair._Myval2._Bx._Buf,nas8 13 | _Mypair._Myval2._Bx._Ptr,nas8 14 | 15 | size() 16 | capacity() 17 | _Mypair 18 | 19 | _Mypair._Myval2._Mysize 20 | _Mypair._Myval2._Bx._Buf 21 | _Mypair._Myval2._Bx._Ptr 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tools/VisualStudio/cl-dME.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | python --version 4 | 5 | if defined MSC_CMD_FLAGS ( 6 | echo MSC_CMD_FLAGS 7 | echo %MSC_CMD_FLAGS% 8 | python %~dp0\cl-dME.py %MSC_CMD_FLAGS% 9 | ) 10 | if defined MSC_IDE_FLAGS ( 11 | echo MSC_IDE_FLAGS 12 | echo %MSC_IDE_FLAGS% 13 | python %~dp0\cl-dME.py %MSC_IDE_FLAGS% 14 | ) 15 | 16 | exit 1 17 | -------------------------------------------------------------------------------- /tools/VisualStudio/cl-dME.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # cl-dME.py 4 | # 5 | # usage: 6 | # cl /B1cl-dME.bat main.cpp 7 | # cl /BXcl-dME.bat main.cpp 8 | 9 | from argparse import ArgumentParser 10 | from argparse import SUPPRESS 11 | 12 | 13 | def main(): 14 | parser = ArgumentParser(add_help=False) 15 | parser.add_argument( 16 | '-D', 17 | dest='defs', 18 | action='append', 19 | default=[], 20 | help=SUPPRESS 21 | ) 22 | opts, args = parser.parse_known_args() 23 | for d in opts.defs: 24 | print(d) 25 | 26 | 27 | if __name__ == "__main__": 28 | main() 29 | -------------------------------------------------------------------------------- /tools/VisualStudio/vcperf.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | which vcperf.exe > nul 2>&1 4 | if errorlevel 1 ( 5 | call %~dp0\vcvars.bat 16.0 x64 6 | ) 7 | vcperf.exe %* 8 | -------------------------------------------------------------------------------- /tools/VisualStudio/vcvars.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | if not exist "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" ( 4 | goto from_envvar 5 | ) 6 | 7 | if "%~1"=="" ( 8 | echo %~nx0 "" [vcvarsall options...] 9 | exit 1 10 | ) 11 | SET VSVER=%1 12 | SET ARGS= 13 | 14 | :check 15 | shift 16 | if "%~1"=="" goto final 17 | set ARGS=%ARGS% %1 18 | goto check 19 | :final 20 | 21 | which vswhere > nul 2>&1 22 | if errorlevel 1 SET PATH=%PATH%;%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\ 23 | vswhere -version %VSVER% -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -find **/vcvarsall.bat > tmp.txt 24 | SET /p VCVARS= 18 | 19 | int main(int argc, char** argv) 20 | { 21 | int x = 0; 22 | ::std::cout << "hoge" << ::std::endl; 23 | 24 | // IUTEST_INIT(&argc, argv); 25 | // return IUTEST_RUN_ALL_TESTS(); 26 | return 0; 27 | } 28 | 29 | //IUTEST(Foo, Bar) 30 | //{ 31 | // IUTEST_ASSERT_EQ(1, abs(-1)); 32 | //} 33 | -------------------------------------------------------------------------------- /tools/python/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile 3 | 4 | .PHONY: sample clean editorconfig-self-lint 5 | TOOLS=eval_line.py 6 | 7 | sample: $(TOOLS) Makefile 8 | python eval_line.py '#define PP_INC_$${line} $${line+1}' -r 255 -s 1 -o pp_inc.h --encoding utf-8-sig 9 | 10 | clean: 11 | rm -rf pp_inc.h 12 | 13 | editorconfig-self-lint: 14 | python editorconfig-self-lint.py ../../.editorconfig 15 | -------------------------------------------------------------------------------- /tools/python/editorconfig-self-lint.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # editorconfig-lint.py 4 | # 5 | # Copyright (C) 2019, Takazumi Shirayanagi 6 | # This software is released under the new BSD License, 7 | # see LICENSE 8 | # 9 | 10 | import sys 11 | import os 12 | 13 | try: 14 | from configparser import ConfigParser 15 | except ImportError: 16 | from ConfigParser import SafeConfigParser as ConfigParser 17 | 18 | 19 | class EditorConfig(object): 20 | def __init__(self, path): 21 | self.name = os.path.basename(path) 22 | self.fp = open(path) 23 | self.first_head = True 24 | 25 | def readline(self): 26 | if self.first_head: 27 | self.first_head = False 28 | return '[global]\n' 29 | return self.fp.readline() 30 | 31 | def __iter__(self): 32 | return self 33 | 34 | def __next__(self): 35 | line = self.readline() 36 | if not line: 37 | raise StopIteration 38 | return line 39 | 40 | next = __next__ # For Python 2 compatibility. 41 | 42 | 43 | def main(): 44 | path = sys.argv[1] 45 | ini = ConfigParser() 46 | if not os.path.exists(path): 47 | sys.stderr.write('%s not found...' % path) 48 | sys.exit(2) 49 | ini.read_file(EditorConfig(path)) 50 | sys.exit(0) 51 | 52 | 53 | if __name__ == '__main__': 54 | main() 55 | -------------------------------------------------------------------------------- /tools/python/iutest_incg_test.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | # 4 | # iutest_incg_test.py 5 | # 6 | # Copyright (C) 2016, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | import os 12 | import sys 13 | import re 14 | import codecs 15 | 16 | 17 | def main(): 18 | filepath = sys.argv[1] 19 | incg = os.path.basename(filepath).upper().replace('.', '_') 20 | f = codecs.open(filepath, 'r', 'utf-8-sig') 21 | text = f.read() 22 | f.close() 23 | r = '\s*#\s*ifndef[/\s]*INCG_IRIS_{0}\S*\s*'.format(incg) 24 | if not re.search(r, text): 25 | exit(1) 26 | 27 | 28 | if __name__ == '__main__': 29 | main() 30 | -------------------------------------------------------------------------------- /tools/python/pythontools.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "iutest_compile_error_test", "iutest_compile_error_test.pyproj", "{96D837D5-AC31-405A-B96A-7962E6E33D13}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {96D837D5-AC31-405A-B96A-7962E6E33D13}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {96D837D5-AC31-405A-B96A-7962E6E33D13}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /tools/twilio/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile 3 | 4 | .PHONY: setup sample dryrun run 5 | 6 | help: iutwilio.py 7 | python ./iutwilio.py -h 8 | 9 | sample: sample.cpp Makefile 10 | ${CXX} sample.cpp -o sample 11 | 12 | exec_sample: sample 13 | - ./sample --iutest_output=xml:result.xml 14 | 15 | dryrun: exec_sample iutwilio.py 16 | ifdef SMS 17 | python ./iutwilio.py result.xml --dryrun --sms ${CALL_NUMBER} 18 | else 19 | python ./iutwilio.py result.xml --dryrun --call ${CALL_NUMBER} 20 | endif 21 | 22 | run: exec_sample iutwilio.py 23 | ifdef SMS 24 | python ./iutwilio.py result.xml --sms ${CALL_NUMBER} 25 | else 26 | python ./iutwilio.py result.xml --call ${CALL_NUMBER} 27 | endif 28 | 29 | test: iutwilio.py 30 | python ./iutwilio.py -h 31 | - python ./iutwilio.py result.xml --dryrun --sms ${CALL_NUMBER} 32 | - python ./iutwilio.py result.xml --dryrun --call ${CALL_NUMBER} 33 | 34 | setup: 35 | #pip install twilio 36 | easy_install twilio 37 | -------------------------------------------------------------------------------- /tools/twilio/sample.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file sample.cpp 5 | * @brief twilio sample 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2015, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | #include "../../include/iutest.hpp" 16 | 17 | #ifdef UNICODE 18 | int wmain(int argc, wchar_t* argv[]) 19 | #else 20 | int main(int argc, char* argv[]) 21 | #endif 22 | { 23 | IUTEST_INIT(&argc, argv); 24 | return IUTEST_RUN_ALL_TESTS(); 25 | } 26 | 27 | int a=0; 28 | 29 | IUTEST(Test, A) 30 | { 31 | IUTEST_ASSERT_EQ(a, 1); 32 | } 33 | 34 | -------------------------------------------------------------------------------- /tools/wandbox/CPPLINT.cfg: -------------------------------------------------------------------------------- 1 | exclude_files=.*\.h 2 | exclude_files=tests 3 | filter=-build/include_subdir,-whitespace/blank_line -------------------------------------------------------------------------------- /tools/wandbox/iuwandbox.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.25420.1 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "iuwandbox", "iuwandbox.pyproj", "{9BC8B564-1B6A-4596-AFEC-DFC6D2515AB7}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9BC8B564-1B6A-4596-AFEC-DFC6D2515AB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {9BC8B564-1B6A-4596-AFEC-DFC6D2515AB7}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /tools/wandbox/sample.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file sample.cpp 5 | * @brief wandbox sample 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include "sample.h" 17 | #include 18 | #include "../../include/iutest.hpp" 19 | #if defined(SAMPLE2) 20 | #include "sample2.h" 21 | #endif 22 | 23 | int main(int argc, char** argv) 24 | { 25 | int x = 0; 26 | ::std::cout << "hoge" << ::std::endl; 27 | 28 | IUTEST_INIT(&argc, argv); 29 | return IUTEST_RUN_ALL_TESTS(); 30 | } 31 | 32 | IUTEST(Foo, Bar) 33 | { 34 | IUTEST_ASSERT_EQ(42, f()); 35 | #if defined(SAMPLE2) 36 | IUTEST_ASSERT_EQ( 0, g()); 37 | #endif 38 | } 39 | -------------------------------------------------------------------------------- /tools/wandbox/sample.h: -------------------------------------------------------------------------------- 1 | 2 | inline int f() { return 42; } 3 | -------------------------------------------------------------------------------- /tools/wandbox/sample2.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file sample2.cpp 5 | * @brief wandbox sample 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include "sample2.h" 17 | #include 18 | #include "../../include/iutest.hpp" 19 | 20 | int g() 21 | { 22 | return 0; 23 | } 24 | 25 | IUTEST_PACKAGE(sample2) 26 | { 27 | 28 | IUTEST(Foo, Bar) 29 | { 30 | IUTEST_ASSERT( g() == 0 ); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /tools/wandbox/sample2.h: -------------------------------------------------------------------------------- 1 | 2 | int g(); 3 | -------------------------------------------------------------------------------- /tools/wandbox/simple.cpp: -------------------------------------------------------------------------------- 1 | //====================================================================== 2 | //----------------------------------------------------------------------- 3 | /** 4 | * @file simple.cpp 5 | * @brief wandbox sample 6 | * 7 | * @author t.shirayanagi 8 | * @par copyright 9 | * Copyright (C) 2020, Takazumi Shirayanagi\n 10 | * This software is released under the new BSD License, 11 | * see LICENSE 12 | */ 13 | //----------------------------------------------------------------------- 14 | //====================================================================== 15 | 16 | #include 17 | 18 | int main(int argc, char** argv) 19 | { 20 | int x = 0; 21 | ::std::cout << "hoge" << ::std::endl; 22 | return 0; 23 | } 24 | -------------------------------------------------------------------------------- /tools/wandbox/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/srz-zumix/iutest/46a88c0c5ad3899f74c453e49e0c6e3bf72f3979/tools/wandbox/tests/__init__.py -------------------------------------------------------------------------------- /tools/wandbox/tests/src/A/sample.cpp: -------------------------------------------------------------------------------- 1 | #include "../../../../../include/iutest.hpp" 2 | #include "sample.h" 3 | 4 | IUTEST(A, Bar) 5 | { 6 | IUTEST_ASSERT_EQ(42, f()); 7 | } 8 | -------------------------------------------------------------------------------- /tools/wandbox/tests/src/A/sample.h: -------------------------------------------------------------------------------- 1 | 2 | inline int f() { return 42; } 3 | -------------------------------------------------------------------------------- /tools/wandbox/tests/src/B/sample.cpp: -------------------------------------------------------------------------------- 1 | #include "../../../../../include/iutest.hpp" 2 | #include "sample.h" 3 | 4 | IUTEST(B, Bar) 5 | { 6 | IUTEST_ASSERT_EQ(1, f()); 7 | } 8 | -------------------------------------------------------------------------------- /tools/wandbox/tests/src/B/sample.h: -------------------------------------------------------------------------------- 1 | 2 | inline int f() { return 1; } 3 | -------------------------------------------------------------------------------- /tools/wandbox/tests/src/main.cpp: -------------------------------------------------------------------------------- 1 | #include "../../../../include/iutest.hpp" 2 | 3 | int main(int argc, char** argv) 4 | { 5 | IUTEST_INIT(&argc, argv); 6 | return IUTEST_RUN_ALL_TESTS(); 7 | } 8 | -------------------------------------------------------------------------------- /utils/ci.mk: -------------------------------------------------------------------------------- 1 | # 2 | # ci.mk 3 | # 4 | # Copyright (C) 2017-2020, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | # 8 | 9 | ifneq ($(CI),) 10 | CI=true 11 | endif 12 | 13 | ifdef AZURE_HTTP_USER_AGENT 14 | CI=true 15 | endif 16 | -------------------------------------------------------------------------------- /utils/cpp.mk: -------------------------------------------------------------------------------- 1 | # 2 | # cxx.mk 3 | # 4 | # c++ command help 5 | # 6 | # Copyright (C) 2019-2020, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | ifeq ($(CXX), c++) 12 | 13 | ifeq ($(shell $(CXX) --version | grep -o zapcc), zapcc) 14 | CXX_NAME=zapcc++ 15 | endif 16 | 17 | ifeq ($(shell $(CXX) --version | grep -o clang), clang) 18 | CXX_NAME=clang++ 19 | endif 20 | 21 | ifeq ($(shell $(CXX) --version | grep -o GCC), GCC) 22 | CXX_NAME=g++ 23 | endif 24 | 25 | # $(warning CXX_NAME = $(CXX_NAME)) 26 | 27 | endif 28 | -------------------------------------------------------------------------------- /utils/cygwin.mk: -------------------------------------------------------------------------------- 1 | # 2 | # cygwin.mk 3 | # 4 | # Copyright (C) 2017-2019, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | # 8 | 9 | ifeq ($(findstring cygwin, $(shell ${CXX} -v 2>&1)), cygwin) 10 | IUTEST_MKFLAG_CYGWIN=1 11 | else 12 | 13 | ifeq ($(findstring windows-cygnus, $(shell ${CXX} -v 2>&1)), windows-cygnus) 14 | IUTEST_MKFLAG_CYGWIN=1 15 | else 16 | ifeq ($(findstring CYGWIN, $(shell uname)), CYGWIN) 17 | IUTEST_MKFLAG_CYGWIN=1 18 | endif 19 | endif 20 | 21 | endif 22 | 23 | ifndef IUTEST_MKFLAG_CYGWIN 24 | IUTEST_MKFLAG_CYGWIN=0 25 | endif 26 | 27 | ifeq ($(IUTEST_MKFLAG_CYGWIN),1) 28 | CYGWIN_OPTION:=${CYGWIN} error_start=dumper.exe 29 | export CYGWIN=${CYGWIN_OPTION} 30 | endif 31 | -------------------------------------------------------------------------------- /utils/function.mk: -------------------------------------------------------------------------------- 1 | # 2 | # function.mk 3 | # 4 | # makefile utils functions 5 | # 6 | # Copyright (C) 2020, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | define is_number 12 | $(shell test '$(1)' -eq '$(1)' 2>/dev/null && echo true || echo false) 13 | endef 14 | -------------------------------------------------------------------------------- /utils/iccversion.mk: -------------------------------------------------------------------------------- 1 | # 2 | # iccversion.mk 3 | # 4 | # Intel Compiler (ICC) version check 5 | # 6 | # Copyright (C) 2021, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | ifneq ($(CXX_NAME),icc) 12 | 13 | ifeq ($(findstring icpc, $(CXX)), icpc) 14 | CXX_NAME=icc 15 | endif 16 | 17 | endif 18 | 19 | ifeq ($(CXX_NAME),icc) 20 | 21 | ICCDUMPVERSION:=$(shell $(CXX) -dumpversion) 22 | ICCVERSION_TEMP:=$(ICCDUMPVERSION) 0 0 23 | 24 | dot:=. 25 | empty:= 26 | space:=$(empty) $(empty) 27 | ICCVERSION_TEMP:=$(subst $(dot),$(space), $(ICCVERSION_TEMP)) 28 | ICCMAJOR:=$(word 1, $(ICCVERSION_TEMP)) 29 | ICCMINOR:=$(word 2, $(ICCVERSION_TEMP)) 30 | 31 | CXX_MAJOR=${ICCMAJOR} 32 | CXX_MINOR=${ICCMINOR} 33 | CXX_VERSION=${CXX_MAJOR}.${CXX_MINOR} 34 | 35 | STD_CPP03=c++98 36 | STD_GNU03=gnu++98 37 | 38 | IUTEST_CXX_STRICT_FLAGS= \ 39 | -Wformat=2 -Wcast-qual \ 40 | -Wwrite-strings -Wpointer-arith -Wundef 41 | 42 | endif 43 | -------------------------------------------------------------------------------- /utils/mingw.mk: -------------------------------------------------------------------------------- 1 | # 2 | # mingw.mk 3 | # 4 | # Copyright (C) 2019, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | # 8 | 9 | ifeq ($(findstring mingw, $(CXX)),mingw) 10 | IUTEST_MKFLAG_MINGW=1 11 | else 12 | ifeq ($(findstring MinGW, $(shell ${CXX} -v 2>&1)), MinGW) 13 | IUTEST_MKFLAG_MINGW=1 14 | endif 15 | endif 16 | 17 | ifndef IUTEST_MKFLAG_MINGW 18 | IUTEST_MKFLAG_MINGW=0 19 | endif 20 | 21 | ifeq ($(IUTEST_MKFLAG_MINGW),1) 22 | LIBS+=ws2_32 23 | override CXXFLAGS += -static-libgcc -static-libstdc++ 24 | endif 25 | -------------------------------------------------------------------------------- /utils/props/TreatWarningAsError.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /utils/python.mk: -------------------------------------------------------------------------------- 1 | # 2 | # python.mk 3 | # 4 | # Copyright (C) 2020, Takazumi Shirayanagi 5 | # This software is released under the new BSD License, 6 | # see LICENSE 7 | # 8 | 9 | UTILS_MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 10 | include $(UTILS_MAKEFILE_DIR)/function.mk 11 | 12 | PYTHON_VERSION_FULL_ := $(wordlist 2,4,$(subst ., ,$(shell python --version 2>&1))) 13 | 14 | ifneq ($(PYTHON_VERSION_FULL_),) 15 | 16 | PYTHON_VERSION := ${PYTHON_VERSION_FULL_} 17 | 18 | PYTHON_VERSION_MAJOR_ := $(word 1,${PYTHON_VERSION}) 19 | PYTHON_VERSION_MINOR_ := $(word 2,${PYTHON_VERSION}) 20 | PYTHON_VERSION_PATCH_ := $(word 3,${PYTHON_VERSION}) 21 | 22 | ifeq ($(call is_number, $(PYTHON_VERSION_MAJOR_)),true) 23 | PYTHON_VERSION_MAJOR := $(PYTHON_VERSION_MAJOR_) 24 | endif 25 | ifeq ($(call is_number, $(PYTHON_VERSION_MINOR_)),true) 26 | PYTHON_VERSION_MINOR := $(PYTHON_VERSION_MINOR_) 27 | endif 28 | ifeq ($(call is_number, $(PYTHON_VERSION_PATCH_)),true) 29 | PYTHON_VERSION_PATCH := $(PYTHON_VERSION_PATCH_) 30 | endif 31 | 32 | endif 33 | 34 | ifndef PYTHON_VERSION_MAJOR 35 | PYTHON_VERSION_MAJOR := 0 36 | endif 37 | ifndef PYTHON_VERSION_MINOR 38 | PYTHON_VERSION_MINOR := 0 39 | endif 40 | ifndef PYTHON_VERSION_PATCH 41 | PYTHON_VERSION_PATCH := 0 42 | endif 43 | 44 | # $(warning ${PYTHON_VERSION_MAJOR}) 45 | # $(warning ${PYTHON_VERSION_MINOR}) 46 | # $(warning ${PYTHON_VERSION_PATCH}) 47 | 48 | # 2.7 later 49 | ifeq (1,$(shell expr \( \( $(PYTHON_VERSION_MAJOR) \>= 3 \) \| \( $(PYTHON_VERSION_MAJOR) \>= 2 \& $(PYTHON_VERSION_MINOR) \>= 7 \) \))) 50 | IUTEST_USE_PYTHON:=1 51 | else 52 | IUTEST_USE_PYTHON:=0 53 | endif 54 | -------------------------------------------------------------------------------- /utils/stdcver.mk: -------------------------------------------------------------------------------- 1 | ifdef STDFLAG 2 | 3 | ifeq ($(findstring gnu, $(STDFLAG)), gnu) 4 | CPP_GNU_EXTENSION=1 5 | else 6 | CPP_GNU_EXTENSION=0 7 | endif 8 | 9 | CPPVER_=$(shell echo $(STDFLAG) | grep -o \+\+[0-9][0-9A-Za-z] | sed "s/\+\+//g") 10 | 11 | # $(warning CPPVER_ = $(CPPVER_)) 12 | 13 | ifeq ($(CPPVER_),98) 14 | CPPVER=98 15 | CPPVER_Y=1998 16 | endif 17 | 18 | ifeq ($(CPPVER_),03) 19 | CPPVER=03 20 | CPPVER_Y=2003 21 | endif 22 | 23 | ifeq ($(CPPVER_),0x) 24 | CPPVER=11 25 | CPPVER_Y=2011 26 | endif 27 | 28 | ifeq ($(CPPVER_),11) 29 | CPPVER=11 30 | CPPVER_Y=2011 31 | endif 32 | 33 | ifeq ($(CPPVER_),1y) 34 | CPPVER=14 35 | CPPVER_Y=2014 36 | endif 37 | 38 | ifeq ($(CPPVER_),14) 39 | CPPVER=14 40 | CPPVER_Y=2014 41 | endif 42 | 43 | ifeq ($(CPPVER_),1z) 44 | CPPVER=17 45 | CPPVER_Y=2017 46 | endif 47 | 48 | ifeq ($(CPPVER_),17) 49 | CPPVER=17 50 | CPPVER_Y=2017 51 | endif 52 | 53 | ifeq ($(CPPVER_),2a) 54 | CPPVER=20 55 | CPPVER_Y=2020 56 | endif 57 | 58 | ifeq ($(CPPVER_),20) 59 | CPPVER=20 60 | CPPVER_Y=2020 61 | endif 62 | 63 | # $(warning CPPVER = $(CPPVER)) 64 | # $(warning CPPVER_Y = $(CPPVER_Y)) 65 | 66 | endif 67 | -------------------------------------------------------------------------------- /utils/utils.mk: -------------------------------------------------------------------------------- 1 | # 2 | # utils.mk 3 | # 4 | # makefile utils 5 | # 6 | # Copyright (C) 2019-2021, Takazumi Shirayanagi 7 | # This software is released under the new BSD License, 8 | # see LICENSE 9 | # 10 | 11 | UTILS_MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST))) 12 | 13 | include $(UTILS_MAKEFILE_DIR)/ci.mk 14 | include $(UTILS_MAKEFILE_DIR)/warning.mk 15 | include $(UTILS_MAKEFILE_DIR)/cpp.mk 16 | include $(UTILS_MAKEFILE_DIR)/xcode.mk 17 | include $(UTILS_MAKEFILE_DIR)/gccversion.mk 18 | include $(UTILS_MAKEFILE_DIR)/clangversion.mk 19 | include $(UTILS_MAKEFILE_DIR)/iccversion.mk 20 | include $(UTILS_MAKEFILE_DIR)/zapccversion.mk 21 | include $(UTILS_MAKEFILE_DIR)/cygwin.mk 22 | include $(UTILS_MAKEFILE_DIR)/mingw.mk 23 | include $(UTILS_MAKEFILE_DIR)/python.mk 24 | -------------------------------------------------------------------------------- /utils/warning.mk: -------------------------------------------------------------------------------- 1 | IUTEST_CXX_STRICT_FLAGS+= \ 2 | -Wformat=2 -Wcast-qual -Wcast-align \ 3 | -Wwrite-strings -Wpointer-arith -Wundef -Wunused-macros 4 | 5 | # IUTEST_CXX_STRICT_FLAGS+= -Wfloat-equal 6 | # Necessary for peep class operator 7 | # IUTEST_CXX_STRICT_FLAGS+= -Wconversion 8 | --------------------------------------------------------------------------------