Changeset 9684 for trunk/ippdb/tests/insert.c
- Timestamp:
- Oct 20, 2006, 2:38:16 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insert.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insert.c
r9423 r9684 13 13 } 14 14 15 if (!weatherInsert(dbh, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32, 32.32)) {16 exit(EXIT_FAILURE);17 }18 19 psDBCleanup(dbh);20 }21 22 {23 psDB *dbh;24 25 dbh = psDBInit("localhost", "test", NULL, "test");26 if (!dbh) {27 exit(EXIT_FAILURE);28 }29 30 if (!skyp_transparencyInsert(dbh, "a string", 64.64, -32, 64.64, 64.64, 32.32, 64.64)) {31 exit(EXIT_FAILURE);32 }33 34 psDBCleanup(dbh);35 }36 37 {38 psDB *dbh;39 40 dbh = psDBInit("localhost", "test", NULL, "test");41 if (!dbh) {42 exit(EXIT_FAILURE);43 }44 45 if (!skyp_absorptionInsert(dbh, "a string", 32.32, 32.32, 32.32, -32, 64.64, 64.64, 32.32, 64.64)) {46 exit(EXIT_FAILURE);47 }48 49 psDBCleanup(dbh);50 }51 52 {53 psDB *dbh;54 55 dbh = psDBInit("localhost", "test", NULL, "test");56 if (!dbh) {57 exit(EXIT_FAILURE);58 }59 60 if (!skyp_emissionInsert(dbh, "a string", 32.32, 32.32, 32.32, 32.32, 32.32)) {61 exit(EXIT_FAILURE);62 }63 64 psDBCleanup(dbh);65 }66 67 {68 psDB *dbh;69 70 dbh = psDBInit("localhost", "test", NULL, "test");71 if (!dbh) {72 exit(EXIT_FAILURE);73 }74 75 if (!dimmInsert(dbh, 32.32, 32.32, 32.32, 64.64, 64.64, 32.32, "a string")) {76 exit(EXIT_FAILURE);77 }78 79 psDBCleanup(dbh);80 }81 82 {83 psDB *dbh;84 85 dbh = psDBInit("localhost", "test", NULL, "test");86 if (!dbh) {87 exit(EXIT_FAILURE);88 }89 90 if (!skyp_irInsert(dbh, 64.64, 64.64, 64.64, 64.64, 32.32, 32.32)) {91 exit(EXIT_FAILURE);92 }93 94 psDBCleanup(dbh);95 }96 97 {98 psDB *dbh;99 100 dbh = psDBInit("localhost", "test", NULL, "test");101 if (!dbh) {102 exit(EXIT_FAILURE);103 }104 105 if (!domeInsert(dbh, 32.32, true, true, true)) {106 exit(EXIT_FAILURE);107 }108 109 psDBCleanup(dbh);110 }111 112 {113 psDB *dbh;114 115 dbh = psDBInit("localhost", "test", NULL, "test");116 if (!dbh) {117 exit(EXIT_FAILURE);118 }119 120 if (!telescopeInsert(dbh, "a string", 32.32, 32.32, 64.64, 64.64)) {121 exit(EXIT_FAILURE);122 }123 124 psDBCleanup(dbh);125 }126 127 {128 psDB *dbh;129 130 dbh = psDBInit("localhost", "test", NULL, "test");131 if (!dbh) {132 exit(EXIT_FAILURE);133 }134 135 15 if (!summitExpInsert(dbh, "a string", "a string", "a string", "a string", "a string")) { 136 16 exit(EXIT_FAILURE); … … 208 88 } 209 89 210 if (!rawDetrendExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" )) {211 exit(EXIT_FAILURE); 212 } 213 214 psDBCleanup(dbh); 215 } 216 217 { 218 psDB *dbh; 219 220 dbh = psDBInit("localhost", "test", NULL, "test"); 221 if (!dbh) { 222 exit(EXIT_FAILURE); 223 } 224 225 if (!rawScienceExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" )) {226 exit(EXIT_FAILURE); 227 } 228 229 psDBCleanup(dbh); 230 } 231 232 { 233 psDB *dbh; 234 235 dbh = psDBInit("localhost", "test", NULL, "test"); 236 if (!dbh) { 237 exit(EXIT_FAILURE); 238 } 239 240 if (!rawImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string" )) {90 if (!rawDetrendExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z")) { 91 exit(EXIT_FAILURE); 92 } 93 94 psDBCleanup(dbh); 95 } 96 97 { 98 psDB *dbh; 99 100 dbh = psDBInit("localhost", "test", NULL, "test"); 101 if (!dbh) { 102 exit(EXIT_FAILURE); 103 } 104 105 if (!rawScienceExpInsert(dbh, "a string", "a string", "a string", "a string", -32, "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z")) { 106 exit(EXIT_FAILURE); 107 } 108 109 psDBCleanup(dbh); 110 } 111 112 { 113 psDB *dbh; 114 115 dbh = psDBInit("localhost", "test", NULL, "test"); 116 if (!dbh) { 117 exit(EXIT_FAILURE); 118 } 119 120 if (!rawImfileInsert(dbh, "a string", "a string", "a string", "a string", "a string", "a string", 32.32, 64.64, 64.64, 32.32, 64.64, 64.64, 64.64, 64.64, 64.64, 32.32, 64.64, "a string", "0001-01-01T00:00:00Z")) { 241 121 exit(EXIT_FAILURE); 242 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
