From 320d5d0123b045fe922cf576d8d65e2db0517910 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Fri, 3 Jan 2020 16:07:44 -0500 Subject: Add tests for canonicalize-path --- test/tests/link-canonicalize.bash | 20 ++++++++++++++++++++ test/tests/link-no-canonicalize.bash | 23 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 test/tests/link-canonicalize.bash create mode 100644 test/tests/link-no-canonicalize.bash (limited to 'test') diff --git a/test/tests/link-canonicalize.bash b/test/tests/link-canonicalize.bash new file mode 100644 index 0000000..34015c8 --- /dev/null +++ b/test/tests/link-canonicalize.bash @@ -0,0 +1,20 @@ +test_description='linking canonicalizes path by default' +. '../test-lib.bash' + +test_expect_success 'setup' ' +echo "apple" > ${DOTFILES}/f && +ln -s dotfiles dotfiles-symlink +' + +test_expect_success 'run' ' +cat > "${DOTFILES}/${INSTALL_CONF}" < ${DOTFILES}/f && +ln -s dotfiles dotfiles-symlink +' + +test_expect_success 'run' ' +cat > "${DOTFILES}/${INSTALL_CONF}" <