@@ -39,65 +39,65 @@ test_number = <test_num>
3939_EOF
4040
4141touch test_numb_base_ascii.nml
42- echo " &test_read_ascii_file_nml " > test_numb_base_ascii.nml
42+ echo " &test_mpp_read_ascii_file_nml " > test_numb_base_ascii.nml
4343echo " test_numb = 0" >> test_numb_base_ascii.nml
4444echo " /" >> test_numb_base_ascii.nml
4545
4646# Test 1
4747# Normal Usage
4848sed " s/test_numb = [0-9]/test_numb = 1/" test_numb_base_ascii.nml> test_numb_ascii.nml
4949test_expect_success " normal ascii usage" '
50- mpirun -n 1 ../test_read_ascii_file
50+ mpirun -n 1 ../test_mpp_read_ascii_file
5151'
5252
5353# Test 2
5454# get_ascii_file_num_lines not called before, fatal error
5555sed " s/test_numb = [0-9]/test_numb = 2/" test_numb_base_ascii.nml> test_numb_ascii.nml
5656test_expect_failure " failure caught if get_ascii_file_num_lines not called before" '
57- mpirun -n 1 ../test_read_ascii_file
57+ mpirun -n 1 ../test_mpp_read_ascii_file
5858'
5959
6060# Test 3
6161# File does not exist, fatal error
6262sed " s/test_numb = [0-9]/test_numb = 3/" test_numb_base_ascii.nml> test_numb_ascii.nml
6363test_expect_failure " failure caught if file does not exist" '
64- mpirun -n 1 ../test_read_ascii_file
64+ mpirun -n 1 ../test_mpp_read_ascii_file
6565'
6666
6767# Test 4
6868# Number of line in file is greater than size(Content(:)), fatal error
6969sed " s/test_numb = [0-9]/test_numb = 4/" test_numb_base_ascii.nml> test_numb_ascii.nml
7070echo " " > empty.nml
7171test_expect_failure " failure caught from too few input lines" '
72- mpirun -n 1 ../test_read_ascii_file
72+ mpirun -n 1 ../test_mpp_read_ascii_file
7373'
7474# Test 5
7575# Length of output string is too small, fatal error
7676sed " s/test_numb = [0-9]/test_numb = 5/" test_numb_base_ascii.nml> test_numb_ascii.nml
7777test_expect_failure " failure caught from too small output string" '
78- mpirun -n 1 ../test_read_ascii_file
78+ mpirun -n 1 ../test_mpp_read_ascii_file
7979'
8080
8181# Test 6
8282# Number of lines in file does not equal to size(Content(:)), fatal error
8383sed " s/test_numb = [0-9]/test_numb = 6/" test_numb_base_ascii.nml> test_numb_ascii.nml
8484test_expect_failure " failure caught from mismatching numbers of lines" '
85- mpirun -n 1 ../test_read_ascii_file
85+ mpirun -n 1 ../test_mpp_read_ascii_file
8686'
8787
8888# Test 7
8989# Normal usage, with optional PELIST argument passed in
9090sed " s/test_numb = [0-9]/test_numb = 7/" test_numb_base_ascii.nml> test_numb_ascii.nml
9191test_expect_success " normal ascii usage with PELIST" '
92- mpirun -n 1 ../test_read_ascii_file
92+ mpirun -n 1 ../test_mpp_read_ascii_file
9393'
9494
9595# Test 8
9696# Normal usage, with an empty file passed in
9797sed " s/test_numb = [0-9]/test_numb = 8/" test_numb_base_ascii.nml> test_numb_ascii.nml
9898touch empty.nml
9999test_expect_success " normal ascii usage with empty file" '
100- mpirun -n 1 ../test_read_ascii_file
100+ mpirun -n 1 ../test_mpp_read_ascii_file
101101'
102102
103103test_done
0 commit comments