forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
brp-remove-la-files: Remove symlinks, too
As we check for file contents delete symlink before looking at regular files. Resolves: rpm-software-management#3304
- Loading branch information
Showing
3 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# rpmbrp.at: rpm build root policy scripts tests | ||
|
||
AT_BANNER([RPM build root policy scripts]) | ||
|
||
# ------------------------------ | ||
# Check brp-remove-la-files | ||
AT_SETUP([brp-remove-la-files]) | ||
AT_KEYWORDS([build brp]) | ||
RPMTEST_CHECK([ | ||
TD=/tmp/brp-remove-la-files | ||
|
||
runroot_other rm -rf $TD | ||
runroot_other mkdir -p $TD | ||
runroot_other echo ".la - a libtool library file" > $TD/test1.la | ||
runroot_other echo ".la - a not libtool library file" > $TD/test2.la | ||
runroot_other echo "other file" > $TD/test.txt | ||
runroot_other ln -s test1.la $TD/test.la | ||
runroot_other ln -s test2.la $TD/testfalse.la | ||
runroot_other --setenv RPM_BUILD_ROOT $TD ${RPM_CONFIGDIR_PATH}/brp-remove-la-files | ||
runroot_other ls -1 $TD/* | ||
], | ||
[0], | ||
[/tmp/brp-remove-la-files/test.txt | ||
/tmp/brp-remove-la-files/test2.la | ||
/tmp/brp-remove-la-files/testfalse.la | ||
], | ||
[ignore]) | ||
RPMTEST_CLEANUP |