X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT480-hex-escaping.sh;h=28564c3c9da2d8c308940865896363e9a3fda5ef;hp=86cf37292d8561b2725fe2594b0240e1c78d511f;hb=a863de1e43ee34f6f5794a2759fdceb287e851aa;hpb=1ec634461ea25d87cc16dbeb1318f8e30a07c9f1 diff --git a/test/T480-hex-escaping.sh b/test/T480-hex-escaping.sh index 86cf3729..28564c3c 100755 --- a/test/T480-hex-escaping.sh +++ b/test/T480-hex-escaping.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash test_description="hex encoding and decoding" -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 test_begin_subtest "round trip" -find $TEST_DIRECTORY/corpus -type f -print | sort | xargs cat > EXPECTED +find $TEST_DIRECTORY/corpora/default -type f -print | sort | xargs cat > EXPECTED $TEST_DIRECTORY/hex-xcode --direction=encode < EXPECTED | $TEST_DIRECTORY/hex-xcode --direction=decode > OUTPUT test_expect_equal_file EXPECTED OUTPUT @@ -25,7 +25,7 @@ $TEST_DIRECTORY/hex-xcode --direction=decode < EXPECTED.$test_count |\ test_expect_equal_file EXPECTED.$test_count OUTPUT.$test_count test_begin_subtest "round trip (in-place)" -find $TEST_DIRECTORY/corpus -type f -print | sort | xargs cat > EXPECTED +find $TEST_DIRECTORY/corpora/default -type f -print | sort | xargs cat > EXPECTED $TEST_DIRECTORY/hex-xcode --in-place --direction=encode < EXPECTED |\ $TEST_DIRECTORY/hex-xcode --in-place --direction=decode > OUTPUT test_expect_equal_file EXPECTED OUTPUT