diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-04-16 14:14:37 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-04-16 14:14:37 +0300 |
commit | df475ec90cee171049ed7eb2edfcbba9b4d4993f (patch) | |
tree | fd027ffc04b91374868087df15505ebabf0ce0a7 /tests/data | |
parent | 8e4c7a56150407bd99edf29f009d1014a1d61626 (diff) | |
download | rpm-df475ec90cee171049ed7eb2edfcbba9b4d4993f.tar.gz rpm-df475ec90cee171049ed7eb2edfcbba9b4d4993f.tar.bz2 rpm-df475ec90cee171049ed7eb2edfcbba9b4d4993f.zip |
Add test-cases for identical basenames within package
- One test for the normal situation where identical basenames are
not a problem, and another one where this causes a self-conflict
because of a directory symlink.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/SPECS/selfconflict.spec | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/data/SPECS/selfconflict.spec b/tests/data/SPECS/selfconflict.spec new file mode 100644 index 000000000..73794ec93 --- /dev/null +++ b/tests/data/SPECS/selfconflict.spec @@ -0,0 +1,21 @@ +Name: selfconflict +Version: 1.0 +Release: 1 +Summary: Testing file conflict behavior within package itself + +Group: Testing +License: GPL +BuildArch: noarch + +%description +%{summary} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/opt/mydir/{one,two} +echo "foo" > $RPM_BUILD_ROOT/opt/mydir/one/somefile +echo "bar" > $RPM_BUILD_ROOT/opt/mydir/two/somefile + +%files +%defattr(-,root,root,-) +/opt/mydir |