Skip to content

WIP : Compile updates

Oliver Kirsebom requested to merge compile_updates into master

Hi @au543682 , @klytje

I have made a couple of minor changes to the CMakeLists.txt file:

  1. Replaced C+11 with C++17
  2. Added symlinks for the simXtest executable

Running the unit tests on my machine (root 6.24, latest version of AUSAlib), I get 55 tests failing:

oliskir@svalbard:~/src/ausa/simx/build$ ./simXtest 
[2022-01-05 19:41:57.643] [GraphDistribution] [notice] Graph test/_res/dwba_output.dat is givin is degrees. Converting to radians.
[2022-01-05 19:41:57.657] [GraphDistribution] [notice] Graph test/_res/dwba_output.dat is givin is degrees. Converting to radians.
[2022-01-05 19:41:57.657] [GraphDistribution] [warning] User low limit for theta 0 smaller than minimum theta 0.0174533 from test/_res/dwba_output.dat
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:75:1: error: Failure in Sanity: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:84:1: error: Failure in TestSimX_SB_IsEqualToAUSAlibVersion: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:106:1: error: Failure in MiddleOfSBPixel11IsReportedAsPixel11: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:122:1: error: Failure in ItIsPossibleToHitPixbel11From000: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:134:1: error: Failure in SBRingHalfShouldBeRadius: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:148:1: error: Failure in STRingHalfShouldBeRadius: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:162:1: error: Failure in CenterOfSBPixel2_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:176:1: error: Failure in CenterOfSBPixel6_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:190:1: error: Failure in CenterOfSBPixel7_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:204:1: error: Failure in CenterOfSBPixel8_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:219:1: error: Failure in CenterOfSBPixel32_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/detection/S3SetupTest.cpp:233:1: error: Failure in EdgeOfPixel32_23_CanBeHit: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:35:1: error: Failure in ELOSS_type_gives_IonizingPropagator: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:50:1: error: Failure in ELOSS_string_gives_IonizingPropagator: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:65:1: error: Failure in NOLOSS_tag_gives_NonIonizingPropagator: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:81:1: error: Failure in TargetPropagatorDefaultsToEloss: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:97:1: error: Failure in DetectionPropagtionIsAlsoEnabled: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:113:1: error: Failure in GammaIsAlwaysNonIonizing: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:129:1: error: Failure in ConfigCanContainTargetFile: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:135:1: error: Failure in BeamPropagatorCanBeSetIndependently: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:150:1: error: Failure in GAUSSSTRAG_string_gives_GaussianStragglingPropagator: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:166:1: error: Failure in MCSTRAG_string_gives_MCStragglingPropagator: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:182:1: error: Failure in Can_set_MCSTRAG_with_default_multiplier: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ConfigParserTest.cpp:199:1: error: Failure in Can_set_MCSTRAG_with_multiplier: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:41:1: error: Failure in Sanity: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:45:1: error: Failure in DetectionSystemHas6Detectors: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:50:1: error: Failure in FirstDetectorIsS3: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:56:1: error: Failure in ThirdDetectorIsW1: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:62:1: error: Failure in FifthDetectorIsPad: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:68:1: error: Failure in NumberOfStripsIsPropagatedToW1: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:77:1: error: Failure in ParserAcceptsSimpleOneDetectorTrigger: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:84:1: error: Failure in S3CanHaveSharing: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:102:1: error: Failure in W1CanHaveSharing: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:120:1: error: Failure in __Global__SharingIsPropagated: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:138:1: error: Failure in LocalSettingOverrideGlobals: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:159:1: error: Failure in LocalAndGlobalSettingsAreMerged: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:179:1: error: Failure in SUHaveAdcThreshold100keV: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:203:1: error: Failure in DetectionSystemHave4Scalers: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:207:1: error: Failure in FirstScalerNamed: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:211:1: error: Failure in SuCanHaveResolutionOf100keV: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:229:1: error: Failure in W1CanDetectOnlyIonizingEnergy: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:247:1: error: Failure in S3CanDetectOnlyIonizingEnergy: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserTest.cpp:265:1: error: Failure in IonizingCanBeSetGlobally: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserYY1Test.cpp:41:1: error: Failure in Sanity: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/DetectionSystemParserYY1Test.cpp:45:1: error: Failure in DetectionSystemHas6Detectors: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ElossFactoryTest.cpp:33:1: error: Failure in TabulationTypeCanBeSRIM: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ElossFactoryTest.cpp:48:1: error: Failure in TabulationTypeCanBeGEANT: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ElossFactoryTest.cpp:63:1: error: Failure in TabulationTypeIsUnsupported: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:25:1: error: Failure in Sanity: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:29:1: error: Failure in SUHaveMapping: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:33:1: error: Failure in SUHaveMultiplicityBranch_SU_S: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:39:1: error: Failure in SDHaveMultiplicityBranch_SD_S: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:45:1: error: Failure in Pad2HaveEnergyBranch_PAD2E: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/JsonOutputParserTest.cpp:51:1: error: Failure in SUFrontTDCIsDead: Unhandled exception: test crashed
/home/oliskir/src/ausa/simx/test/parser/ReactionParserTest.cpp:211:1: error: Failure in ParseMultiple: Unhandled exception: test crashed
[2022-01-05 19:41:58.119] [GraphDistribution] [notice] Graph test/_res/dwba_output.dat is givin is degrees. Converting to radians.
FAILURE: 55 out of 408 tests failed (55 failures).
Test time: 1.01 seconds.

Starting from the top, the errors in S3SetupTest.cpp seem to be triggered by the call to AUSA::JSON::readSetupFromJSON("test/_res/hit_setup/setup.json"). So I'm guessing perhaps these tests are all failing due to recent changes in AUSAlib. Your thoughts? (I can do a more thorough investigation, but thought I'd check with you first.)

Are you planning on re-instating the automated AUSAlib CI pipeline? Would obviously be helpful for catching errors like these.

Cheers, Oliver

Edited by Oliver Kirsebom

Merge request reports