diff options
Diffstat (limited to 'tests/cppmodelmanager/testdata')
12 files changed, 54 insertions, 0 deletions
diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Frameworks b/tests/cppmodelmanager/testdata/frameworks/My.framework/Frameworks new file mode 120000 index 0000000000..dc3d02e21f --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Frameworks @@ -0,0 +1 @@ +Versions/A/Frameworks
\ No newline at end of file diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Headers b/tests/cppmodelmanager/testdata/frameworks/My.framework/Headers new file mode 120000 index 0000000000..d5ab97c5c7 --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Headers @@ -0,0 +1 @@ +Versions/A/Headers
\ No newline at end of file diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Headers b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Headers new file mode 120000 index 0000000000..a177d2a6b9 --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Headers @@ -0,0 +1 @@ +Versions/Current/Headers
\ No newline at end of file diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/IncorrectVersion.h b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/IncorrectVersion.h new file mode 100644 index 0000000000..8034d179c6 --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/IncorrectVersion.h @@ -0,0 +1,4 @@ +#ifndef IncorrectVersion_h +#define IncorrectVersion_h + +#endif // IncorrectVersion_h diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/Nested.h b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/Nested.h new file mode 100644 index 0000000000..fc0234ab64 --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/A/Headers/Nested.h @@ -0,0 +1,6 @@ +#ifndef Nested_h +#define Nested_h + +#include "IncorrectVersion.h" + +#endif // Nested_h diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/CorrectVersion.h b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/CorrectVersion.h new file mode 100644 index 0000000000..c4df20a40a --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/CorrectVersion.h @@ -0,0 +1,4 @@ +#ifndef CorrectVersion_h +#define CorrectVersion_h + +#endif // CorrectVersion_h diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/Nested.h b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/Nested.h new file mode 100644 index 0000000000..79067d54e1 --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/B/Headers/Nested.h @@ -0,0 +1,6 @@ +#ifndef Nested_h +#define Nested_h + +#include "CorrectVersion.h" + +#endif // Nested_h diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/Current b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/Current new file mode 120000 index 0000000000..7371f47a6f --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Frameworks/Nested.framework/Versions/Current @@ -0,0 +1 @@ +B
\ No newline at end of file diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Headers/MyHeader.h b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Headers/MyHeader.h new file mode 100644 index 0000000000..8ca3e6e88c --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/A/Headers/MyHeader.h @@ -0,0 +1,6 @@ +#ifndef MyHeader_h +#define MyHeader_h + +#include <Nested/Nested.h> + +#endif // MyHeader_h diff --git a/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/Current b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/Current new file mode 120000 index 0000000000..8c7e5a667f --- /dev/null +++ b/tests/cppmodelmanager/testdata/frameworks/My.framework/Versions/Current @@ -0,0 +1 @@ +A
\ No newline at end of file diff --git a/tests/cppmodelmanager/testdata/include/header.h b/tests/cppmodelmanager/testdata/include/header.h new file mode 100644 index 0000000000..689ec03871 --- /dev/null +++ b/tests/cppmodelmanager/testdata/include/header.h @@ -0,0 +1,4 @@ +#ifndef HEADER_H +#define HEADER_H + +#endif // HEADER_H diff --git a/tests/cppmodelmanager/testdata/sources/test_modelmanager_framework_headers.cpp b/tests/cppmodelmanager/testdata/sources/test_modelmanager_framework_headers.cpp new file mode 100644 index 0000000000..27a6b5e518 --- /dev/null +++ b/tests/cppmodelmanager/testdata/sources/test_modelmanager_framework_headers.cpp @@ -0,0 +1,19 @@ +#include <My/MyHeader.h> + +#ifndef MyHeader_h +bool failure_MyHeader_not_included; +#endif + +#ifndef Nested_h +bool failure_Nested_header_not_included; +#endif + +#ifdef IncorrectVersion_h +bool failure_Incorrect_version_of_nested_header_included; +#endif + +#ifdef CorrectVersion_h +bool success_is_the_only_option; +#endif + + |