Skip to content

Commit

Permalink
Merge branch 'updated-mppnccombine-tests' into remove.bats
Browse files Browse the repository at this point in the history
  • Loading branch information
underwoo committed Jan 3, 2025
2 parents 7f67437 + 2998e2d commit ff6a9e2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/mppnccombine/with-end-number
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ data:
}
EOF

ncgen -o decomp.nc.0002 << EOF || framework_failure_
ncgen -o decomp.nc.0001 << EOF || framework_failure_
netcdf compress {
dimensions:
grid_xt = 10 ;
Expand Down Expand Up @@ -114,7 +114,7 @@ data:
}
EOF

ncgen -o decomp.nc.0005 << EOF || framework_failure_
ncgen -o decomp.nc.0002 << EOF || framework_failure_
netcdf compress {
dimensions:
grid_xt = 10 ;
Expand Down Expand Up @@ -157,7 +157,7 @@ data:
}
EOF

ncgen -o decomp.nc.0006 << EOF || framework_failure_
ncgen -o decomp.nc.0003 << EOF || framework_failure_
netcdf compress {
dimensions:
grid_xt = 10 ;
Expand Down Expand Up @@ -200,9 +200,11 @@ data:
}
EOF

# run mppnccombine to generate decomp.nc, not
# listing other input files
mppnccombine -f -e 6 decomp.nc || skip_
# Run mppnccombine to generate output decomp.nc
# Start at input decomp.nc.0000 and only go to input decomp.nc.0002, thereby ignoring input decomp.nc.0003
mppnccombine -e 2 decomp.nc || fail=1

# Verify output decomp.nc was generated
ncdump decomp.nc || framework_failure_

Exit $fail

0 comments on commit ff6a9e2

Please sign in to comment.