From 56610b06696a2b8846f4703768928c41e0100214 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Mon, 31 Dec 2018 14:40:20 +0100 Subject: [PATCH] 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 --- Makefile.am | 2 ++ tests/42-export-new.sh | 7 +++++++ tests/42-export-new.stdout | 1 + 3 files changed, 10 insertions(+) create mode 100644 tests/42-export-new.sh create mode 100644 tests/42-export-new.stdout diff --git a/Makefile.am b/Makefile.am index dc57669..b419d0c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 \ diff --git a/tests/42-export-new.sh b/tests/42-export-new.sh new file mode 100644 index 0000000..c3a8210 --- /dev/null +++ b/tests/42-export-new.sh @@ -0,0 +1,7 @@ +export V + +if [ -n "$V" ]; then + echo VEE +else + echo no VEE +fi diff --git a/tests/42-export-new.stdout b/tests/42-export-new.stdout new file mode 100644 index 0000000..b09af09 --- /dev/null +++ b/tests/42-export-new.stdout @@ -0,0 +1 @@ +no VEE