wutiejun / workspace

My workspace.
7 stars 3 forks source link

UnitTesting for codeblock #41

Open wutiejun opened 7 years ago

wutiejun commented 7 years ago

http://wiki.codeblocks.org/index.php/UnitTesting#Introduction

wutiejun commented 7 years ago

Build Gtest

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
    <FileVersion major="1" minor="6" />
    <Project>
        <Option title="gtest" />
        <Option pch_mode="2" />
        <Option compiler="gcc" />
        <Build>
            <Script file="lib_finder.script" />
            <Target title="Debug">
                <Option output="bin/Debug/gtest" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Debug/" />
                <Option type="1" />
                <Option compiler="gcc" />
                <Option use_console_runner="0" />
                <Compiler>
                    <Add option="-g" />
                </Compiler>
            </Target>
            <Target title="Release">
                <Option output="bin/Release/gtest" imp_lib="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).a" def_file="$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).def" prefix_auto="1" extension_auto="1" />
                <Option object_output="obj/Release/" />
                <Option type="3" />
                <Option compiler="gcc" />
                <Option createDefFile="1" />
                <Option createStaticLib="1" />
                <Compiler>
                    <Add option="-O2" />
                </Compiler>
                <Linker>
                    <Add option="-s" />
                </Linker>
            </Target>
        </Build>
        <Compiler>
            <Add option="-Wall" />
            <Add option="-fexceptions" />
            <Add option="-DGTEST_OS_WINDOWS" />
            <Add option="-DGTEST_HAS_GETTIMEOFDAY_" />
            <Add option="-DWINVER=0x0500" />
            <Add directory="../googletest-release-1.8.0/googletest/include" />
            <Add directory="../googletest-release-1.8.0/googletest" />
        </Compiler>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-all.cc" />
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-death-test.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-filepath.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-internal-inl.h" />
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-port.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-printers.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-test-part.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest-typed-test.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest.cc">
            <Option link="0" />
        </Unit>
        <Unit filename="../googletest-release-1.8.0/googletest/src/gtest_main.cc" />
        <Unit filename="main.cpp">
            <Option link="0" />
        </Unit>
        <Extensions>
            <code_completion />
            <envvars />
            <debugger />
            <lib_finder disable_auto="1" />
        </Extensions>
    </Project>
</CodeBlocks_project_file>

-------------- Run: Debug in gtest (compiler: GNU GCC Compiler)---------------

Checking for existence: D:\WorkSpace\iSource\libdata\proj\bin\Debug\gtest.exe
Executing: "D:\WorkSpace\iSource\libdata\proj\bin\Debug\gtest.exe"  (in D:\WorkSpace\iSource\libdata\proj\.)
Process terminated with status 0 (0 minute(s), 0 second(s))