Changes between Version 22 and Version 23 of OracleTestSetup
- Timestamp:
- Apr 20, 2015, 7:45:45 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OracleTestSetup
v22 v23 411 411 #. Start a new shell and install cx_Oracle in your testing virtualenv:: 412 412 413 pip install cx_Oracle413 $ pip install cx_Oracle 414 414 415 415 The new shell is necessary because the *instantclient* package sets various environment variables required to build the adapter. On Debian/Ubuntu, you'll need to set the variables manually:: … … 431 431 'USER': 'system', 432 432 'PASSWORD': 'oracle', 433 'TEST_USER': 'django', 434 'TEST_TBLSPACE': 'django_test', 435 'TEST_TBLSPACE_TMP': 'django_test_tmp', 433 'TEST': { 434 'USER': 'django', 435 'TBLSPACE': 'django_test', 436 'TBLSPACE_TMP': 'django_test_tmp', 437 }, 436 438 }, 437 439 'other': { … … 442 444 'USER': 'system', 443 445 'PASSWORD': 'oracle', 444 'TEST_USER': 'other', 445 'TEST_TBLSPACE': 'other_test', 446 'TEST_TBLSPACE_TMP': 'other_test_tmp', 447 } 446 'TEST': { 447 'USER': 'other', 448 'TBLSPACE': 'other_test', 449 'TBLSPACE_TMP': 'other_test_tmp', 450 }, 451 }, 448 452 } 449 453 … … 454 458 #. Profit:: 455 459 456 457 458 459 460 461 (env)johnny64@equus ~/GSoC/2011/koniiiik-django/tests $./runtests.py --settings=test_oracle460 $ # may be need on Debian/Ubuntu 461 $ export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib 462 $ # for error "libaio.so.1: cannot open shared object file" 463 $ sudo apt-get install libaio1 464 465 $ ./runtests.py --settings=test_oracle 462 466 Creating test database for alias 'default'... 463 467 Creating test user... 464 468 Creating test database for alias 'other'... 465 ... ...........................................................................................................................................................................................................................................................................................................................x...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s..s.s....ss.s...ss...........................................................................................................................................................................................................................................................................x...........xx..................s.........................................................................................................................s.........................................................................................................................................................................................x..............................................................................................................................................................................................s..................................................................................ss............s.....................s................s...................................................................................................................................................................................s.......x.xx....................x.............x................................................................................................................................................................................................................................................................s.........s.........................................................sss......s..........................................................................................................................................................................................................................................................................x...............................................................................................sssssss....s..............s......s..........................................................................................................................................s.....................................................................................................................................................s..................................s................s...........................................................................s.............................................................................................x.s..s..................................................................................ss.......................................................................................................s....................................................................................................x.........................................................................................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.......................ss..........................................................................................................................................................................................................................................ssssss.......s.........................................................................................................................................................................................................................................................................................................s.......s..........sss..........................................................................................................................................................................................s.............................................................................sss...............................ssss........ss................................................................................................................................................................................................................................................................................................................................ss..........................................................................................................................................................................................................................................................................................................ssssssssssssssssssssssssssssssssssssss............................ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss........................sssssssssssssssssss......................469 ... 466 470 ---------------------------------------------------------------------- 467 Ran 5826 tests in 1290.532s468 469 OK (skipped= 360, expected failures=13)471 Ran XXX tests in XXXs 472 473 OK (skipped=X, expected failures=X) 470 474 Destroying test database for alias 'default'... 471 475 Destroying test user... 472 476 Destroying test database tables... 473 477 Destroying test database for alias 'other'... 474 475 476 478 }}}