summaryrefslogtreecommitdiff
path: root/test/rcup-hostname.t
blob: b85dbb884d2ba1950ff968a85be7f5f76f700464 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  $ . "$TESTDIR/helper.sh"

Should create symlinks for files and directories in the hostname

  $ touch .dotfiles/example
  > mkdir .dotfiles/host-awesome_host/
  > touch .dotfiles/host-awesome_host/example2
  > mkdir .dotfiles/host-$(hostname)/
  > touch .dotfiles/host-$(hostname)/example3

  $ rcup -B awesome_host > /dev/null

  $ assert_linked "$HOME/.example" "$HOME/.dotfiles/example"
  $ assert_linked "$HOME/.example2" "$HOME/.dotfiles/host-awesome_host/example2"