aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2024-12-21 10:49:20 +0100
committerPřemysl Eric Janouch <p@janouch.name>2024-12-21 11:12:00 +0100
commit615af97043cbc822f65fa4deb361ee24a530604b (patch)
tree15710f2ce4b34c9307d93860f23af4a364c2c50a /test.sh
parent595db869e5c426f7200dd53ad97497eddb0a160f (diff)
downloadgallery-615af97043cbc822f65fa4deb361ee24a530604b.tar.gz
gallery-615af97043cbc822f65fa4deb361ee24a530604b.tar.xz
gallery-615af97043cbc822f65fa4deb361ee24a530604b.zip
Add a sync option to exclude paths by regexp
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index 2f12d07..89db5f4 100755
--- a/test.sh
+++ b/test.sh
@@ -16,6 +16,9 @@ sha1duplicate=$sha1
cp $input/Test/dhash.png \
$input/Test/multiple-paths.png
+gen -seed 15 -size 256x256 plasma:fractal \
+ $input/Test/excluded.png
+
gen -seed 20 -size 160x128 plasma:fractal \
-bordercolor transparent -border 64 \
$input/Test/transparent-wide.png
@@ -36,7 +39,7 @@ gen $input/Test/animation-small.gif \
$input/Test/video.mp4
./gallery init $target
-./gallery sync $target $input "$@"
+./gallery sync -exclude '/excluded[.]' $target $input "$@"
./gallery thumbnail $target
./gallery dhash $target
./gallery tag $target test "Test space" <<-END
@@ -47,7 +50,7 @@ END
# TODO: Test all the various possible sync transitions.
mv $input/Test $input/Plasma
-./gallery sync $target $input
+./gallery sync -exclude '/excluded[.]' $target $input
./gallery web $target :8080 &
web=$!