@@ -347,6 +347,7 @@ pipeline
347347 }
348348 post { failure { script { FAILED_STAGE = env. STAGE_NAME } } }
349349 }
350+ // TODO: Move this to shell or cpp
350351 stage(' Linux Integration Test' )
351352 {
352353 agent { label ' linux' }
@@ -359,10 +360,10 @@ pipeline
359360 bash " ls -lah ./Build/Src/Tests"
360361 bash " cd ./Build && ./runcpp2 -l " +
361362 " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
362- " --log-level info ../Tests/test .cpp"
363+ " --log-level info ../Tests/Test .cpp"
363364 bash " cd ./Build && ./runcpp2 -l -b -o . " +
364365 " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
365- " --log-level info ../Tests/test .cpp"
366+ " --log-level info ../Tests/Test .cpp"
366367 bash " ls -lah ./Build"
367368
368369
@@ -373,7 +374,7 @@ pipeline
373374 bash " ls -lah ./Build/Src/Tests"
374375 bash " cd ./Build && ./runcpp2 -l -b -o . " +
375376 " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
376- " --log-level info ../Tests/test_static .cpp"
377+ " --log-level info ../Tests/TestStatic .cpp"
377378 bash " ls -lah ./Build"
378379
379380
@@ -384,8 +385,40 @@ pipeline
384385 bash " ls -lah ./Build/Src/Tests"
385386 bash " cd ./Build && ./runcpp2 -l " +
386387 " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
387- " --log-level info ../Tests/testLocalDependency .cpp"
388+ " --log-level info ../Tests/TestLocalDependency .cpp"
388389
390+ cleanWs()
391+ bash " ls -lah"
392+ unstash ' linux_build'
393+ bash " ls -lah"
394+ bash " ls -lah ./Build/Src/Tests"
395+ bash " cd ./Build && ./runcpp2 -l " +
396+ " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
397+ " --log-level info ../Tests/TestSeparateYaml.cpp"
398+
399+ cleanWs()
400+ bash " ls -lah"
401+ unstash ' linux_build'
402+ bash " ls -lah"
403+ bash " ls -lah ./Build/Src/Tests"
404+ script
405+ {
406+ def retResult =
407+ sh( script : " cd ./Build && ./runcpp2 -l " +
408+ " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
409+ " --log-level info ../Tests/TestMissingSource.yaml" ,
410+ returnStatus : true )
411+ echo(" Return result: ${ retResult} " )
412+ }
413+
414+ cleanWs()
415+ bash " ls -lah"
416+ unstash ' linux_build'
417+ bash " ls -lah"
418+ bash " ls -lah ./Build/Src/Tests"
419+ bash " cd ./Build && ./runcpp2 -l " +
420+ " -c ../DefaultYAMLs/DefaultUserConfig.yaml " +
421+ " --log-level info ../Tests/YamlOnlyTest.yaml"
389422
390423 cleanWs()
391424 bash " ls -lah"
@@ -415,6 +448,7 @@ pipeline
415448 }
416449 post { failure { script { FAILED_STAGE = env. STAGE_NAME } } }
417450 }
451+ // TODO: Move this to shell or cpp
418452 stage(' Windows Integration Test' )
419453 {
420454 agent { label ' windows' }
@@ -426,10 +460,10 @@ pipeline
426460 bat ' dir'
427461 bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l " +
428462 " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
429- " --log-level info ..\\ ..\\ Tests\\ test .cpp"
463+ " --log-level info ..\\ ..\\ Tests\\ Test .cpp"
430464 bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l -b -o . " +
431465 " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
432- " --log-level info ..\\ ..\\ Tests\\ test .cpp"
466+ " --log-level info ..\\ ..\\ Tests\\ Test .cpp"
433467 bat " dir .\\ Build\\ Debug"
434468
435469
@@ -439,7 +473,7 @@ pipeline
439473 bat ' dir'
440474 bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l -b -o . " +
441475 " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
442- " --log-level info ..\\ ..\\ Tests\\ test_static .cpp"
476+ " --log-level info ..\\ ..\\ Tests\\ TestStatic .cpp"
443477 bat " dir .\\ Build\\ Debug"
444478
445479
@@ -449,8 +483,37 @@ pipeline
449483 bat ' dir'
450484 bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l " +
451485 " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
452- " --log-level info ..\\ ..\\ Tests\\ testLocalDependency .cpp"
486+ " --log-level info ..\\ ..\\ Tests\\ TestLocalDependency .cpp"
453487
488+ cleanWs()
489+ bat ' dir'
490+ unstash ' windows_build'
491+ bat ' dir'
492+ bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l " +
493+ " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
494+ " --log-level info ..\\ ..\\ Tests\\ TestSeparateYaml.cpp"
495+
496+ cleanWs()
497+ bat ' dir'
498+ unstash ' windows_build'
499+ bat ' dir'
500+ script
501+ {
502+ def retResult =
503+ bat(script : " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l " +
504+ " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
505+ " --log-level info ..\\ ..\\ Tests\\ TestMissingSource.yaml" ,
506+ returnStatus : true )
507+ echo(" Return result: ${ retResult} " )
508+ }
509+
510+ cleanWs()
511+ bat ' dir'
512+ unstash ' windows_build'
513+ bat ' dir'
514+ bat " cd .\\ Build\\ Debug && .\\ runcpp2.exe -l " +
515+ " -c ..\\ ..\\ DefaultYAMLs\\ DefaultUserConfig.yaml " +
516+ " --log-level info ..\\ ..\\ Tests\\ YamlOnlyTest.yaml"
454517
455518 cleanWs()
456519 bat ' dir'
0 commit comments