Mercurial > hg > octave-kai > gnulib-hg
annotate tests/test-argp-version-etc-1.sh @ 11651:64c83b4fa303
argp-version-etc: new module.
* lib/argp-version-etc.c: New file.
* lib/argp-version-etc.h: New file.
* modules/argp-version-etc: New file.
* modules/argp-version-etc-tests: New file.
* tests/test-argp-version-etc.c: New test.
* tests/test-argp-version-etc-1.sh: New test.
author | Sergey Poznyakoff <gray@gnu.org.ua> |
---|---|
date | Thu, 25 Jun 2009 10:42:21 +0300 |
parents | |
children | 6b6219b18763 |
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 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
25 test-argp-version-etc (dummy) 0 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
26 COPYRIGHT |
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 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
34 ./test-argp-version-etc --version | |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
35 sed '2s/Copyright (C) [0-9]\{4,4\} Free Software Foundation, Inc\./COPYRIGHT/' | |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
36 diff -c $TMP - || ERR=1 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
37 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
38 rm $TMP |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
39 |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
40 exit $ERR |
64c83b4fa303
argp-version-etc: new module.
Sergey Poznyakoff <gray@gnu.org.ua>
parents:
diff
changeset
|
41 |