Skip to content

Commit

Permalink
feat: Move tmp preprocess files to <my_project>/.terra/cxx_parser/pre…
Browse files Browse the repository at this point in the history
…Process@<check_sum>
  • Loading branch information
littleGnAl committed Nov 15, 2023
1 parent 55f7c6d commit ec1a442
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cxx-parser/__tests__/unit_test/cxx_parser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('cxx_parser', () => {
[]
);

let expectedBashScript = `bash ${cppastBackendBuildBashPath} \"${cppastBackendBuildDir}\" "--visit-headers=${file1Path},${file2Path} --include-header-dirs= --defines-macros="" --custom-headers= --output-dir=${jsonFilePath} --pre-process-dir=${preProcessParseFilesDir} --dump-json"`;
let expectedBashScript = `bash ${cppastBackendBuildBashPath} \"${cppastBackendBuildDir}\" "--visit-headers=${file1Path},${file2Path} --include-header-dirs= --defines-macros="" --output-dir=${jsonFilePath} --pre-process-dir=${preProcessParseFilesDir} --dump-json"`;
expect(execSync).toHaveBeenCalledWith(expectedBashScript, {
encoding: 'utf8',
stdio: 'inherit',
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('cxx_parser', () => {
[]
);

let expectedBashScript = `bash ${cppastBackendBuildBashPath} \"${cppastBackendBuildDir}\" "--visit-headers=${file1Path},${file2Path} --include-header-dirs= --defines-macros="" --custom-headers= --output-dir=${jsonFilePath} --pre-process-dir=${preProcessParseFilesDir} --dump-json"`;
let expectedBashScript = `bash ${cppastBackendBuildBashPath} \"${cppastBackendBuildDir}\" "--visit-headers=${file1Path},${file2Path} --include-header-dirs= --defines-macros="" --output-dir=${jsonFilePath} --pre-process-dir=${preProcessParseFilesDir} --dump-json"`;
expect(execSync).toHaveBeenCalledWith(expectedBashScript, {
encoding: 'utf8',
stdio: 'inherit',
Expand Down

0 comments on commit ec1a442

Please sign in to comment.