mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
tests/data: Remove abssymlink.
This file causes the test ISO to be rebuilt every time. Instead of including it as a Makefile dependency, create it just before making the ISO, which has the same effect. A test in fish/ also used this file. Change it so it doesn't need it.
This commit is contained in:
@@ -33,7 +33,7 @@ rm -rf test-copy-original test-copy-copy
|
||||
|
||||
mkdir test-copy-original
|
||||
cp $srcdir/../tests/data/known* test-copy-original
|
||||
cp -P ../tests/data/abssymlink* test-copy-original
|
||||
ln -sf /nowhere test-copy-original/abssymlink
|
||||
|
||||
output=$(
|
||||
$VG guestfish -N test-copy.img=fs -m /dev/sda1 <<EOF
|
||||
|
||||
@@ -72,7 +72,6 @@ images_files_build = \
|
||||
100kallspaces \
|
||||
100krandom \
|
||||
10klines \
|
||||
abssymlink \
|
||||
blank-disk-1s.raw \
|
||||
blank-disk-1s.qcow2 \
|
||||
blank-disk-1K.raw \
|
||||
@@ -95,10 +94,12 @@ images_files = $(images_files_src) $(images_files_build)
|
||||
test.iso: $(images_files)
|
||||
rm -f $@ $@-t
|
||||
mkdir -p directory
|
||||
ln -sf /10klines abssymlink
|
||||
$(GENISOIMAGE) -J -r -graft-points \
|
||||
-o $@-t \
|
||||
$(images_files) /directory=directory
|
||||
$(images_files) /directory=directory abssymlink
|
||||
rmdir directory
|
||||
rm abssymlink
|
||||
mv $@-t $@
|
||||
|
||||
100kallzeroes:
|
||||
@@ -130,11 +131,6 @@ test.iso: $(images_files)
|
||||
done > $@-t
|
||||
mv $@-t $@
|
||||
|
||||
# XXX Make examines this file and believes that it does not exist,
|
||||
# resulting in the ISO being rebuilt every time.
|
||||
abssymlink:
|
||||
ln -sf /10klines $@
|
||||
|
||||
# Blank disk images in various sizes and formats.
|
||||
blank-disk-1s.raw:
|
||||
rm -f $@
|
||||
|
||||
Reference in New Issue
Block a user