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([$$ifset]) 18AT_DATA([input], 19[Duis aute irure dolor in reprehenderit in voluptate velit esse 20$$ifset X 21cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 22$$else 23$$ ifset Y 24... 25$$ endif 26$$ endif 27cupidatat non proident, sunt in culpa qui officia deserunt mollit 28anim id est laborum. 29]) 30 31AT_CHECK([unset X Y 32xenv input 33], 34[0], 35[Duis aute irure dolor in reprehenderit in voluptate velit esse 36cupidatat non proident, sunt in culpa qui officia deserunt mollit 37anim id est laborum. 38]) 39 40AT_CHECK([unset X 41Y=1 xenv input 42], 43[0], 44[Duis aute irure dolor in reprehenderit in voluptate velit esse 45... 46cupidatat non proident, sunt in culpa qui officia deserunt mollit 47anim id est laborum. 48]) 49 50AT_CHECK([ 51X=1 xenv input 52], 53[0], 54[Duis aute irure dolor in reprehenderit in voluptate velit esse 55cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat 56cupidatat non proident, sunt in culpa qui officia deserunt mollit 57anim id est laborum. 58]) 59 60AT_CLEANUP 61