Skip to content

Commit

Permalink
Fixes for the PortModules testsuite.
Browse files Browse the repository at this point in the history
  • Loading branch information
feldergast committed Jan 30, 2025
1 parent 25fd466 commit 87bccfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/testsuite_default_PortModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,14 @@ def port_module_test_template(self, testtype: str, bind_on_send: bool, use_subco
suffix = "{1}_{2}".format(outdir,testtype,bind_at)
subcomp_str = ""

outfile = "{0}/test_Serialization_{1}.out".format(outdir,suffix)

options = "--model-options=\"--{0} --{1}{2}\"".format(testtype,bind_at,subcomp_str)

if checkpoint:
options += " --checkpoint-sim-period=1.2us --checkpoint-prefix=ckpt_PortModule_{0}".format(suffix)
outfile = "{0}/test_PortModule_{1}_ckpt.out".format(outdir,suffix)
else:
outfile = "{0}/test_PortModule_{1}.out".format(outdir,suffix)


self.run_sst(sdlfile, outfile, other_args=options)

Expand All @@ -211,7 +213,7 @@ def port_module_test_template(self, testtype: str, bind_on_send: bool, use_subco
# Need to rerun from the checkpoint, then compare this output against the reffile
options = "--load-checkpoint"
sdlfile = "{0}/ckpt_PortModule_{1}/ckpt_PortModule_{1}_0_1200000/ckpt_PortModule_{1}_0_1200000.sstcpt".format(outdir,suffix)
outfile = "{0}/test_Serialization_checkpoint_{1}.out".format(outdir,suffix)
outfile = "{0}/test_PortModule_{1}_restart.out".format(outdir,suffix)

self.run_sst(sdlfile, outfile, other_args=options)

Expand Down

0 comments on commit 87bccfb

Please sign in to comment.