test: added test descriptions and resources for manually testing different project setup methods

This commit is contained in:
mlangkabel
2018-08-28 11:13:05 +02:00
parent 0f5548f5f9
commit 1ba843fbec
64 changed files with 1156 additions and 0 deletions
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8"?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6"/>
<Project>
<Option title="Test"/>
<Option makefile_is_custom="1"/>
<Option compiler="msvc8"/>
<Option virtualFolders="CMake Files\;"/>
<Build>
<Target title="all">
<Option working_dir="<source_path>"/>
<Option type="4"/>
<MakeCommands>
<Build command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 all"/>
<CompileFile command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 &quot;$file&quot;"/>
<Clean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
<DistClean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="Test">
<Option output="<source_path>/Test.exe" prefix_auto="0" extension_auto="0"/>
<Option working_dir="<source_path>"/>
<Option object_output="./"/>
<Option type="1"/>
<Option compiler="msvc8"/>
<Compiler>
<Add directory="<source_path>/include"/>
</Compiler>
<MakeCommands>
<Build command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 Test"/>
<CompileFile command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 &quot;$file&quot;"/>
<Clean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
<DistClean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="Test/fast">
<Option output="<source_path>/Test.exe" prefix_auto="0" extension_auto="0"/>
<Option working_dir="<source_path>"/>
<Option object_output="./"/>
<Option type="1"/>
<Option compiler="msvc8"/>
<Compiler>
<Add directory="<source_path>/include"/>
</Compiler>
<MakeCommands>
<Build command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 Test/fast"/>
<CompileFile command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 &quot;$file&quot;"/>
<Clean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
<DistClean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="edit_cache">
<Option working_dir="<source_path>"/>
<Option type="4"/>
<MakeCommands>
<Build command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 edit_cache"/>
<CompileFile command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 &quot;$file&quot;"/>
<Clean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
<DistClean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="rebuild_cache">
<Option working_dir="<source_path>"/>
<Option type="4"/>
<MakeCommands>
<Build command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 rebuild_cache"/>
<CompileFile command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 &quot;$file&quot;"/>
<Clean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
<DistClean command="nmake /NOLOGO /f <source_path>\Makefile VERBOSE=1 clean"/>
</MakeCommands>
</Target>
</Build>
<Unit filename="<source_path>/main.cpp">
<Option target="Test"/>
</Unit>
<Unit filename="<source_path>/CMakeLists.txt">
<Option virtualFolder="CMake Files\"/>
</Unit>
</Project>
</CodeBlocks_project_file>
@@ -0,0 +1,10 @@
#ifndef FOO_H
#define FOO_H
#include "FooBar.h"
class Bar : public FooBar
{
};
#endif // FOO_H
@@ -0,0 +1,10 @@
#ifndef BAR_H
#define BAR_H
#include "FooBar.h"
class Foo : public FooBar
{
};
#endif // FOO_BAR_H
@@ -0,0 +1,8 @@
#ifndef FOO_BAR_H
#define FOO_BAR_H
class FooBar
{
};
#endif // FOO_BAR_H
@@ -0,0 +1,9 @@
#include "Foo.h"
#include "Bar.h"
void test()
{
Foo foo;
Bar bar;
}