source: BOOK/testsuite-tools/common/expect.xml@ bfb94b2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bfb94b2 was aa18ac0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Updated trunk book sources to use DocBook-XML DTD 4.5.

  • Property mode set to 100644
File size: 4.2 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Expect</title>
27
[0d2a97c]28 <para os="s1">The following sed tells <command>configure</command> to look
29 for libraries in ${libdir}, not just in /tools/lib:</para>
[a3b04fe]30
31<screen os="s2"><userinput>sed -i '/EXP_LIB_SPEC=/s@${exec_prefix}/lib@${libdir}@' configure</userinput></screen>
32
33 <para os="a">Fix a bug that can result in false failures during the GCC
[3f8be484]34 test suite run:</para>
35
36<screen os="b"><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
37
38 <para os="c">Now prepare Expect for compilation:</para>
39
[aa3ee8b]40<screen os="d"><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
[661d1a4]41 --with-tclinclude=/tools/include</userinput></screen>
[3f8be484]42
[aa3ee8b]43 <variablelist os="e">
[3f8be484]44 <title>The meaning of the configure options:</title>
45
[6bb43b3]46 <varlistentry os="e1">
[3f8be484]47 <term><parameter>--with-tcl=/tools/lib</parameter></term>
48 <listitem>
49 <para>This ensures that the configure script finds the Tcl
[134ba96]50 installation in the temporary testsuite-tools location.</para>
[3f8be484]51 </listitem>
52 </varlistentry>
53
[6bb43b3]54 <varlistentry os="e2">
[b15e6404]55 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
[3f8be484]56 <listitem>
[b15e6404]57 <para>This explicitly tells Expect where to find Tcl's internal headers.
58 Using this option avoids conditions
[3f8be484]59 where <command>configure</command> fails because it cannot
60 automatically discover the location of the Tcl source directory.</para>
61 </listitem>
62 </varlistentry>
63
64 </variablelist>
65
[aa3ee8b]66 <para os="f">Build the package:</para>
[3f8be484]67
[aa3ee8b]68<screen os="g"><userinput>make</userinput></screen>
[3f8be484]69
[aa3ee8b]70 <para os="i">Install the package:</para>
[3f8be484]71
[aa3ee8b]72<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
[3f8be484]73
[aa3ee8b]74 <variablelist os="k">
[3f8be484]75 <title>The meaning of the make parameter:</title>
76
77 <varlistentry>
78 <term><parameter>SCRIPTS=""</parameter></term>
79 <listitem>
80 <para>This prevents installation of the supplementary expect
81 scripts, which are not needed.</para>
82 </listitem>
83 </varlistentry>
84
85 </variablelist>
86
87 </sect2>
88
89 <sect2 id="contents-expect" role="content">
90 <title>Contents of Expect</title>
91
92 <segmentedlist>
93 <segtitle>Installed program</segtitle>
94 <segtitle>Installed library</segtitle>
95
96 <seglistitem>
97 <seg>expect</seg>
98 <seg>libexpect-&expect-lib-version;.a</seg>
99 </seglistitem>
100 </segmentedlist>
101
102 <variablelist>
103 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
104 <?dbfo list-presentation="list"?>
105 <?dbhtml list-presentation="table"?>
106
107 <varlistentry id="expect">
108 <term><command>expect</command></term>
109 <listitem>
110 <para>Communicates with other interactive programs according
111 to a script</para>
[134ba96]112 <indexterm zone="ch-testsuite-tools-expect expect">
[3f8be484]113 <primary sortas="b-expect">expect</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="libexpect">
119 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
120 <listitem>
121 <para>Contains functions that allow Expect to be used as a Tcl
122 extension or to be used directly from C or C++ (without Tcl)</para>
[134ba96]123 <indexterm zone="ch-testsuite-tools-expect libexpect">
[3f8be484]124 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.