-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Final stage of bats removal, all tests converted to use shell…
- Loading branch information
1 parent
a34023f
commit acf8b28
Showing
97 changed files
with
1,057 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
teardown () { | ||
# Echo the output. Will only be done on a test failure. | ||
echo "$output" | ||
} | ||
|
||
@test "1" { | ||
skip "Fails in 32bit/Mixed mode" | ||
run mpirun -n 2 ./test_axis_utils | ||
[ "$status" -eq 0 ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
cp $srcdir/test_fms/axis_utils/input_base.nml input.nml | ||
|
||
bats $srcdir/test_fms/axis_utils/test_axis_utils.bats |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
setup() { | ||
# Clear out any previous test files | ||
rm -f input.nml > /dev/null 2>&1 | ||
|
||
# Setup the run directory | ||
tnum=$( printf "%2.2d" ${BATS_TEST_NUMBER} ) | ||
sed "s/<test_num>/${tnum}/" $srcdir/test_fms/data_override/input.nml_base > input.nml | ||
} | ||
|
||
teardown () { | ||
# Echo the output. Will only be done on a test failure. | ||
echo "$output" | ||
} | ||
|
||
@test "Test 1: Cubic-Grid" { | ||
skip "The input file is missing" | ||
cp -r $srcdir/test_fms/data_override/INPUT $builddir/test_fms/data_override/INPUT | ||
run mpirun -n 2 ./test_data_override | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "Test 2: Latlon-Grid" { | ||
skip "The input file is missing" | ||
run mpirun -n 2 ./test_data_override | ||
[ "$status" -eq 0 ] | ||
chmod 755 $builddir/test_fms/data_override/INPUT | ||
rm -rf $builddir/test_fms/data_override/INPUT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
cp $srcdir/test_fms/data_override/data_table data_table | ||
cp $srcdir/test_fms/data_override/diag_table diag_table | ||
|
||
bats $srcdir/test_fms/data_override/test_data_override.bats |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.