Add export test.

* tests/42-export-new.sh: New file.
* tests/42-export-new.stdout: New file.
* Makefile.am (FULL_TESTS, XFAIL_TESTS): Add 42-export-new.sh.

Co-authored-by: Timothy Sample <samplet@ngyro.com>
This commit is contained in:
Jan Nieuwenhuizen 2018-12-31 14:40:20 +01:00 committed by Timothy Sample
parent e87f351f3e
commit 56610b0669
3 changed files with 10 additions and 0 deletions

View File

@ -203,6 +203,7 @@ FULL_TESTS = \
tests/41-dot.sh \
tests/42-sh.sh \
tests/42-sh-export.sh \
tests/42-export-new.sh \
tests/50-iohere.sh \
tests/50-iohere-builtin.sh \
tests/50-redirect.sh \
@ -231,6 +232,7 @@ TESTS = $(UNIT_TESTS) $(FULL_TESTS)
XFAIL_TESTS = \
tests/20-pipe-sed.sh \
tests/42-export-new.sh \
tests/42-sh-export.sh \
tests/70-hash.sh \
tests/70-hash-hash.sh \

7
tests/42-export-new.sh Normal file
View File

@ -0,0 +1,7 @@
export V
if [ -n "$V" ]; then
echo VEE
else
echo no VEE
fi

View File

@ -0,0 +1 @@
no VEE