*** empty log message ***
[coreutils.git] / tests / envvar-check
blobbfc6c79c5c906fb247917727f208545b1a67fa13
1 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
2   as_unset=unset
3 else
4   as_unset=false
5 fi
7 # FIXME-someday: The following is begging to be factored, ...
9 $as_unset VERSION_CONTROL SIMPLE_BACKUP_SUFFIX
10 $as_unset BLOCK_SIZE DU_BLOCK_SIZE DF_BLOCK_SIZE LS_BLOCK_SIZE
12 if test "${VERSION_CONTROL+set}" = set; then
13   echo "$0: the VERSION_CONTROL envvar is set --" \
14     ' unset it and rerun this test' >&2
15   envvar_check_fail=1
18 if test "${SIMPLE_BACKUP_SUFFIX+set}" = set; then
19   echo "$0: the SIMPLE_BACKUP_SUFFIX envvar is set --" \
20     ' unset it and rerun this test' >&2
21     >&2
22   envvar_check_fail=1
25 if test "${BLOCK_SIZE+set}" = set; then
26   echo "$0: the BLOCK_SIZE envvar is set --" \
27     ' unset it and rerun this test' >&2
28     >&2
29   envvar_check_fail=1
32 if test "${DU_BLOCK_SIZE+set}" = set; then
33   echo "$0: the DU_BLOCK_SIZE envvar is set --" \
34     ' unset it and rerun this test' >&2
35     >&2
36   envvar_check_fail=1
39 if test "${DF_BLOCK_SIZE+set}" = set; then
40   echo "$0: the DF_BLOCK_SIZE envvar is set --" \
41     ' unset it and rerun this test' >&2
42     >&2
43   envvar_check_fail=1
46 if test "${LS_BLOCK_SIZE+set}" = set; then
47   echo "$0: the LS_BLOCK_SIZE envvar is set --" \
48     ' unset it and rerun this test' >&2
49     >&2
50   envvar_check_fail=1
53 test "$envvar_check_fail" = 1 && exit 1