aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-23 07:59:19 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-23 08:24:22 +0100
commitd945fe936d250877e141fce748783d4fc7d591de (patch)
tree444c722ad7ec0f62b96c1eb2a4e804998d7208b4 /test.sh
parentd7c775a7d2df82316255a42475f7a58bdd79c7ea (diff)
downloadgallery-d945fe936d250877e141fce748783d4fc7d591de.tar.gz
gallery-d945fe936d250877e141fce748783d4fc7d591de.tar.xz
gallery-d945fe936d250877e141fce748783d4fc7d591de.zip
WIP: Orphans
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test.sh b/test.sh
index 3609de4..84d4016 100755
--- a/test.sh
+++ b/test.sh
@@ -10,7 +10,7 @@ cp -ra $HOME/Pictures/Anime $input
#./gallery import $target $input
./gallery sync $target $input
./gallery thumbnail $target
-./gallery dhash $target $HOME/Projects/fiv/build/hash
+./gallery dhash $target
./gallery tag $target autotagger "DanBooru autotagger" \
< ../build-db/autotagger.tsv
@@ -23,6 +23,10 @@ echo '{"sha1":"d53fc82162fd19a6e7b92b401b08b7505dbf3dfd"}' | \
curl http://localhost:8080/api/info -X POST --data-binary @-
echo '{"sha1":"9539d9895ab8c25d76c321b23b8a327801a496bb"}' | \
curl http://localhost:8080/api/similar -X POST --data-binary @-
+echo '{}' | \
+curl http://localhost:8080/api/duplicates -X POST --data-binary @-
+echo '{}' | \
+curl http://localhost:8080/api/orphans -X POST --data-binary @-
kill $web
wait $web