Adam Spiers
06fdfc185f
merge unstow_orig.t into unstow.t and fix unstowing logic
...
There was a ton of duplication which is not maintainable, so refactor
everything into a single test which still covers the differences.
This in turn revealed some issues in the unstowing logic:
- We shouldn't conflict if we find a file which isn't a link or a
directory; we can just skip over it.
- Unstowing with `--dotfiles` was using the wrong variable to obtain
the package path, and as a result having to perform an unnecessary
call to `adjust_dotfile()`.
So fix those at the same time.
2024-04-07 15:47:38 +01:00
Adam Spiers
86f03d115d
t/dotfiles.t: switch to subtests
2024-04-01 22:39:32 +01:00
Adam Spiers
8c09d41054
add unit tests for adjust_dotfiles()
2024-03-31 23:52:00 +01:00
Adam Spiers
2f762e3908
Merge commit 'pullreqs/70' into dev
2024-03-31 23:41:02 +01:00
Adam Spiers
457fa98527
dotfiles.t: improve comment descriptions
2024-03-09 17:57:04 +00:00
ATuinDev
056d648d53
Add more tests for testing directories in dotfiles.t
2020-05-25 22:23:23 +02:00
Adam Spiers
6233298a91
Replace testutil::make_dir with File::Path::make_path
...
No need for a custom function here.
2019-06-28 01:02:48 +01:00
Adam Spiers
ba48fd3908
Rename $OUT_DIR to $TEST_DIR
...
This is a more accurate reflection of what it is.
2019-06-28 00:53:12 +01:00
Adam Spiers
0979a9c7bd
Change #!/usr/local/bin/perl to #!/usr/bin/perl in t/*.t
...
This doesn't really matter, since these are not executed directly, but
it's more consistent with everything else and modern systems.
2019-06-27 20:37:50 +01:00
Adam Spiers
27796720d5
Upgrade to GPL v3 and add headers to files ( #44 )
...
Following advice from maintainers@gnu.org , bring Stow in line with
other GNU projects by upgrading it from GPL v2 to v3
https://www.gnu.org/prep/maintain/html_node/Licensing-of-GNU-Packages.html#Licensing-of-GNU-Packages
as obtained in plain text and texinfo formats from
https://www.gnu.org/licenses/
and adding appropriate headers:
https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Code.html#License-Notices-for-Code
Fixes #44 : https://github.com/aspiers/stow/issues/44
2019-06-27 20:37:40 +01:00
Adam Spiers
bd4241b3e4
Make dotfiles.t executable for consistency with other tests
2019-06-25 14:30:30 +01:00
Joris Vankerschaver
182acbbb64
Special processing for dotfiles
2016-10-04 17:51:01 +01:00