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

systemd
Last change on this file since 379748b was c57b623, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated Expect to 5.45.

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