diff --git a/.vscode/launch.json b/.vscode/launch.json index 00b091b..a324049 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,8 +8,8 @@ "request": "launch", "module": "plexer_cli.main", "args": [ - "--source-dir", "/tmp/plexer-cli-test", - "--destination-dir", "/tmp/plexer-cli-test-dst", + "--source-dir", "/tmp/plexer-e2e/plexer-cli-test", + "--destination-dir", "/tmp/plexer-e2e/plexer-cli-test-dst", "-vv" ], "justMyCode": true, @@ -20,8 +20,8 @@ "request": "launch", "module": "plexer_cli.main", "args": [ - "--source-dir", "/tmp/plexer-cli-test", - "--destination-dir", "/tmp/plexer-cli-test-dst", + "--source-dir", "/tmp/plexer-e2e/plexer-cli-test", + "--destination-dir", "/tmp/plexer-e2e/plexer-cli-test-dst", "--dry-run", "-vv" ], "justMyCode": true, @@ -32,8 +32,8 @@ "request": "launch", "module": "plexer_cli.main", "args": [ - "--source-dir", "/tmp/plexer-cli-test", - "--destination-dir", "/tmp/plexer-cli-test-dst", + "--source-dir", "/tmp/plexer-e2e/plexer-cli-test", + "--destination-dir", "/tmp/plexer-e2e/plexer-cli-test-dst", "--prompt=all", "--dry-run", "-vv" ], "justMyCode": true, diff --git a/tests/bootstrap/blank.mkv b/tests/bootstrap/blank.mkv new file mode 100644 index 0000000..b13512b Binary files /dev/null and b/tests/bootstrap/blank.mkv differ diff --git a/tests/bootstrap/blank.mp4 b/tests/bootstrap/blank.mp4 new file mode 100644 index 0000000..38a20cc Binary files /dev/null and b/tests/bootstrap/blank.mp4 differ diff --git a/tests/bootstrap/bootstrap_plexer_e2e.sh b/tests/bootstrap/bootstrap_plexer_e2e.sh new file mode 100755 index 0000000..f842e40 --- /dev/null +++ b/tests/bootstrap/bootstrap_plexer_e2e.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -euo pipefail +IFS=$'\n\t' + +BASE_DIR="/tmp/plexer-e2e" +SRC_MEDIA_DIR="$BASE_DIR/plexer-cli-test" +DST_MEDIA_DIR="$BASE_DIR/plexer-cli-test-dst" + +rm -rf $BASE_DIR && \ + mkdir -p $SRC_MEDIA_DIR $DST_MEDIA_DIR + +# create media dirs +mkdir $SRC_MEDIA_DIR/'Blade Runner (1982) {edition-Final Cut}' \ + $SRC_MEDIA_DIR/'Blade Runner 2049 (2017)' \ + $SRC_MEDIA_DIR/'Once Upon A Time In China And America (1997) [BluRay] [1080p] [YTS.AM]' \ + $SRC_MEDIA_DIR/The.Black.Phone.2021.1080p.WEBRip.x265-RARBG + +# generate test media files +cp tests/bootstrap/blank.mkv $SRC_MEDIA_DIR/'Blade Runner (1982) {edition-Final Cut}'/Blade.Runner.1982.Final.Cut.1080p.BluRay.x264.DTS-WiKi.mkv +cp tests/bootstrap/blank.mkv $SRC_MEDIA_DIR/'Blade Runner 2049 (2017)'/Blade.Runner.2049.1080p.BluRay.x264.BONE.mkv +cp tests/bootstrap/blank.mp4 $SRC_MEDIA_DIR/'Once Upon A Time In China And America (1997) [BluRay] [1080p] [YTS.AM]'/'Once Upon A Time In China And America (1997) [BluRay] [1080p] [YTS.AM].mp4' +cp tests/bootstrap/blank.mp4 $SRC_MEDIA_DIR/The.Black.Phone.2021.1080p.WEBRip.x265-RARBG/The.Black.Phone.2021.1080p.WEBRip.x265-RARBG.mkv