Changeset 12026 for trunk/ippdb/tests/insert.c
- Timestamp:
- Feb 23, 2007, 4:28:07 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippdb/tests/insert.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippdb/tests/insert.c
r11988 r12026 178 178 } 179 179 180 if (! p1PendingExpInsert(dbh, "a string", -32, "a string")) {181 exit(EXIT_FAILURE); 182 } 183 184 psDBCleanup(dbh); 185 } 186 187 { 188 psDB *dbh; 189 190 dbh = psDBInit("localhost", "test", NULL, "test"); 191 if (!dbh) { 192 exit(EXIT_FAILURE); 193 } 194 195 if (! p2PendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", "a string")) {196 exit(EXIT_FAILURE); 197 } 198 199 psDBCleanup(dbh); 200 } 201 202 { 203 psDB *dbh; 204 205 dbh = psDBInit("localhost", "test", NULL, "test"); 206 if (!dbh) { 207 exit(EXIT_FAILURE); 208 } 209 210 if (! p2PendingImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "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 (! p2ProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "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 (! p2MaskInsert(dbh, "a string")) {241 exit(EXIT_FAILURE); 242 } 243 244 psDBCleanup(dbh); 245 } 246 247 { 248 psDB *dbh; 249 250 dbh = psDBInit("localhost", "test", NULL, "test"); 251 if (!dbh) { 252 exit(EXIT_FAILURE); 253 } 254 255 if (! p2ProcessedImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16)) {256 exit(EXIT_FAILURE); 257 } 258 259 psDBCleanup(dbh); 260 } 261 262 { 263 psDB *dbh; 264 265 dbh = psDBInit("localhost", "test", NULL, "test"); 266 if (!dbh) { 267 exit(EXIT_FAILURE); 268 } 269 270 if (! p3PendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string")) {271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (! p3ProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string")) {286 exit(EXIT_FAILURE); 287 } 288 289 psDBCleanup(dbh); 290 } 291 292 { 293 psDB *dbh; 294 295 dbh = psDBInit("localhost", "test", NULL, "test"); 296 if (!dbh) { 297 exit(EXIT_FAILURE); 298 } 299 300 if (! p3MaskInsert(dbh, "a string")) {180 if (!guidePendingExpInsert(dbh, "a string", -32, "a string")) { 181 exit(EXIT_FAILURE); 182 } 183 184 psDBCleanup(dbh); 185 } 186 187 { 188 psDB *dbh; 189 190 dbh = psDBInit("localhost", "test", NULL, "test"); 191 if (!dbh) { 192 exit(EXIT_FAILURE); 193 } 194 195 if (!chipPendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", "a string")) { 196 exit(EXIT_FAILURE); 197 } 198 199 psDBCleanup(dbh); 200 } 201 202 { 203 psDB *dbh; 204 205 dbh = psDBInit("localhost", "test", NULL, "test"); 206 if (!dbh) { 207 exit(EXIT_FAILURE); 208 } 209 210 if (!chipPendingImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "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 (!chipProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "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 (!chipMaskInsert(dbh, "a string")) { 241 exit(EXIT_FAILURE); 242 } 243 244 psDBCleanup(dbh); 245 } 246 247 { 248 psDB *dbh; 249 250 dbh = psDBInit("localhost", "test", NULL, "test"); 251 if (!dbh) { 252 exit(EXIT_FAILURE); 253 } 254 255 if (!chipProcessedImfileInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, "a string", "a string", -16)) { 256 exit(EXIT_FAILURE); 257 } 258 259 psDBCleanup(dbh); 260 } 261 262 { 263 psDB *dbh; 264 265 dbh = psDBInit("localhost", "test", NULL, "test"); 266 if (!dbh) { 267 exit(EXIT_FAILURE); 268 } 269 270 if (!camPendingExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string")) { 271 exit(EXIT_FAILURE); 272 } 273 274 psDBCleanup(dbh); 275 } 276 277 { 278 psDB *dbh; 279 280 dbh = psDBInit("localhost", "test", NULL, "test"); 281 if (!dbh) { 282 exit(EXIT_FAILURE); 283 } 284 285 if (!camProcessedExpInsert(dbh, "a string", -32, -32, "a string", "a string", "a string", 64.64, 64.64, 64.64, 32.32, 32.32, -32, "a string", "a string", 32.32, 32.32, -16, "a string", "a string")) { 286 exit(EXIT_FAILURE); 287 } 288 289 psDBCleanup(dbh); 290 } 291 292 { 293 psDB *dbh; 294 295 dbh = psDBInit("localhost", "test", NULL, "test"); 296 if (!dbh) { 297 exit(EXIT_FAILURE); 298 } 299 300 if (!camMaskInsert(dbh, "a string")) { 301 301 exit(EXIT_FAILURE); 302 302 } … … 478 478 } 479 479 480 if (! p4RunInsert(dbh, -32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) {481 exit(EXIT_FAILURE); 482 } 483 484 psDBCleanup(dbh); 485 } 486 487 { 488 psDB *dbh; 489 490 dbh = psDBInit("localhost", "test", NULL, "test"); 491 if (!dbh) { 492 exit(EXIT_FAILURE); 493 } 494 495 if (! p4InputExpInsert(dbh, -32, "a string", -32, true)) {496 exit(EXIT_FAILURE); 497 } 498 499 psDBCleanup(dbh); 500 } 501 502 { 503 psDB *dbh; 504 505 dbh = psDBInit("localhost", "test", NULL, "test"); 506 if (!dbh) { 507 exit(EXIT_FAILURE); 508 } 509 510 if (! p4SkyCellMapInsert(dbh, -32, "a string", "a string", "a string", -32, "a string")) {511 exit(EXIT_FAILURE); 512 } 513 514 psDBCleanup(dbh); 515 } 516 517 { 518 psDB *dbh; 519 520 dbh = psDBInit("localhost", "test", NULL, "test"); 521 if (!dbh) { 522 exit(EXIT_FAILURE); 523 } 524 525 if (! p4SkyfileInsert(dbh, -32, "a string", "a string", "a string", 64.64, 64.64)) {526 exit(EXIT_FAILURE); 527 } 528 529 psDBCleanup(dbh); 530 } 531 532 { 533 psDB *dbh; 534 535 dbh = psDBInit("localhost", "test", NULL, "test"); 536 if (!dbh) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (! p5RunInsert(dbh, -32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) {541 exit(EXIT_FAILURE); 542 } 543 544 psDBCleanup(dbh); 545 } 546 547 { 548 psDB *dbh; 549 550 dbh = psDBInit("localhost", "test", NULL, "test"); 551 if (!dbh) { 552 exit(EXIT_FAILURE); 553 } 554 555 if (! p5InputSkyfileInsert(dbh, -32, -32, "a string", "a string", "a string", true)) {556 exit(EXIT_FAILURE); 557 } 558 559 psDBCleanup(dbh); 560 } 561 562 { 563 psDB *dbh; 564 565 dbh = psDBInit("localhost", "test", NULL, "test"); 566 if (!dbh) { 567 exit(EXIT_FAILURE); 568 } 569 570 if (! p5DiffSkyfileInsert(dbh, -32, "a string", 64.64, 64.64)) {571 exit(EXIT_FAILURE); 572 } 573 574 psDBCleanup(dbh); 575 } 576 577 { 578 psDB *dbh; 579 580 dbh = psDBInit("localhost", "test", NULL, "test"); 581 if (!dbh) { 582 exit(EXIT_FAILURE); 583 } 584 585 if (! p6RunInsert(dbh, -32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) {586 exit(EXIT_FAILURE); 587 } 588 589 psDBCleanup(dbh); 590 } 591 592 { 593 psDB *dbh; 594 595 dbh = psDBInit("localhost", "test", NULL, "test"); 596 if (!dbh) { 597 exit(EXIT_FAILURE); 598 } 599 600 if (! p6InputSkyfileInsert(dbh, -32, -32)) {601 exit(EXIT_FAILURE); 602 } 603 604 psDBCleanup(dbh); 605 } 606 607 { 608 psDB *dbh; 609 610 dbh = psDBInit("localhost", "test", NULL, "test"); 611 if (!dbh) { 612 exit(EXIT_FAILURE); 613 } 614 615 if (! p6SumSkyfileInsert(dbh, -32, "a string", 64.64, 64.64)) {480 if (!warpRunInsert(dbh, -32, "a string", "a string", "a string", "a string", "0001-01-01T00:00:00Z")) { 481 exit(EXIT_FAILURE); 482 } 483 484 psDBCleanup(dbh); 485 } 486 487 { 488 psDB *dbh; 489 490 dbh = psDBInit("localhost", "test", NULL, "test"); 491 if (!dbh) { 492 exit(EXIT_FAILURE); 493 } 494 495 if (!warpInputExpInsert(dbh, -32, "a string", -32, true)) { 496 exit(EXIT_FAILURE); 497 } 498 499 psDBCleanup(dbh); 500 } 501 502 { 503 psDB *dbh; 504 505 dbh = psDBInit("localhost", "test", NULL, "test"); 506 if (!dbh) { 507 exit(EXIT_FAILURE); 508 } 509 510 if (!warpSkyCellMapInsert(dbh, -32, "a string", "a string", "a string", -32, "a string")) { 511 exit(EXIT_FAILURE); 512 } 513 514 psDBCleanup(dbh); 515 } 516 517 { 518 psDB *dbh; 519 520 dbh = psDBInit("localhost", "test", NULL, "test"); 521 if (!dbh) { 522 exit(EXIT_FAILURE); 523 } 524 525 if (!warpSkyfileInsert(dbh, -32, "a string", "a string", "a string", 64.64, 64.64)) { 526 exit(EXIT_FAILURE); 527 } 528 529 psDBCleanup(dbh); 530 } 531 532 { 533 psDB *dbh; 534 535 dbh = psDBInit("localhost", "test", NULL, "test"); 536 if (!dbh) { 537 exit(EXIT_FAILURE); 538 } 539 540 if (!diffRunInsert(dbh, -32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 541 exit(EXIT_FAILURE); 542 } 543 544 psDBCleanup(dbh); 545 } 546 547 { 548 psDB *dbh; 549 550 dbh = psDBInit("localhost", "test", NULL, "test"); 551 if (!dbh) { 552 exit(EXIT_FAILURE); 553 } 554 555 if (!diffInputSkyfileInsert(dbh, -32, -32, "a string", "a string", "a string", true)) { 556 exit(EXIT_FAILURE); 557 } 558 559 psDBCleanup(dbh); 560 } 561 562 { 563 psDB *dbh; 564 565 dbh = psDBInit("localhost", "test", NULL, "test"); 566 if (!dbh) { 567 exit(EXIT_FAILURE); 568 } 569 570 if (!diffSkyfileInsert(dbh, -32, "a string", 64.64, 64.64)) { 571 exit(EXIT_FAILURE); 572 } 573 574 psDBCleanup(dbh); 575 } 576 577 { 578 psDB *dbh; 579 580 dbh = psDBInit("localhost", "test", NULL, "test"); 581 if (!dbh) { 582 exit(EXIT_FAILURE); 583 } 584 585 if (!stackRunInsert(dbh, -32, "a string", "a string", "a string", "0001-01-01T00:00:00Z", "a string", "a string")) { 586 exit(EXIT_FAILURE); 587 } 588 589 psDBCleanup(dbh); 590 } 591 592 { 593 psDB *dbh; 594 595 dbh = psDBInit("localhost", "test", NULL, "test"); 596 if (!dbh) { 597 exit(EXIT_FAILURE); 598 } 599 600 if (!stackInputSkyfileInsert(dbh, -32, -32)) { 601 exit(EXIT_FAILURE); 602 } 603 604 psDBCleanup(dbh); 605 } 606 607 { 608 psDB *dbh; 609 610 dbh = psDBInit("localhost", "test", NULL, "test"); 611 if (!dbh) { 612 exit(EXIT_FAILURE); 613 } 614 615 if (!stackSumSkyfileInsert(dbh, -32, "a string", 64.64, 64.64)) { 616 616 exit(EXIT_FAILURE); 617 617 }
Note:
See TracChangeset
for help on using the changeset viewer.
