Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down
Binary file added tests/bootstrap/blank.mkv
Binary file not shown.
Binary file added tests/bootstrap/blank.mp4
Binary file not shown.
23 changes: 23 additions & 0 deletions tests/bootstrap/bootstrap_plexer_e2e.sh
Original file line number Diff line number Diff line change
@@ -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