1# This file is part of xenv -*- autotest -*- 2# Copyright (C) 2021 Sergey Poznyakoff 3# 4# Xenv is free software; you can redistribute it and/or modify it 5# under the terms of the GNU General Public License as published by the 6# Free Software Foundation; either version 3 of the License, or (at your 7# option) any later version. 8# 9# Xenv is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License along 15# with xenv. If not, see <http://www.gnu.org/licenses/>. */ 16 17AT_SETUP([Use Alternate Value]) 18AT_DATA([input], 19[${INCIPIAT+Dolorem }ipsum ${OBIECTUM:+dolor} sit amet, consectetur adipiscing elit, 20]) 21 22AT_CHECK([ 23unset INCIPIAT OBIECTUM 24xenv input 25], 26[0], 27[ipsum sit amet, consectetur adipiscing elit, 28]) 29 30AT_CHECK([ 31INCIPIAT= 32OBIECTUM= 33export INCIPIAT OBIECTUM 34xenv input 35], 36[0], 37[Dolorem ipsum sit amet, consectetur adipiscing elit, 38]) 39 40AT_CHECK([ 41INCIPIAT= 42OBIECTUM=sic 43export INCIPIAT OBIECTUM 44xenv input 45], 46[0], 47[Dolorem ipsum dolor sit amet, consectetur adipiscing elit, 48]) 49 50AT_CLEANUP 51