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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since caab9dc 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
RevLine 
[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,
[e3a1e522]28 GCC, Glibc, Grep, Make, Patch, Sed, and Tcl</seg>
[3f8be484]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 \
[7a8cc24]45 --with-tclinclude=/tools/include</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
68 </variablelist>
69
[aa3ee8b]70 <para os="f">Build the package:</para>
[3f8be484]71
[aa3ee8b]72<screen os="g"><userinput>make</userinput></screen>
[3f8be484]73
[aa3ee8b]74 <para os="i">Install the package:</para>
[3f8be484]75
[aa3ee8b]76<screen os="j"><userinput>make SCRIPTS="" install</userinput></screen>
[3f8be484]77
[aa3ee8b]78 <variablelist os="k">
[3f8be484]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>
[134ba96]116 <indexterm zone="ch-testsuite-tools-expect expect">
[3f8be484]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>
[134ba96]127 <indexterm zone="ch-testsuite-tools-expect libexpect">
[3f8be484]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.