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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a64a245 was 0d2a97c, checked in by Chris Staub <chris@…>, 18 years ago

Text updates

  • Property mode set to 100644
File size: 4.2 KB
Line 
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
8<sect1 id="ch-testsuite-tools-expect" role="wrap">
9 <?dbhtml filename="expect.html"?>
10
11 <title>Expect-&expect-version;</title>
12
13 <indexterm zone="ch-testsuite-tools-expect">
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
28 <para os="s1">The following sed tells <command>configure</command> to look
29 for libraries in ${libdir}, not just in /tools/lib:</para>
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
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
40<screen os="d"><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
41 --with-tclinclude=/tools/include</userinput></screen>
42
43 <variablelist os="e">
44 <title>The meaning of the configure options:</title>
45
46 <varlistentry os="e1">
47 <term><parameter>--with-tcl=/tools/lib</parameter></term>
48 <listitem>
49 <para>This ensures that the configure script finds the Tcl
50 installation in the temporary testsuite-tools location.</para>
51 </listitem>
52 </varlistentry>
53
54 <varlistentry os="e2">
55 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
56 <listitem>
57 <para>This explicitly tells Expect where to find Tcl's internal headers.
58 Using this option avoids conditions
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
66 <para os="f">Build the package:</para>
67
68<screen os="g"><userinput>make</userinput></screen>
69
70 <para os="i">Install the package:</para>
71
72<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
73
74 <variablelist os="k">
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>
112 <indexterm zone="ch-testsuite-tools-expect expect">
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>
123 <indexterm zone="ch-testsuite-tools-expect libexpect">
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.