[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[134ba96] | 8 | <sect1 id="ch-testsuite-tools-expect" role="wrap">
|
---|
[3f8be484] | 9 | <?dbhtml filename="expect.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Expect-&expect-version;</title>
|
---|
| 12 |
|
---|
[134ba96] | 13 | <indexterm zone="ch-testsuite-tools-expect">
|
---|
[3f8be484] | 14 | <primary sortas="a-Expect">Expect</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Expect package contains a program for carrying out scripted
|
---|
| 21 | dialogues with other interactive programs.</para>
|
---|
| 22 |
|
---|
| 23 | <segmentedlist>
|
---|
| 24 | <segtitle>&dependencies;</segtitle>
|
---|
| 25 |
|
---|
| 26 | <seglistitem>
|
---|
| 27 | <seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 28 | GCC, Glibc, Grep, Make, Sed, and Tcl</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
| 31 |
|
---|
| 32 | </sect2>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="installation">
|
---|
| 35 | <title>Installation of Expect</title>
|
---|
| 36 |
|
---|
| 37 | <para os="a">First, fix a bug that can result in false failures during the GCC
|
---|
| 38 | test suite run:</para>
|
---|
| 39 |
|
---|
| 40 | <screen os="b"><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
|
---|
| 41 |
|
---|
| 42 | <para os="c">Now prepare Expect for compilation:</para>
|
---|
| 43 |
|
---|
[aa3ee8b] | 44 | <screen os="d"><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
|
---|
[b15e6404] | 45 | --with-tclinclude=/tools/include --with-x=no</userinput></screen>
|
---|
[3f8be484] | 46 |
|
---|
[aa3ee8b] | 47 | <variablelist os="e">
|
---|
[3f8be484] | 48 | <title>The meaning of the configure options:</title>
|
---|
| 49 |
|
---|
[6bb43b3] | 50 | <varlistentry os="e1">
|
---|
[3f8be484] | 51 | <term><parameter>--with-tcl=/tools/lib</parameter></term>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>This ensures that the configure script finds the Tcl
|
---|
[134ba96] | 54 | installation in the temporary testsuite-tools location.</para>
|
---|
[3f8be484] | 55 | </listitem>
|
---|
| 56 | </varlistentry>
|
---|
| 57 |
|
---|
[6bb43b3] | 58 | <varlistentry os="e2">
|
---|
[b15e6404] | 59 | <term><parameter>--with-tclinclude=/tools/include</parameter></term>
|
---|
[3f8be484] | 60 | <listitem>
|
---|
[b15e6404] | 61 | <para>This explicitly tells Expect where to find Tcl's internal headers.
|
---|
| 62 | Using this option avoids conditions
|
---|
[3f8be484] | 63 | where <command>configure</command> fails because it cannot
|
---|
| 64 | automatically discover the location of the Tcl source directory.</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
| 67 |
|
---|
[6bb43b3] | 68 | <varlistentry os="e3">
|
---|
[3f8be484] | 69 | <term><parameter>--with-x=no</parameter></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>This tells the configure script not to search for Tk
|
---|
| 72 | (the Tcl GUI component) or the X Window System libraries, both of
|
---|
| 73 | which may reside on the host system but will not exist when
|
---|
| 74 | building the final system.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | </variablelist>
|
---|
| 79 |
|
---|
[aa3ee8b] | 80 | <para os="f">Build the package:</para>
|
---|
[3f8be484] | 81 |
|
---|
[aa3ee8b] | 82 | <screen os="g"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 83 |
|
---|
[aa3ee8b] | 84 | <para os="i">Install the package:</para>
|
---|
[3f8be484] | 85 |
|
---|
[aa3ee8b] | 86 | <screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
|
---|
[3f8be484] | 87 |
|
---|
[aa3ee8b] | 88 | <variablelist os="k">
|
---|
[3f8be484] | 89 | <title>The meaning of the make parameter:</title>
|
---|
| 90 |
|
---|
| 91 | <varlistentry>
|
---|
| 92 | <term><parameter>SCRIPTS=""</parameter></term>
|
---|
| 93 | <listitem>
|
---|
| 94 | <para>This prevents installation of the supplementary expect
|
---|
| 95 | scripts, which are not needed.</para>
|
---|
| 96 | </listitem>
|
---|
| 97 | </varlistentry>
|
---|
| 98 |
|
---|
| 99 | </variablelist>
|
---|
| 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 id="contents-expect" role="content">
|
---|
| 104 | <title>Contents of Expect</title>
|
---|
| 105 |
|
---|
| 106 | <segmentedlist>
|
---|
| 107 | <segtitle>Installed program</segtitle>
|
---|
| 108 | <segtitle>Installed library</segtitle>
|
---|
| 109 |
|
---|
| 110 | <seglistitem>
|
---|
| 111 | <seg>expect</seg>
|
---|
| 112 | <seg>libexpect-&expect-lib-version;.a</seg>
|
---|
| 113 | </seglistitem>
|
---|
| 114 | </segmentedlist>
|
---|
| 115 |
|
---|
| 116 | <variablelist>
|
---|
| 117 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 118 | <?dbfo list-presentation="list"?>
|
---|
| 119 | <?dbhtml list-presentation="table"?>
|
---|
| 120 |
|
---|
| 121 | <varlistentry id="expect">
|
---|
| 122 | <term><command>expect</command></term>
|
---|
| 123 | <listitem>
|
---|
| 124 | <para>Communicates with other interactive programs according
|
---|
| 125 | to a script</para>
|
---|
[134ba96] | 126 | <indexterm zone="ch-testsuite-tools-expect expect">
|
---|
[3f8be484] | 127 | <primary sortas="b-expect">expect</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="libexpect">
|
---|
| 133 | <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Contains functions that allow Expect to be used as a Tcl
|
---|
| 136 | extension or to be used directly from C or C++ (without Tcl)</para>
|
---|
[134ba96] | 137 | <indexterm zone="ch-testsuite-tools-expect libexpect">
|
---|
[3f8be484] | 138 | <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
|
---|
| 139 | </indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | </variablelist>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | </sect1>
|
---|