File: testing.xml

package info (click to toggle)
php-doc 20250827~git.abe740d%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 71,968 kB
  • sloc: xml: 985,760; php: 25,504; javascript: 671; sh: 177; makefile: 37
file content (144 lines) | stat: -rw-r--r-- 3,926 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="oci8.test" xmlns="http://docbook.org/ns/docbook">
 <title>Testing</title>
 <para>
  The OCI8 test suite is in <filename>ext/oci8/tests</filename>.
  After OCI8 tests are run this directory will also contain logs of
  any failures.
 </para>
 <para>
  Before running PHP's tests, edit <filename>details.inc</filename>
  and set $user, $password and the $dbase connection string.  The
  OCI8 test suite has been developed using
  the <literal>SYSTEM</literal> account.  Some tests will fail if
  the test user does not have equivalent permissions.
 </para>
 <para>
  If Oracle Database Resident Connection Pooling is being
  tested, set $test_drcp to &true; and ensure the
  connection string uses an appropriate DRCP pooled server.
 </para>
 <para>
  An alternative to editing <filename>details.inc</filename> is the
  set environment variables, for example:
  <programlisting>
<![CDATA[
    $ export PHP_OCI8_TEST_USER=system
    $ export PHP_OCI8_TEST_PASS=oracle
    $ export PHP_OCI8_TEST_DB=localhost/XE
    $ export PHP_OCI8_TEST_DRCP=FALSE
]]>
  </programlisting>
  Note in some shells these variables are not propagated correctly
  to the PHP process and tests will fail to connect if this method
  is used.
 </para>
 <para>
  Next, set any necessary environment for the Oracle database.  If you are
  running PHP on the same machines as Oracle Database, you can run:
  <programlisting>
<![CDATA[
    $ . /usr/local/bin/oraenv
]]>
  </programlisting>
 </para>
 <para>
  With Oracle 11<emphasis>g</emphasis>R2 XE do:
  <programlisting>
<![CDATA[
    $ . /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh
]]>
  </programlisting>
 </para>
 <para>
  Some shells require that &php.ini; has <literal>E</literal> in the
  variables_order parameter, for example:
  <programlisting>
<![CDATA[
    variables_order = "EGPCS"
]]>
  </programlisting>
 </para>
 <para>
  Run all the PHP tests with:
  <programlisting>
<![CDATA[
    $ cd your_php_src_directory
    $ make test
]]>
  </programlisting>
  or run only the OCI8 tests with
  <programlisting>
<![CDATA[
    $ cd your_php_src_directory
    $ make test TESTS=ext/oci8
]]>
  </programlisting>
 </para>
 <para>
  When the tests have completed, review any test failures. On slow
  systems, some tests may take longer than the default test
  timeout in <filename>run-tests.php</filename>.  To correct this,
  set the environment variable <literal>TEST_TIMEOUT</literal> to
  a larger number of seconds.
 </para>
 <para>
  On fast machines with a local database configured for light load
  (e.g. Oracle 11<emphasis>g</emphasis>R2 XE) some tests might fail with ORA-12516 or
  ORA-12520 errors.  To prevent this, increase the database
  <literal>PROCESSES</literal> parameter using the following steps:
 </para>
 <para>
  Connect as the oracle software owner:
  <programlisting>
<![CDATA[
    $ su - oracle
]]>
  </programlisting>
 </para>
 <para>
  Set the necessary Oracle environment with <filename>oracle_env.sh</filename> or
  <filename>oraenv</filename>, as described above.
 </para>
 <para>
  Start the SQL*Plus command line tool and
  increase <literal>PROCESSES</literal>
  <programlisting>
<![CDATA[
    $ sqlplus / as sysdba
    SQL> alter system set processes=100 scope=spfile
]]>
  </programlisting>
 </para>
 <para>
  Restart the database:
  <programlisting>
<![CDATA[
    SQL> startup force
]]>
  </programlisting>
 </para>
</section>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->