From: Bastian Dehn Date: Sat, 26 Sep 2026 08:12:10 +0000 (+0200) Subject: change tests albentohandy passed X-Git-Tag: v1.0.0^2~4 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=2c2cdc8051dd91a01f5da6e0978011b4dd2e3b26;p=albentohandy.git change tests albentohandy passed --- diff --git a/tests/albentohandy.bats b/tests/albentohandy.bats index 3eb6d4d..14f207a 100755 --- a/tests/albentohandy.bats +++ b/tests/albentohandy.bats @@ -3,14 +3,16 @@ setup() { bats_load_library 'bats-support' bats_load_library 'bats-assert' + mkdir --parents "build/tests/lib" mkdir --parents "build/tests/music/Alben/Artist1" + mkdir --parents "build/tests/output" + touch "build/tests/lib/vorbis.sh" echo "Alben/Artist1" > "build/tests/albumlist" echo "testfile" > "build/tests/music/Alben/Artist1/file.flac" echo "cover" > "build/tests/music/Alben/Artist1/cover.jpg" - mkdir --parents "build/tests/output" export TEST_MODE="ON" + LIB_PATH="build/tests/lib" export CONFIG_FILE="tests/test.conf" - export LIB_PATH="src/lib" export ENCODE_COUNT=0 export ENCODE_LOG="build/tests/encode.log" source src/albentohandy @@ -100,12 +102,12 @@ teardown() { # bats test_tags=albentohandy:load_library,albentohandy:options @test "failed: lib vorbis.sh not found" { - LIB_PATH="build/tests/lib" + LIB_PATH="build/tests/lib1" run main assert_failure - assert_line --index 0 "❌ ERROR: lib build/tests/lib/vorbis.sh not found" + assert_line --index 0 "❌ ERROR: lib build/tests/lib1/vorbis.sh not found" } # bats test_tags=albentohandy:load_library,albentohandy:options @@ -160,7 +162,7 @@ teardown() { run main -i "build/tests/albumlist" assert_failure - assert_line --index 0 "❌ ERROR: could not load library src/lib/vorbis.sh" + assert_line --index 0 "❌ ERROR: could not load library build/tests/lib/vorbis.sh" } # bats test_tags=albentohandy:input