Mercurial > hg > octave-kai > gnulib-hg
annotate tests/test-argp-version-etc-1.sh @ 12391:5d8d7c606ce6
test-dup2: enhance test
Ensure that dup2(cloexec_fd, target) returns an inheritable fd.
* modules/dup2-tests (Depends-on): Add cloexec.
* tests/test-dup2.c (main): Enhance test.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sat, 05 Dec 2009 06:19:01 -0700 |
parents | 0661ed228251 |
children | c2cbabec01dd |
rev | line source |
---|---|
11651
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
1 #! /bin/sh |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
2 # Test suite for argp-version-etc. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
3 # Copyright (C) 2009 Free Software Foundation, Inc. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
4 # This file is part of the GNUlib Library. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
5 # |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
6 # This program is free software: you can redistribute it and/or modify |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
7 # it under the terms of the GNU General Public License as published by |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
8 # the Free Software Foundation; either version 3 of the License, or |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
9 # (at your option) any later version. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
10 # |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
11 # This program is distributed in the hope that it will be useful, |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
14 # GNU General Public License for more details. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
15 # |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
16 # You should have received a copy of the GNU General Public License |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
18 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
19 TMP=ave-expected.tmp |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
20 LC_ALL=C |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
21 export LC_ALL |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
22 ERR=0 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
23 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
24 cat > $TMP <<EOT |
11763
6b6219b18763
Fix argp-version-etc-test module.
Simon Josefsson <simon@josefsson.org>
parents:
11651
diff
changeset
|
25 test-argp-version-etc (PROJECT) VERSION |
11824
69c3e283e8de
test-version-etc: fix CRLF portability issue
Eric Blake <ebb9@byu.net>
parents:
11822
diff
changeset
|
26 COPYRIGHT Free Software Foundation, Inc. |
11651
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
27 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
28 This is free software: you are free to change and redistribute it. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
29 There is NO WARRANTY, to the extent permitted by law. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
30 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
31 Written by Sergey Poznyakoff. |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
32 EOT |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
33 |
11763
6b6219b18763
Fix argp-version-etc-test module.
Simon Josefsson <simon@josefsson.org>
parents:
11651
diff
changeset
|
34 ./test-argp-version-etc${EXEEXT} --version | |
11824
69c3e283e8de
test-version-etc: fix CRLF portability issue
Eric Blake <ebb9@byu.net>
parents:
11822
diff
changeset
|
35 sed '1s/test-argp-version-etc (.*) .*/test-argp-version-etc (PROJECT) VERSION/ |
12318
0661ed228251
tests: avoid false negative with --with-packager
Eric Blake <ebb9@byu.net>
parents:
11824
diff
changeset
|
36 /^Packaged by/d |
0661ed228251
tests: avoid false negative with --with-packager
Eric Blake <ebb9@byu.net>
parents:
11824
diff
changeset
|
37 2,3 s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' | |
11824
69c3e283e8de
test-version-etc: fix CRLF portability issue
Eric Blake <ebb9@byu.net>
parents:
11822
diff
changeset
|
38 tr -d '\015' | |
11651
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
39 diff -c $TMP - || ERR=1 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
40 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
41 rm $TMP |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
42 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
43 exit $ERR |