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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since a33dbaa was e3a1e522, checked in by Jim Gifford <clfs@…>, 19 years ago

r981@server (orig r979): jim | 2005-12-30 10:11:32 -0800

r1226@server: cstaub | 2005-12-30 08:35:37 -0800
Updated package deps, removed explanation of cross-compiling from final-system binutils, and removed note about GRUB's testsuite failure


  • 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 <segmentedlist>
24 <segtitle>&dependencies;</segtitle>
25
26 <seglistitem>
27 <seg>Bash, Binutils, Coreutils, Diffutils,
28 GCC, Glibc, Grep, Make, Patch, 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
44<screen os="d"><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
45 --with-tclinclude=/tools/include</userinput></screen>
46
47 <variablelist os="e">
48 <title>The meaning of the configure options:</title>
49
50 <varlistentry os="e1">
51 <term><parameter>--with-tcl=/tools/lib</parameter></term>
52 <listitem>
53 <para>This ensures that the configure script finds the Tcl
54 installation in the temporary testsuite-tools location.</para>
55 </listitem>
56 </varlistentry>
57
58 <varlistentry os="e2">
59 <term><parameter>--with-tclinclude=/tools/include</parameter></term>
60 <listitem>
61 <para>This explicitly tells Expect where to find Tcl's internal headers.
62 Using this option avoids conditions
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
68 </variablelist>
69
70 <para os="f">Build the package:</para>
71
72<screen os="g"><userinput>make</userinput></screen>
73
74 <para os="i">Install the package:</para>
75
76<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
77
78 <variablelist os="k">
79 <title>The meaning of the make parameter:</title>
80
81 <varlistentry>
82 <term><parameter>SCRIPTS=""</parameter></term>
83 <listitem>
84 <para>This prevents installation of the supplementary expect
85 scripts, which are not needed.</para>
86 </listitem>
87 </varlistentry>
88
89 </variablelist>
90
91 </sect2>
92
93 <sect2 id="contents-expect" role="content">
94 <title>Contents of Expect</title>
95
96 <segmentedlist>
97 <segtitle>Installed program</segtitle>
98 <segtitle>Installed library</segtitle>
99
100 <seglistitem>
101 <seg>expect</seg>
102 <seg>libexpect-&expect-lib-version;.a</seg>
103 </seglistitem>
104 </segmentedlist>
105
106 <variablelist>
107 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
108 <?dbfo list-presentation="list"?>
109 <?dbhtml list-presentation="table"?>
110
111 <varlistentry id="expect">
112 <term><command>expect</command></term>
113 <listitem>
114 <para>Communicates with other interactive programs according
115 to a script</para>
116 <indexterm zone="ch-testsuite-tools-expect expect">
117 <primary sortas="b-expect">expect</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="libexpect">
123 <term><filename class="libraryfile">libexpect-&expect-lib-version;.a</filename></term>
124 <listitem>
125 <para>Contains functions that allow Expect to be used as a Tcl
126 extension or to be used directly from C or C++ (without Tcl)</para>
127 <indexterm zone="ch-testsuite-tools-expect libexpect">
128 <primary sortas="c-libexpect-&expect-lib-version;">libexpect-&expect-lib-version;</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 </variablelist>
134
135 </sect2>
136
137</sect1>
Note: See TracBrowser for help on using the repository browser.