summaryrefslogtreecommitdiff
path: root/t/cli_options.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cli_options.t')
-rwxr-xr-xt/cli_options.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/cli_options.t b/t/cli_options.t
index fafb6d8..0e99cd1 100755
--- a/t/cli_options.t
+++ b/t/cli_options.t
@@ -7,7 +7,7 @@
use strict;
use warnings;
-use Test::More tests => 9;
+use Test::More tests => 10;
use testutil;
@@ -82,5 +82,16 @@ local @ARGV = (
($options, $pkgs_to_delete, $pkgs_to_stow) = process_options();
is_deeply($options->{ignore}, [ qr(~\z), qr(\.#.*\z) ] => 'ignore temp files');
+#
+# Check that expansion not applied.
+#
+local @ARGV = (
+ "--target=$OUT_DIR/".'$HOME',
+ 'dummy'
+);
+make_dir("$OUT_DIR/".'$HOME');
+($options, $pkgs_to_delete, $pkgs_to_stow) = process_options();
+is($options->{target}, "$OUT_DIR/".'$HOME', 'no expansion');
+remove_dir("$OUT_DIR/".'$HOME');
# vim:ft=perl