8e2651828a
ICU Pull Request #1159. - Set intltest's Current Working Directory correctly to enable finding resources. - Adds c_cpp_properties.json, primarily for the includePath settings. - Load average takes a while to respond, specify -j24 to always limit parallel jobs to a maximum of 24. - make's "-l" parameter is system load average, not CPU percentage. A load average of 90 makes my laptop unusable, changing to -l20. - Make running all tests the unit-testing default. - Document the adjustments that can be made in the README. - Skip these json files when checking for copyright notices. Pure json does not permit comments, so c_cpp_properties.json cannot have comments. - defines += U_DISABLE_RENAMING=1 to simplify reference following. Rebased from 00a5d6dd5c.
103 lines
4.3 KiB
JSON
103 lines
4.3 KiB
JSON
// © 2020 and later: Unicode, Inc. and others.
|
|
// License & terms of use: http://www.unicode.org/copyright.html#License
|
|
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "intltest Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"targetArchitecture": "x64",
|
|
"program": "${workspaceFolder}/test/intltest/intltest",
|
|
"environment": [
|
|
{
|
|
"name": "LD_LIBRARY_PATH", // Use "DYLD_LIBRARY_PATH" for mac osx.
|
|
"value": "${workspaceRoot}/lib:${workspaceRoot}/stubdata:${workspaceRoot}/tools/ctestfw"
|
|
},
|
|
{
|
|
"name": "ICU_DATA",
|
|
"value": "${workspaceRoot}/data/out"
|
|
}
|
|
],
|
|
"args": [ // Here you add which test cases you want to run, leaving it empty will run all the test cases.
|
|
// Examples:
|
|
// "rbbi/RBBITest",
|
|
// "format/NumberFormatTest"
|
|
],
|
|
"stopAtEntry": false, // If you want to add a break point in the beginning of the program (i.e. test cases).
|
|
"cwd": "${workspaceFolder}/test/intltest",
|
|
"externalConsole": false, //set to true to see output in an external terminal instead
|
|
"MIMode": "gdb", // Use "lldb" for mac osx.
|
|
"logging": {
|
|
"trace": true,
|
|
"traceResponse": true,
|
|
"engineLogging": true,
|
|
"programOutput": true
|
|
},
|
|
"preLaunchTask": "buildTest"
|
|
},
|
|
{
|
|
"name": "cintltst Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"targetArchitecture": "x64",
|
|
"program": "${workspaceFolder}/test/cintltst/cintltst",
|
|
"environment": [
|
|
{
|
|
"name": "LD_LIBRARY_PATH", // Use "DYLD_LIBRARY_PATH" for mac osx.
|
|
"value": "${workspaceRoot}/lib:${workspaceRoot}/stubdata:${workspaceRoot}/tools/ctestfw"
|
|
},
|
|
{
|
|
"name": "ICU_DATA",
|
|
"value": "${workspaceRoot}/data/out"
|
|
}
|
|
],
|
|
"args": [ // Here you add which test cases you want to run, leaving it empty will run all the test cases.
|
|
// "/tsutil/cstrcase" // Just for example.
|
|
],
|
|
"stopAtEntry": false, // If you want to add a break point in the beginning of the program (i.e. test cases).
|
|
"cwd": "${workspaceFolder}",
|
|
"externalConsole": false, //set to true to see output in an external terminal instead
|
|
"MIMode": "gdb", // Use "lldb" for mac osx.
|
|
"logging": {
|
|
"trace": true,
|
|
"traceResponse": true,
|
|
"engineLogging": true,
|
|
"programOutput": true
|
|
},
|
|
"preLaunchTask": "buildTest"
|
|
},
|
|
{
|
|
"name": "iotest Launch",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"targetArchitecture": "x64",
|
|
"program": "${workspaceFolder}/test/iotest/iotest",
|
|
"environment": [
|
|
{
|
|
"name": "LD_LIBRARY_PATH", // Use "DYLD_LIBRARY_PATH" for mac osx.
|
|
"value": "${workspaceRoot}/lib:${workspaceRoot}/stubdata:${workspaceRoot}/tools/ctestfw"
|
|
},
|
|
{
|
|
"name": "ICU_DATA",
|
|
"value": "${workspaceRoot}/data/out"
|
|
}
|
|
],
|
|
"args": [ // Here you add which test cases you want to run, leaving it empty will run all the test cases.
|
|
// "/datadriv" // Just for example.
|
|
],
|
|
"stopAtEntry": false, // If you want to add a break point in the beginning of the program (i.e. test cases).
|
|
"cwd": "${workspaceFolder}",
|
|
"externalConsole": false, //set to true to see output in an external terminal instead
|
|
"MIMode": "gdb", // Use "lldb" for mac osx.
|
|
"logging": {
|
|
"trace": true,
|
|
"traceResponse": true,
|
|
"engineLogging": true,
|
|
"programOutput": true
|
|
},
|
|
"preLaunchTask": "buildTest"
|
|
}
|
|
]
|
|
}
|