[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
recent argp changes
From: |
Bruno Haible |
Subject: |
recent argp changes |
Date: |
Sun, 29 Apr 2007 16:05:46 +0200 |
User-agent: |
KMail/1.5.4 |
Hi Sergey,
> I have made some changes to argp testsuite. Could you please re-run
> the test on NetBSD?
Did that, and also on a few other systems. There are now three problems:
1) A compilation warning when using "gcc -Wall":
test-argp.c: In function `main':
test-argp.c:458: warning: implicit declaration of function `set_program_name'
This is because you removed the #include "progname.h" that I added on
2007-03-03.
2) Test failure due to invalid options passed to "diff".
On AIX 4.3.2:
PASS: test-argp
diff: 0653-821 illegal option -- p
diff: 0653-821 illegal option -- u
Usage: diff [-bcitw] [[-C Lines|-D String|-e|-f|-n]|[-h]] File1 File2
diff [-bcilrstw] [[-C Lines|-e|-f|-n]|[-h]] [-S File] Directory1
Directory2
diff: 0653-821 illegal option -- p
diff: 0653-821 illegal option -- u
Usage: diff [-bcitw] [[-C Lines|-D String|-e|-f|-n]|[-h]] File1 File2
diff [-bcilrstw] [[-C Lines|-e|-f|-n]|[-h]] [-S File] Directory1
Directory2
diff: 0653-821 illegal option -- p
diff: 0653-821 illegal option -- u
Usage: diff [-bcitw] [[-C Lines|-D String|-e|-f|-n]|[-h]] File1 File2
diff [-bcilrstw] [[-C Lines|-e|-f|-n]|[-h]] [-S File] Directory1
Directory2
FAIL: test-argp-2.sh
On HP-UX 11:
PASS: test-argp
diff: illegal option -- p
usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
diff [-C n ] [ -bcefhintw ] file1 file2
diff [ -D string ] [ -biw ] file1 file2
diff: illegal option -- p
usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
diff [-C n ] [ -bcefhintw ] file1 file2
diff [ -D string ] [ -biw ] file1 file2
diff: illegal option -- p
usage: diff [ -C n ] [ -S name ] [ -bcefhilnrstw ] dir1 dir2
diff [-C n ] [ -bcefhintw ] file1 file2
diff [ -D string ] [ -biw ] file1 file2
FAIL: test-argp-2.sh
You can see in POSIX <http://www.opengroup.org/susv3xcu/diff.html> that
the "diff -c" command that was in test-argp-2.sh is portable; however the
command "diff -pu" that you put there today is not portable.
3) Test suite failure on many platforms.
=========================== on glibc 2.3.6 =============================
PASS: test-argp
--- argp.22371 Sun Apr 29 14:27:09 2007
+++ - Thu Jan 1 01:00:00 1970
@@ -1,4 +1,4 @@
-Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
- [--input=FILE] [--verbose] [--cantiga] [--sonet] [--option]
- [--optional[=ARG]] [--limerick] [--poem] [--help] [--usage]
+Usage: test-argp [-tCSvOpl?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+ [--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
+ [--optional[=ARG]] [--poem] [--limerick] [--help] [--usage]
[--version] ARGS...
--- argp.22371 Sun Apr 29 14:27:09 2007
+++ - Thu Jan 1 01:00:00 1970
@@ -1,3 +1,4 @@
-Usage: test-argp [-tvO?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
-[--input=FILE] [--verbose] [--option] [--optional[=ARG]] [--help] [--usage]
-[--version] ARGS...
+Usage: test-argp [-tCSvOpl?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+[--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
+[--optional[=ARG]] [--poem] [--limerick] [--help] [--usage] [--version]
+ARGS...
--- argp.22371 Sun Apr 29 14:27:09 2007
+++ - Thu Jan 1 01:00:00 1970
@@ -5,12 +5,12 @@ documentation string
-t, --test
Option Group 1
- -f, --file=FILE, --input=FILE Option with a mandatory argument
- -v, --verbose Simple option without arguments
Option Group 1.1
-C, --cantiga create a cantiga
-S, --sonet create a sonet
+ -f, --file=FILE, --input=FILE Option with a mandatory argument
+ -v, --verbose Simple option without arguments
Option Group 2
-O, --option An option
@@ -18,13 +18,13 @@ documentation string
-o, --optional[=ARG] Option with an optional argument. ARG is one of
the following:
+ Option Group 2.1
+ -p, --poem create a poem
+ -l, --limerick create a limerick
+
many many units
one one unit
two two units
-
- Option Group 2.1
- -l, --limerick create a limerick
- -p, --poem create a poem
-?, --help give this help list
--usage give a short usage message
FAIL: test-argp-2.sh
================================= on NetBSD 3.0 ================================
PASS: test-argp
--- argp.909 2007-04-29 14:38:47.000000000 +0200
+++ - 2007-04-29 14:38:47.000000000 +0200
@@ -1,4 +1,4 @@
-Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
- [--input=FILE] [--verbose] [--cantiga] [--sonet] [--option]
- [--optional[=ARG]] [--limerick] [--poem] [--help] [--usage]
- [--version] ARGS...
+Usage: test-argp [-tCSvOpl?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+ [--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
+ [--optional[=ARG]] [--poem] [--limerick] [--help] [--version]
+ [--usage] ARGS...
--- argp.909 2007-04-29 14:38:47.000000000 +0200
+++ - 2007-04-29 14:38:47.000000000 +0200
@@ -1,3 +1,4 @@
-Usage: test-argp [-tvO?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
-[--input=FILE] [--verbose] [--option] [--optional[=ARG]] [--help] [--usage]
-[--version] ARGS...
+Usage: test-argp [-tCSvOpl?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+[--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
+[--optional[=ARG]] [--poem] [--limerick] [--help] [--version] [--usage]
+ARGS...
--- argp.909 2007-04-29 14:38:47.000000000 +0200
+++ - 2007-04-29 14:38:47.000000000 +0200
@@ -5,12 +5,12 @@ documentation string
-t, --test
Option Group 1
- -f, --file=FILE, --input=FILE Option with a mandatory argument
- -v, --verbose Simple option without arguments
Option Group 1.1
-C, --cantiga create a cantiga
-S, --sonet create a sonet
+ -f, --file=FILE, --input=FILE Option with a mandatory argument
+ -v, --verbose Simple option without arguments
Option Group 2
-O, --option An option
@@ -18,17 +18,17 @@ documentation string
-o, --optional[=ARG] Option with an optional argument. ARG is one of
the following:
+ Option Group 2.1
+ -p, --poem create a poem
+ -l, --limerick create a limerick
+
many many units
one one unit
two two units
- Option Group 2.1
- -l, --limerick create a limerick
- -p, --poem create a poem
-
-?, --help give this help list
- --usage give a short usage message
-V, --version print program version
+ --usage give a short usage message
Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
FAIL: test-argp-2.sh
================================= on IRIX 6.5 ==============================
PASS: test-argp
diff: conflicting specifications of output style
--- argp.329691 Sun Apr 29 15:00:17 2007
+++ Standard Input Sun Apr 29 15:21:57 2007
@@ -1,4 +1,4 @@
-Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
- [--input=FILE] [--verbose] [--cantiga] [--sonet] [--option]
- [--optional[=ARG]] [--limerick] [--poem] [--help] [--usage]
+Usage: test-argp [-tCSvplO?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+ [--sonet] [--file=FILE] [--input=FILE] [--verbose] [--poem]
+ [--limerick] [--option] [--optional[=ARG]] [--help] [--usage]
[--version] ARGS...
diff: conflicting specifications of output style
--- argp.329691 Sun Apr 29 15:00:17 2007
+++ Standard Input Sun Apr 29 15:21:57 2007
@@ -1,3 +1,3 @@
-Usage: test-argp [-tvO?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
-[--input=FILE] [--verbose] [--option] [--optional[=ARG]] [--help] [--usage]
-[--version] ARGS...
+Usage: test-argp [-tCSvplO?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+[--sonet] [--file=FILE] [--input=FILE] [--verbose] [--poem] [--limerick]
+[--option] [--optional[=ARG]] [--help] [--usage] [--version] ARGS...
diff: conflicting specifications of output style
--- argp.329691 Sun Apr 29 15:00:17 2007
+++ Standard Input Sun Apr 29 15:21:57 2007
@@ -4,15 +4,19 @@ documentation string
Main options
-t, --test
+ Option Group 1.1
+ -C, --cantiga create a cantiga
+
Option Group 1
+ -S, --sonet create a sonet
-f, --file=FILE, --input=FILE Option with a mandatory argument
-v, --verbose Simple option without arguments
- Option Group 1.1
- -C, --cantiga create a cantiga
- -S, --sonet create a sonet
+ Option Group 2.1
+ -p, --poem create a poem
Option Group 2
+ -l, --limerick create a limerick
-O, --option An option
-o, --optional[=ARG] Option with an optional argument. ARG is one of
@@ -21,10 +25,6 @@ documentation string
many many units
one one unit
two two units
-
- Option Group 2.1
- -l, --limerick create a limerick
- -p, --poem create a poem
-?, --help give this help list
--usage give a short usage message
FAIL: test-argp-2.sh
================================= on OSF/1 5.1 ================================
PASS: test-argp
--- argp.258517 Sun Apr 29 14:56:16 2007
+++ - Sun Apr 29 14:48:38 2007
@@ -1,4 +1,4 @@
-Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
- [--input=FILE] [--verbose] [--cantiga] [--sonet] [--option]
+Usage: test-argp [-tCSvOlp?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+ [--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
[--optional[=ARG]] [--limerick] [--poem] [--help] [--usage]
[--version] ARGS...
--- argp.258517 Sun Apr 29 14:56:16 2007
+++ - Sun Apr 29 14:48:38 2007
@@ -1,3 +1,4 @@
-Usage: test-argp [-tvO?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
-[--input=FILE] [--verbose] [--option] [--optional[=ARG]] [--help] [--usage]
-[--version] ARGS...
+Usage: test-argp [-tCSvOlp?V] [-f FILE] [-o[ARG]] [--test] [--cantiga]
+[--sonet] [--file=FILE] [--input=FILE] [--verbose] [--option]
+[--optional[=ARG]] [--limerick] [--poem] [--help] [--usage] [--version]
+ARGS...
--- argp.258517 Sun Apr 29 14:56:16 2007
+++ - Sun Apr 29 14:48:38 2007
@@ -4,13 +4,13 @@ documentation string
Main options
-t, --test
- Option Group 1
- -f, --file=FILE, --input=FILE Option with a mandatory argument
- -v, --verbose Simple option without arguments
-
Option Group 1.1
-C, --cantiga create a cantiga
+
+ Option Group 1
-S, --sonet create a sonet
+ -f, --file=FILE, --input=FILE Option with a mandatory argument
+ -v, --verbose Simple option without arguments
Option Group 2
-O, --option An option
@@ -18,13 +18,17 @@ documentation string
-o, --optional[=ARG] Option with an optional argument. ARG is one of
the following:
- many many units
+ -l, --limerick create a limerick
+
one one unit
- two two units
- Option Group 2.1
- -l, --limerick create a limerick
-p, --poem create a poem
+
+ many many units
+
+ Option Group 2.1
+
+ two two units
-?, --help give this help list
--usage give a short usage message
FAIL: test-argp-2.sh
====================================== on Solaris 9 ============================
PASS: test-argp
--- argp.325 Sun Apr 29 14:55:44 2007
+++ - Sun Apr 29 14:55:42 2007
@@ -1,3 +1,3 @@
-Usage: test-argp [-tvO?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
-[--input=FILE] [--verbose] [--option] [--optional[=ARG]] [--help] [--usage]
-[--version] ARGS...
+Usage: test-argp [-tvCSOlp?V] [-f FILE] [-o[ARG]] [--test] [--file=FILE]
+[--input=FILE] [--verbose] [--cantiga] [--sonet] [--option] [--optional[=ARG]]
+[--limerick] [--poem] [--help] [--usage] [--version] ARGS...
FAIL: test-argp-2.sh
Bruno
- recent argp changes,
Bruno Haible <=