@@ -12,115 +12,115 @@ int main(int argc, char** argv)
1212
1313 ssTEST (" Profile Should Parse Valid YAML" )
1414 {
15+ const char * yamlStr = R"(
16+ Name: "g++"
17+ NameAliases: ["mingw"]
18+ FileExtensions: [.cpp, .cc, .cxx]
19+ Languages: ["c++"]
20+ Setup:
21+ Default: ["setup command 1", "setup command 2"]
22+ Cleanup:
23+ Default: []
24+ FilesTypes:
25+ ObjectLinkFile:
26+ Prefix:
27+ Default: ""
28+ Extension:
29+ Windows: ".obj"
30+ Unix: ".o"
31+ SharedLinkFile:
32+ Prefix:
33+ Windows: ""
34+ Linux: "lib"
35+ MacOS: ""
36+ Extension:
37+ Windows: ".lib"
38+ Linux: ".so"
39+ MacOS: ".dylib"
40+ SharedLibraryFile:
41+ Prefix:
42+ Windows: ""
43+ Linux: "lib"
44+ MacOS: ""
45+ Extension:
46+ Windows: ".dll"
47+ Linux: ".so"
48+ MacOS: ".dylib"
49+ StaticLinkFile:
50+ Prefix:
51+ Unix: "lib"
52+ Windows: ""
53+ Extension:
54+ Windows: ".lib"
55+ Unix: ".a"
56+ Compiler:
57+ PreRun:
58+ Default: ""
59+ CheckExistence:
60+ Default: "g++ -v"
61+ CompileTypes:
62+ Executable:
63+ Default:
64+ Flags: "-std=c++17 -Wall -g"
65+ Executable: "g++"
66+ RunParts:
67+ - Type: Once
68+ CommandPart: "{Executable} -c {CompileFlags}"
69+ - Type: Repeats
70+ CommandPart: " -I\"{IncludeDirectoryPath}\""
71+ - Type: Once
72+ CommandPart: " \"{InputFilePath}\" -o \"{OutputFilePath}\""
73+ Static:
74+ Default:
75+ Flags: "-std=c++17 -Wall -g"
76+ Executable: "g++"
77+ RunParts:
78+ - Type: Once
79+ CommandPart: "{Executable} -c {CompileFlags}"
80+ Shared:
81+ Default:
82+ Flags: "-std=c++17 -Wall -g -fpic"
83+ Executable: "g++"
84+ RunParts:
85+ - Type: Once
86+ CommandPart: "{Executable} -c {CompileFlags}"
87+ Linker:
88+ PreRun:
89+ Default: ""
90+ CheckExistence:
91+ Default: "g++ -v"
92+ LinkTypes:
93+ Executable:
94+ Unix:
95+ Flags: "-Wl,-rpath,\\$ORIGIN"
96+ Executable: "g++"
97+ RunParts:
98+ - Type: Once
99+ CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
100+ Windows:
101+ Flags: "-Wl,-rpath,\\$ORIGIN"
102+ Executable: "g++"
103+ RunParts:
104+ - Type: Once
105+ CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
106+ Static:
107+ Default:
108+ Flags: ""
109+ Executable: "g++"
110+ RunParts:
111+ - Type: Once
112+ CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
113+ Shared:
114+ Unix:
115+ Flags: "-shared -Wl,-rpath,\\$ORIGIN"
116+ Executable: "g++"
117+ RunParts:
118+ - Type: Once
119+ CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
120+ )" ;
121+
15122 ssTEST_OUTPUT_SETUP
16123 (
17- const char * yamlStr = R"(
18- Name: "g++"
19- NameAliases: ["mingw"]
20- FileExtensions: [.cpp, .cc, .cxx]
21- Languages: ["c++"]
22- Setup:
23- Default: ["setup command 1", "setup command 2"]
24- Cleanup:
25- Default: []
26- FilesTypes:
27- ObjectLinkFile:
28- Prefix:
29- Default: ""
30- Extension:
31- Windows: ".obj"
32- Unix: ".o"
33- SharedLinkFile:
34- Prefix:
35- Windows: ""
36- Linux: "lib"
37- MacOS: ""
38- Extension:
39- Windows: ".lib"
40- Linux: ".so"
41- MacOS: ".dylib"
42- SharedLibraryFile:
43- Prefix:
44- Windows: ""
45- Linux: "lib"
46- MacOS: ""
47- Extension:
48- Windows: ".dll"
49- Linux: ".so"
50- MacOS: ".dylib"
51- StaticLinkFile:
52- Prefix:
53- Unix: "lib"
54- Windows: ""
55- Extension:
56- Windows: ".lib"
57- Unix: ".a"
58- Compiler:
59- PreRun:
60- Default: ""
61- CheckExistence:
62- Default: "g++ -v"
63- CompileTypes:
64- Executable:
65- Default:
66- Flags: "-std=c++17 -Wall -g"
67- Executable: "g++"
68- RunParts:
69- - Type: Once
70- CommandPart: "{Executable} -c {CompileFlags}"
71- - Type: Repeats
72- CommandPart: " -I\"{IncludeDirectoryPath}\""
73- - Type: Once
74- CommandPart: " \"{InputFilePath}\" -o \"{OutputFilePath}\""
75- Static:
76- Default:
77- Flags: "-std=c++17 -Wall -g"
78- Executable: "g++"
79- RunParts:
80- - Type: Once
81- CommandPart: "{Executable} -c {CompileFlags}"
82- Shared:
83- Default:
84- Flags: "-std=c++17 -Wall -g -fpic"
85- Executable: "g++"
86- RunParts:
87- - Type: Once
88- CommandPart: "{Executable} -c {CompileFlags}"
89- Linker:
90- PreRun:
91- Default: ""
92- CheckExistence:
93- Default: "g++ -v"
94- LinkTypes:
95- Executable:
96- Unix:
97- Flags: "-Wl,-rpath,\\$ORIGIN"
98- Executable: "g++"
99- RunParts:
100- - Type: Once
101- CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
102- Windows:
103- Flags: "-Wl,-rpath,\\$ORIGIN"
104- Executable: "g++"
105- RunParts:
106- - Type: Once
107- CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
108- Static:
109- Default:
110- Flags: ""
111- Executable: "g++"
112- RunParts:
113- - Type: Once
114- CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
115- Shared:
116- Unix:
117- Flags: "-shared -Wl,-rpath,\\$ORIGIN"
118- Executable: "g++"
119- RunParts:
120- - Type: Once
121- CommandPart: "{Executable} {LinkFlags} -o \"{OutputFilePath}\""
122- )" ;
123-
124124 ryml::Tree tree = ryml::parse_in_arena (c4::to_csubstr (yamlStr));
125125 ryml::ConstNodeRef root = tree.rootref ();
126126
0 commit comments