From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 17 08:53:18 2020 Received: (at submit) by debbugs.gnu.org; 17 Nov 2020 13:53:19 +0000 Received: from localhost ([127.0.0.1]:58697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf1Q6-0005i1-KN for submit@debbugs.gnu.org; Tue, 17 Nov 2020 08:53:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:40412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kf1Q3-0005hs-4l for submit@debbugs.gnu.org; Tue, 17 Nov 2020 08:53:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf1Q2-0001Bh-RR for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 08:53:14 -0500 Received: from st43p00im-ztfb10061701.me.com ([17.58.63.172]:48617) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kf1Q0-0003Ma-2H for bug-dejagnu@gnu.org; Tue, 17 Nov 2020 08:53:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1605621189; bh=Pu9uwwG/Yw/Z8ZOaeliI22bTapX/2hC1uJtaWE6RLYc=; h=From:Content-Type:Mime-Version:Subject:Message-Id:Date:To; b=Gu/NytEWBgAi/WHhnZj8xPWXcxohSp9htH1BzBbBVR7wGxodJxMTJwvCwo20qW7Rw srg7mcnE11aPzTaidNCo+Y5GvDNzfQmNU8h2C+Ty1CZrnfTXLwSdjgqqnVBVJPXz2f gGt3c5Bb7us1OGKbgD2WI7hyCpZk+tDYVRqvX98zNSMvxhEC4tNweWFHZazW7R2++c mD40nCMELCNnBfASjltADdxuZXZJ/GcbrZ93/62egwJ1pCkNyqr9A3pdQt8HVRyG5P 1iRdw/8mhpkamGAbD7OPrp1vLF7/ecH+jophlcim9Owq5/QzfwUCaASCsMDeHkyoKA Y/COsHb/ZxeyA== Received: from [192.168.0.18] (nc-71-50-141-172.dyn.embarqhsd.net [71.50.141.172]) by st43p00im-ztfb10061701.me.com (Postfix) with ESMTPSA id 3C4E3AC09BB for ; Tue, 17 Nov 2020 13:53:09 +0000 (UTC) From: Robert Menteer Content-Type: multipart/alternative; boundary="Apple-Mail=_F113DB85-4407-41D8-A65A-F5301F75FDA7" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Inadequate documentation of dejagnu.exp Message-Id: <7FA505F1-8BBE-4E27-945F-DF01CF8B1455@mac.com> Date: Tue, 17 Nov 2020 08:53:08 -0500 To: Robert Menteer via Bug-dejagnu X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-17_03:2020-11-17, 2020-11-17 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=491 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2011170103 Received-SPF: pass client-ip=17.58.63.172; envelope-from=reetnem@mac.com; helo=st43p00im-ztfb10061701.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/17 08:53:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_F113DB85-4407-41D8-A65A-F5301F75FDA7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Section 5.1 implies each unit test is batch process. Section 5.2 states = that dejagnu.exp can be used for testing the batch processes for unit = testing. Section 4.6 says to look examine the GNU GCC testsuite for how = to write test for batch processes. The section on using dejagnu.exp states little TCL is needed but the GNU = GCC tests have thousands of lines of TCL. It took me many days before I = finally did =C2=ABfind / -name dejagnu.exp=C2=BB and looked to see how = to write an xxx.exp file for a unit test. Please document how to use the procedures in dejagnu.exp and supply a = minimal unit test xxx.exp file like the one below. load_lib dejagnu.exp host_execute $srcdir/unit-code/t_opts At a bare minimum tell people to read dejagnu.exp Thanks, Bob Menteer --Apple-Mail=_F113DB85-4407-41D8-A65A-F5301F75FDA7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Section 5.1 implies each unit test is batch process. Section = 5.2 states that dejagnu.exp can be used for testing the batch processes = for unit testing. Section 4.6 says to look examine the GNU GCC testsuite = for how to write test for batch processes.

The section on using dejagnu.exp states = little TCL is needed but the GNU GCC tests have thousands of lines of = TCL. It took me many days before I finally did =C2=ABfind / -name = dejagnu.exp=C2=BB and looked to see how to write an xxx.exp file for a = unit test.

Please document how to use the procedures in dejagnu.exp and = supply a minimal unit test xxx.exp file like the one below.

load_lib dejagnu.exp
host_execute = $srcdir/unit-code/t_opts

At a bare minimum tell people to read = dejagnu.exp


Thanks,
Bob = Menteer

= --Apple-Mail=_F113DB85-4407-41D8-A65A-F5301F75FDA7-- From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 17 22:57:56 2020 Received: (at 44703-done) by debbugs.gnu.org; 18 Nov 2020 03:57:56 +0000 Received: from localhost ([127.0.0.1]:33593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbU-0005qq-62 for submit@debbugs.gnu.org; Tue, 17 Nov 2020 22:57:56 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:43253) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfEbR-0005qa-Rq for 44703-done@debbugs.gnu.org; Tue, 17 Nov 2020 22:57:54 -0500 Received: by mail-ot1-f54.google.com with SMTP id y22so453889oti.10 for <44703-done@debbugs.gnu.org>; Tue, 17 Nov 2020 19:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=fs5kJ4wdZ+xx0IB+/I8uPJ/YLpRvgx8ub3IODJpcIQU=; b=MFOtnuW7n15KnBODuiiqUxsQ3eH7S9uTHfyD0P+Z1gqYlueE6veFCSSOAnjVvFPZeL q4jiORkAfX5iYTQS87e8XE/7w8k7O0tgQJT+zaJ/wxHDY4Nudg/67C+1XlhKJny/DDl8 OLMa00OigQHL2AjUKmo5Eaan5E/ou6EoPUzXTA8CiiiLawqffA31y8S0SU45Zi+NjFd5 w4gb65hwrMOoHPKt820ouMv7KzOWx5vvtEsstrW/FN19zShE9nx/zGUWqaTkRadaUq9I WNCnUgxjCSLTsjP+8Ei2qnIokdJYuUE8drpjUloe4xt7VgoRlC1lrTB8TGx3rXIvQ0cD BBnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:reply-to:user-agent :mime-version:to:cc:subject:references:in-reply-to :content-transfer-encoding; bh=fs5kJ4wdZ+xx0IB+/I8uPJ/YLpRvgx8ub3IODJpcIQU=; b=SQ780/noFXsG3cDxt9Vfx9PpvTIHe3oEaABdCRdqEOF7ZOhHaWIR/q1PmXlaxb9bpV KhbKhxvblWouEewSzkPv5q2fPknURYcsUqo8n37Kn95OZxMg2EpJdyBr4sqlCvTVyJkd KRwMp1PShc3oZy1aXwxACj/8EbHFwF+aAMX/faLYLfbriqgBtzh2Gyu95LYQ6jUEmxHb WyOGuBo0LRLYrRxsWyjLmenIwXVnk+NeiN4djNarmrSfLkxE3EkIaHg2JFlVAKNZeZH1 aUqxZJcFbKdxDyTAKFC/Yq8Or/XzqQUedqNbCSj8b47LcucF2qzNiQA2Va7qn7kzYbB3 hpHw== X-Gm-Message-State: AOAM533b+g6Q2fsykgGt4xf1gl3LZVJEVRdxy55LGGQ7XiOSIC3RjSkf /RkThe91IjlxkK409uZDIQA= X-Google-Smtp-Source: ABdhPJzMCIWBJN2hODdy4Jk2R3Y5yDv7Lahh5jSBFdXXyff09mHFtBIt9Qu2nEUQwutV6TW+CgcNOQ== X-Received: by 2002:a9d:4b07:: with SMTP id q7mr5394321otf.158.1605671868338; Tue, 17 Nov 2020 19:57:48 -0800 (PST) Received: from [192.168.2.42] (adsl-70-133-144-11.dsl.ablntx.sbcglobal.net. [70.133.144.11]) by smtp.gmail.com with ESMTPSA id t2sm1341184otr.37.2020.11.17.19.57.47 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Nov 2020 19:57:47 -0800 (PST) Message-ID: <5FB49BBB.9040300@gmail.com> Date: Tue, 17 Nov 2020 21:57:47 -0600 From: Jacob Bachmeyer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Robert Menteer , Robert Menteer via Bug-dejagnu Subject: Re: bug#44703: Inadequate documentation of dejagnu.exp References: <7FA505F1-8BBE-4E27-945F-DF01CF8B1455@mac.com> In-Reply-To: <7FA505F1-8BBE-4E27-945F-DF01CF8B1455@mac.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 44703-done Cc: 44703-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jcb62281@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Robert Menteer via Bug-dejagnu via wrote: > Section 5.1 implies each unit test is batch process. Section 5.2 > states that dejagnu.exp can be used for testing the batch processes > for unit testing. Section 4.6 says to look examine the GNU GCC > testsuite for how to write test for batch processes. When referring to the manual, please include the titles of the sections; the section numbering has recently changed and will continue to change as the manual is reorganized. > The section on using dejagnu.exp states little TCL is needed but the > GNU GCC tests have thousands of lines of TCL. It took me many days > before I finally did «find / -name dejagnu.exp» and looked to see how > to write an xxx.exp file for a unit test. > > Please document how to use the procedures in dejagnu.exp and supply a > minimal unit test xxx.exp file like the one below. In current Git master (soon to be a 1.6.3-rc), there is a chapter 6 "Unit Testing" and additional improvements to the existing unit test support in dejagnu.h are a notable item currently planned for 1.6.4. > load_lib dejagnu.exp > host_execute $srcdir/unit-code/t_opts I believe that the current manual adequately explains this, but I will add a note to my TODO list for the ongoing larger manual restructuring. Closing report as already fixed; not in current master. -- Jacob From unknown Fri Sep 05 11:51:03 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Dec 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator