"Test" cases to investigate bugzilla 1378 ========================================= At this time, the data and information are printed out to be verified manually. The code will needed to be revised to become actual tests when it is known that the library works correctly. With HDF API only ----------------- Case H-1: creat/write/closefile/append 1 1-dim - create 1 1-dim unlim SDSs - write 10 elements to it - read info and print out number of recs in the SDS and in the file - close the file and reopen for writing - read info and print out number of recs in the SDS and in the file - append 8 elements to it - read info and print out number of recs in the SDS and in the file - append again 5 elements - read info and print out number of recs in the SDS and in the file - read and print out data - close file Case H-2: create/write/append/closefile/append 1 1-dim - create 1 1-dim unlim SDSs - write 10 elements to it - read info and print out number of recs in the SDS and in the file - do not close the file - append 8 elements to it - read info and print out number of recs in the SDS and in the file - close the file and reopen for writing - append again 5 elements - read info and print out number of recs in the SDS and in the file - read and print out data - close file Case H-3: create/write/closefile/append 2 1-dim - create 2 1-dim unlim SDSs - write 4 elements to first SDS and 6 to second - read info and print out number of recs in each SDS and in the file - close the file and reopen for writing - read info and print out number of recs in each SDS and in the file - append 8 elements to first SDS and 5 to second - read info and print out number of recs in each SDS and in the file - read and print out data - close file Case H-4: create/write/append/closefile 3 1-dim - create 3 1-dim unlim SDSs - write 4, 6, 8 elements to the 3 SDSs, respectively - read info and print out number of recs in each SDS and in the file - read data and print out all three datasets - append 10 elements to each SDS - close the file and reopen for reading - read info and print out number of recs in each SDS and in the file - read data and print out all three datasets - close file Case H-5: create/write/closefile 3 1-dim - create 3 1-dim unlim SDSs - write 4, 6, 8 elements to the 3 SDSs, respectively - read info and print out number of recs in each SDS and in the file - read data and print out all three datasets - close the file and reopen for reading - read info and print out number of recs in each SDS and in the file - read data and print out all three datasets - close file Add nc API to the above ----------------------- After examining the H cases above, add the following to each H case to compare the behavior of the two APIs - open the file with nc API - read info and print out number of recs in each variable and in the file - read and print out data - close file With nc API only ---------------- Case nc-1: - create an unlim dimension - create a variable that uses the unlim dimension - write 10 elements to it - read info and print out number of recs in the variable and in the file - close the file - open the file - read info and print out number of recs in the variable and in the file - read and print out data - close file Case nc-2: - create 1 1-dim unlim SDSs with HDF API - write 10 elements to it - read info and print out number of recs in the variable and in the file - close the file - open the file for writing with HDF API - append 8 elements to it - read info and print out number of recs in the variable and in the file - close the file - open the file with nc API - read info and print out number of recs in the variable and in the file - read and print out data - close file Case nc-3: - create 1 1-dim unlim SDSs with HDF API - write 10 elements to it - read info and print out number of recs in the variable and in the file - do not close the file - append 8 elements to it - read info and print out number of recs in the variable and in the file - close the file - open the file with nc API - read info and print out number of recs in the variable and in the file - read and print out data - close file Case nc-4: - create 2 1-dim unlim SDSs with HDF API - write 4 elements to first SDS and 6 to second - read info and print out number of recs in each variable and in the file - close the file and reopen for writing with HDF API - read info and print out number of recs in each variable and in the file - append 8 elements to first SDS and 5 to second - read info and print out number of recs in each variable and in the file - read and print out data - close file - reopen file for reading with nc API - read info and print out number of recs in each variable and in the file - read and print out data - close file Case nc-5: - create 3 1-dim unlim SDSs - write 4, 6, 8 elements to the 3 SDSs, respectively - read info and print out number of recs in each variable and in the file - read data and print out all three datasets - close the file and reopen for writing - read info and print out number of recs in each variable and in the file - read data and print out all three datasets - close file