[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, egtests, updated. gawk-4.1.0-4278-g5838b92
From: |
Antonio Giovanni Colombo |
Subject: |
[SCM] gawk branch, egtests, updated. gawk-4.1.0-4278-g5838b92 |
Date: |
Wed, 19 May 2021 14:29:04 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, egtests has been updated
via 5838b925a0e9a448d02e754168db28e18c0e2b9d (commit)
from 26ac3b0e5d9b3f399f916e4de8e9cd930e12c4b1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=5838b925a0e9a448d02e754168db28e18c0e2b9d
commit 5838b925a0e9a448d02e754168db28e18c0e2b9d
Author: Antonio Giovanni Colombo <azc100@gmail.com>
Date: Wed May 19 20:28:31 2021 +0200
prepared the initial info.txt documentation file
diff --git a/egtests/ChangeLog b/egtests/ChangeLog
index d87220f..1eb1763 100644
--- a/egtests/ChangeLog
+++ b/egtests/ChangeLog
@@ -1,4 +1,8 @@
-2021-04-17 Antonio Giovanni Colombo <azc100@gmail.com>
+2021-05-19 Antonio Giovanni Colombo <azc100@gmail.com>
+ * info.txt: Updated.
+ * info.html: Updated.
+
+2021-05-17 Antonio Giovanni Colombo <azc100@gmail.com>
* extracten: Updated.
* extractit: Updated.
diff --git a/egtests/info.html b/egtests/info.html
index 2c8ba84..5817775 100644
--- a/egtests/info.html
+++ b/egtests/info.html
@@ -1,3 +1,93 @@
-<div dir="ltr"><div class="gmail_default"
style="font-family:monospace,monospace;font-size:large">Hi Arnold,<br><br>I
just pushed an update to the Italian "<a
href="http://gawktexi.in">gawktexi.in</a>".<br>Please,
"propagate" it.<br><br>I have packed in a ZIP file all the scripts
used<br>to test all the 66 examples/files that can be<br>extracted from the
Gawk book.<br><br>To use it you should unzip the file in a
test<br>"bin" directory, and change a few variables inside<br>the
"gawkeg" script.<br><br>At the beginning of the "gawkeg"
script there is<br>an indication of where are the variables to be<br>changed,
basically the name of the test "bin"<br>directory where the script
are ($b) the name of<br>where to put the "eg" directory ($s) and the
names<br>of the directories where the "<a
href="http://gawktexi.in">gawktexi.in</a>" file<br>can be
found.<br><br>Hopefully that should be enough.<br><br>Just run:<
br>./gawkeg<br>...which defaults to "en"<br><br>or<br><br>./gawkeg
it<br><br>To see all what can be done, at the "gawkeg"<br>prompt just
type:<br><br>h<ENTER><br><br>...for the "d" option (differences
between English<br>and Italian script) to work, the "other"
directory<br>must exist.<br><br>I tried to run the thing on another PC
(under<br>WSL), from the "distribution" and changing the<br>test
directories, and it seems to work.<br><br>Better not to use it with the
"root" user, some<br>tests would give different results (e.g.
the<br>"readable" one).<br><br>The script uses a couple of programs,
"scegli" and<br>"extract", of which only the executables
are in the<br>ZIP file. If it is of interest, you can have the C<br>source
files, but they are a mess: the two<br>programs have been written for a
different set of<br>tasks, and should be rewritten, but since
they<br>work...<br><br>The English
tests should all run fine. The Italian<br>ones do run here, but only with the
just updated<br>Italian "<a
href="http://gawktexi.in">gawktexi.in</a>".<br><br>Please let me know if
you are able to use the<br>script, and if you have remarks, questions,
etc.,<br>they are welcome.<br><br>All the best, Antonio<br><br>PS I did not
bother to put licenses, but<br>everything can be used/modified freely,
consider<br>it with the same license as gawk.</div><div class="gmail_default"
style="font-family:monospace,monospace;font-size:large">-- <br><div dir="ltr"
class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div
dir="ltr"><div><div dir="ltr"><div><font size="4" face="monospace, monospace">Â
 /||\  | Antonio Colombo</font></div><font size="4" face="monospace,
monospace">Â / ||Â \Â Â | Â <a href="mailto:azc100@gmail.com"
target="_blank">azc100@gmail.com</a>Â Â </font><div><font size="4"
face="monospace, monospace">Â /Â ()Â \Â |Â <a href="mailto:antonio@geekcorp.
com" target="_blank">antonio@geekcorp.com</a>Â Â <br>(___||___) |Â Â <a
href="mailto:azc10@yahoo.com"
target="_blank">azc10@yahoo.com</a></font></div></div></div></div></div></div></div></div></div><br>==================<br><br>Looking
into the example programs, I wonder:<br><br>Should gettime.awk be renamed
getlocaltime.awk<br>(or viceversa)? When checking alarm.awk, it<br>speaks of
getlocaltime, but then you have<br>to use "gettime.awk"
instead.<br><br>A few other gawk scripts have names slightly<br>different from
the name in the "eg/whatever"<br>directory.<br><br>bits2str.awk is
actually also contained in<br>testbits.awk, contrary to the philosophy
of<br>the "modularity". testbits.awk should not<br>contain it (I
think). And the bits2str.awk<br>instructions are contained twice in <a
href="http://gawktexi.in">gawktexi.in</a>,<br>once for themselves, and once in
testbits.awk.<br>I wonder if something should be changed here.<br><br>To get
the test for c
ut.awk working, I had to<br>put "-f getopt.awk" BEFORE "-f
cut.awk", not really<br>sure why. I wonder if it should be
noted<br>somewhere. It is the case also for other "users"<br>of
"getopt".<br><br>The transfile.awk example is not extracted.<br>I
wonder if it should or not...<br>To make the example work, I had to change in
transfile.awk<br>FILENAME != _oldfilename @{<br>to<br>FILENAME != _oldfilename
&& _filename_ != FILENAME @{<br>..or beginfile() would be invoked more
than necessary<br><br>On a detail, for consistency with
_filename_,<br>_oldfilename should be
called<br>_oldfilename_<br><br>histsort.awk should be changed to use the
input<br>records only AFTER the initial number,<br>otherwise all entries are
different by definition.<br>I found no way to get history without the
number<br>of the command, so I just cut it out for the
test.<br><br>noassign.awk does not work (at least for me).<br>ARGC and ARGV
give you only the input file
s,<br>not the real ARGC and ARGV passed by the Operating<br>System to
gawk.<br>Variables are not seen at all, so they are always<br>used inside the
program (unless I missed something).<br>If one acts on
PROCINFO["argc"] and PROCINFO["argv"],<br>one sees
"everything", as evidenced modifying noassign.awk<br>BEGIN {<br>Â Â
if (No_command_assign) {<br>Â Â Â Â for ( j in PROCINFO["argv"] )
{ print "#",j,PROCINFO["argv"][j],"#"; }<br>Â Â
  disable_assigns(ARGC, ARGV)<br>  }<br>}<br>I suspect the real ARGC
and ARGV would not be changed.<br>Also, noassign.awk does not do anything about
the "-v"<br>before the assignment. I wonder what to
do.<br><br>ord.awk is ok, but it does not manage ASCII above 127<br>(European
accented letter, e.g.). Not sure if it should<br>be modified.<br><br>In pi.awk
it should be noted inside the program that<br>it needs intdiv0.awk (as it is
noted in the text).<br><br>pro
cess_array.awk is in processarray.awk:<br>maybe the name should be the
same.<br><br>I am not sure that the output of shell_quote is OK<br>(too many
"'"s and
"""s).<br><br>========================<br><br>In the last update
to gawktexi,in, where you explain "ls",<br>an "old" file
should probably be present, to show the<br>difference in field 8, when the last
modification<br>date goes back to 6 months or more:<br>-rwxrwxr-x 1 azc10 azc10
 1427 apr 19 16:56 gawkdiff<br>-rwxrwxr-x 1 azc10 azc10   381 apr 13 Â
2020 fs_set.awk<br>..."apr" is in Italian, "Jun" would be
"giu"<br><br>========================</div></div>
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>/d/cache/gawk/egtests/info.txt.html</title>
+<meta name="Generator" content="Vim/8.2">
+<meta name="plugin-version" content="vim8.1_v2">
+<meta name="syntax" content="none">
+<meta name="settings"
content="use_css,pre_wrap,no_foldcolumn,prevent_copy=,use_input_for_pc=fallback">
+<meta name="colorscheme" content="ron">
+<style>
+<!--
+pre { white-space: pre-wrap; font-family: monospace; color: #00ffff;
background-color: #000000; }
+body { font-family: monospace; color: #00ffff; background-color: #000000; }
+* { font-size: 1em; }
+-->
+</style>
+</head>
+<body>
+<pre id='vimCodeElement'>
+* egtest
---00000000000066ee9105b19e7629--
\ No newline at end of file
+A script to test the programs/scripts included
+in the Gawk book (both in the English original
+and in the Italian translation).
+No license is imbedded in the scripts, the
+license of Gawk is implied.
+
+The script should work when executed in the
+distribution directory in which it is contained.
+The position of its input (the gawktexi.in files
+that are in the distribution doc and doc/it
+directories) is supposed to be at the same level
+of the egtests directory, i.e.:
+
+egtests
+doc
+doc/it
+
+The script has one possible parameter, namely "it"
+for Italian. Every other parameter (or no parameters)
+will default to "en" for English.
+
+egtest [it]
+
+The script extracts both the original English and
+the Italian programs/scripts from the Gawk book.
+
+Only the programs/scripta in the selected language
+are tested, but it is possible to compare each of
+them with the corresponding program/script in the
+other language.
+
+All the testing is done in a "tmp" directory
+created in egtests, which is removed at the exit
+from the egtest script.
+The script does NOT change any contents in the
+egtests directory during the test.
+
+The gawkeg script needs a number of pieces of
+software, in order to test gawk extensions, etc.
+Namely:
+[to be completed]
+
+
+After calling egtest, the following prompt
+is visualized:
+
+===> Which test(s)? [1-nn,q,h,...]
+
+Typing h<Enter>
+
+...a list of the available options inside egtest
+is shown:
+
+Choose by number one or more tests to try
+e.g.: 1-5,14,26-30
+If a suffix is given, e.g.: 1e or: h
+(alone or after a list of numbers)
+h -- will just print this help text
+d -- will invoke vimdiff for a test file in both languages
+b -- will invoke vim for a test file
+e -- will invoke vim for a test file
+w -- will tell where a module is
+q,Q,quit,x,ZZ,zz -- will exit from egtest
+Everything else just has no effect
+
+Please report bugs, problems, comments to:
+Antonio Colombo azc100(at)gmail(dot)com
+</pre>
+</body>
+</html>
+<!-- vim: set foldmethod=manual : -->
diff --git a/egtests/info.txt b/egtests/info.txt
index dc735f5..041c179 100644
--- a/egtests/info.txt
+++ b/egtests/info.txt
@@ -1,163 +1,69 @@
-Hi Arnold,
-
-I just pushed an update to the Italian "gawktexi.in".
-Please, "propagate" it.
-
-I have packed in a ZIP file all the scripts used
-to test all the 66 examples/files that can be
-extracted from the Gawk book.
-
-To use it you should unzip the file in a test
-"bin" directory, and change a few variables inside
-the "gawkeg" script.
-
-At the beginning of the "gawkeg" script there is
-an indication of where are the variables to be
-changed, basically the name of the test "bin"
-directory where the script are ($b) the name of
-where to put the "eg" directory ($s) and the names
-of the directories where the "gawktexi.in" file
-can be found.
-
-Hopefully that should be enough.
-
-Just run:
-./gawkeg
-...which defaults to "en"
-
-or
-
-./gawkeg it
-
-To see all what can be done, at the "gawkeg"
-prompt just type:
-
-h<ENTER>
-
-...for the "d" option (differences between English
-and Italian script) to work, the "other" directory
-must exist.
-
-I tried to run the thing on another PC (under
-WSL), from the "distribution" and changing the
-test directories, and it seems to work.
-
-Better not to use it with the "root" user, some
-tests would give different results (e.g. the
-"readable" one).
-
-The script uses a couple of programs, "scegli" and
-"extract", of which only the executables are in the
-ZIP file. If it is of interest, you can have the C
-source files, but they are a mess: the two
-programs have been written for a different set of
-tasks, and should be rewritten, but since they
-work...
-
-The English tests should all run fine. The Italian
-ones do run here, but only with the just updated
-Italian "gawktexi.in".
-
-Please let me know if you are able to use the
-script, and if you have remarks, questions, etc.,
-they are welcome.
-
-All the best, Antonio
-
-PS I did not bother to put licenses, but
-everything can be used/modified freely, consider
-it with the same license as gawk.
---
- /||\ | Antonio Colombo
- / || \ | azc100@gmail.com
- / () \ | antonio@geekcorp.com
-(___||___) | azc10@yahoo.com
-
-==================
-
-Looking into the example programs, I wonder:
-
-Should gettime.awk be renamed getlocaltime.awk
-(or viceversa)? When checking alarm.awk, it
-speaks of getlocaltime, but then you have
-to use "gettime.awk" instead.
-
-A few other gawk scripts have names slightly
-different from the name in the "eg/whatever"
-directory.
-
-bits2str.awk is actually also contained in
-testbits.awk, contrary to the philosophy of
-the "modularity". testbits.awk should not
-contain it (I think). And the bits2str.awk
-instructions are contained twice in gawktexi.in,
-once for themselves, and once in testbits.awk.
-I wonder if something should be changed here.
-
-To get the test for cut.awk working, I had to
-put "-f getopt.awk" BEFORE "-f cut.awk", not really
-sure why. I wonder if it should be noted
-somewhere. It is the case also for other "users"
-of "getopt".
-
-The transfile.awk example is not extracted.
-I wonder if it should or not...
-To make the example work, I had to change in transfile.awk
-FILENAME != _oldfilename @{
-to
-FILENAME != _oldfilename && _filename_ != FILENAME @{
-..or beginfile() would be invoked more than necessary
-
-On a detail, for consistency with _filename_,
-_oldfilename should be called
-_oldfilename_
-
-histsort.awk should be changed to use the input
-records only AFTER the initial number,
-otherwise all entries are different by definition.
-I found no way to get history without the number
-of the command, so I just cut it out for the test.
-
-noassign.awk does not work (at least for me).
-ARGC and ARGV give you only the input files,
-not the real ARGC and ARGV passed by the Operating
-System to gawk.
-Variables are not seen at all, so they are always
-used inside the program (unless I missed something).
-If one acts on PROCINFO["argc"] and PROCINFO["argv"],
-one sees "everything", as evidenced modifying noassign.awk
-BEGIN {
- if (No_command_assign) {
- for ( j in PROCINFO["argv"] ) { print
-"#",j,PROCINFO["argv"][j],"#"; }
- disable_assigns(ARGC, ARGV)
- }
-}
-I suspect the real ARGC and ARGV would not be changed.
-Also, noassign.awk does not do anything about the "-v"
-before the assignment. I wonder what to do.
-
-ord.awk is ok, but it does not manage ASCII above 127
-(European accented letter, e.g.). Not sure if it should
-be modified.
-
-In pi.awk it should be noted inside the program that
-it needs intdiv0.awk (as it is noted in the text).
-
-process_array.awk is in processarray.awk:
-maybe the name should be the same.
-
-I am not sure that the output of shell_quote is OK
-(too many "'"s and """s).
-
-========================
-
-In the last update to gawktexi,in, where you explain "ls",
-an "old" file should probably be present, to show the
-difference in field 8, when the last modification
-date goes back to 6 months or more:
--rwxrwxr-x 1 azc10 azc10 1427 apr 19 16:56 gawkdiff
--rwxrwxr-x 1 azc10 azc10 381 apr 13 2020 fs_set.awk
-..."apr" is in Italian, "Jun" would be "giu"
-
-========================
+* egtest
+
+A script to test the programs/scripts included
+in the Gawk book (both in the English original
+and in the Italian translation).
+No license is imbedded in the scripts, the
+license of Gawk is implied.
+
+The script should work when executed in the
+distribution directory in which it is contained.
+The position of its input (the gawktexi.in files
+that are in the distribution doc and doc/it
+directories) is supposed to be at the same level
+of the egtests directory, i.e.:
+
+egtests
+doc
+doc/it
+
+The script has one possible parameter, namely "it"
+for Italian. Every other parameter (or no parameters)
+will default to "en" for English.
+
+egtest [it]
+
+The script extracts both the original English and
+the Italian programs/scripts from the Gawk book.
+
+Only the programs/scripta in the selected language
+are tested, but it is possible to compare each of
+them with the corresponding program/script in the
+other language.
+
+All the testing is done in a "tmp" directory
+created in egtests, which is removed at the exit
+from the egtest script.
+The script does NOT change any contents in the
+egtests directory during the test.
+
+The gawkeg script needs a number of pieces of
+software, in order to test gawk extensions, etc.
+Namely:
+[to be completed]
+
+
+After calling egtest, the following prompt
+is visualized:
+
+===> Which test(s)? [1-nn,q,h,...]
+
+Typing h<Enter>
+
+...a list of the available options inside egtest
+is shown:
+
+Choose by number one or more tests to try
+e.g.: 1-5,14,26-30
+If a suffix is given, e.g.: 1e or: h
+(alone or after a list of numbers)
+h -- will just print this help text
+d -- will invoke vimdiff for a test file in both languages
+b -- will invoke vim for a test file
+e -- will invoke vim for a test file
+w -- will tell where a module is
+q,Q,quit,x,ZZ,zz -- will exit from egtest
+Everything else just has no effect
+
+Please report bugs, problems, comments to:
+Antonio Colombo azc100(at)gmail(dot)com
-----------------------------------------------------------------------
Summary of changes:
egtests/ChangeLog | 6 +-
egtests/info.html | 94 +++++++++++++++++++++-
egtests/info.txt | 232 ++++++++++++++++--------------------------------------
3 files changed, 166 insertions(+), 166 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, egtests, updated. gawk-4.1.0-4278-g5838b92,
Antonio Giovanni Colombo <=