tests: cleanup binary test vector files

The test4012.png test vector file that was originally used for t4012 to
check operations on binary files was later reused in other tests, making
it no longer consistent to name it after a specific test. Rename it to more
generic "test-binary-1.png".

While at it, rename test9200b to "test-binary-2.png" (even though it is
only used by t9200).

Signed-off-by: Vitaliy Ivanov <vitalivanov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Vitaliy Ivanov
2011-07-19 20:21:47 +03:00
committed by Junio C Hamano
parent d28790dc31
commit b5967f820c
8 changed files with 13 additions and 13 deletions

View File

@@ -26,13 +26,13 @@ test_expect_success 'example 1: notes to add an Acked-by line' '
' '
test_expect_success 'example 2: binary notes' ' test_expect_success 'example 2: binary notes' '
cp "$TEST_DIRECTORY"/test4012.png . && cp "$TEST_DIRECTORY"/test-binary-1.png . &&
git checkout B && git checkout B &&
blob=$(git hash-object -w test4012.png) && blob=$(git hash-object -w test-binary-1.png) &&
git notes --ref=logo add -C "$blob" && git notes --ref=logo add -C "$blob" &&
git notes --ref=logo copy B C && git notes --ref=logo copy B C &&
git notes --ref=logo show C >actual && git notes --ref=logo show C >actual &&
test_cmp test4012.png actual test_cmp test-binary-1.png actual
' '
test_done test_done

View File

@@ -12,7 +12,7 @@ test_expect_success 'prepare repository' \
'echo AIT >a && echo BIT >b && echo CIT >c && echo DIT >d && 'echo AIT >a && echo BIT >b && echo CIT >c && echo DIT >d &&
git update-index --add a b c d && git update-index --add a b c d &&
echo git >a && echo git >a &&
cat "$TEST_DIRECTORY"/test4012.png >b && cat "$TEST_DIRECTORY"/test-binary-1.png >b &&
echo git >c && echo git >c &&
cat b b >d' cat b b >d'

View File

@@ -154,7 +154,7 @@ test_expect_success "expected conflict markers" "test_cmp expect out"
test_expect_success 'binary files cannot be merged' ' test_expect_success 'binary files cannot be merged' '
test_must_fail git merge-file -p \ test_must_fail git merge-file -p \
orig.txt "$TEST_DIRECTORY"/test4012.png new1.txt 2> merge.err && orig.txt "$TEST_DIRECTORY"/test-binary-1.png new1.txt 2> merge.err &&
grep "Cannot merge binary files" merge.err grep "Cannot merge binary files" merge.err
' '

View File

@@ -6,7 +6,7 @@ test_description='ask merge-recursive to merge binary files'
test_expect_success setup ' test_expect_success setup '
cat "$TEST_DIRECTORY"/test4012.png >m && cat "$TEST_DIRECTORY"/test-binary-1.png >m &&
git add m && git add m &&
git ls-files -s | sed -e "s/ 0 / 1 /" >E1 && git ls-files -s | sed -e "s/ 0 / 1 /" >E1 &&
test_tick && test_tick &&

View File

@@ -50,8 +50,8 @@ test_expect_success \
'mkdir A B C D E F && 'mkdir A B C D E F &&
echo hello1 >A/newfile1.txt && echo hello1 >A/newfile1.txt &&
echo hello2 >B/newfile2.txt && echo hello2 >B/newfile2.txt &&
cp "$TEST_DIRECTORY"/test9200a.png C/newfile3.png && cp "$TEST_DIRECTORY"/test-binary-1.png C/newfile3.png &&
cp "$TEST_DIRECTORY"/test9200a.png D/newfile4.png && cp "$TEST_DIRECTORY"/test-binary-1.png D/newfile4.png &&
git add A/newfile1.txt && git add A/newfile1.txt &&
git add B/newfile2.txt && git add B/newfile2.txt &&
git add C/newfile3.png && git add C/newfile3.png &&
@@ -76,8 +76,8 @@ test_expect_success \
rm -f B/newfile2.txt && rm -f B/newfile2.txt &&
rm -f C/newfile3.png && rm -f C/newfile3.png &&
echo Hello5 >E/newfile5.txt && echo Hello5 >E/newfile5.txt &&
cp "$TEST_DIRECTORY"/test9200b.png D/newfile4.png && cp "$TEST_DIRECTORY"/test-binary-2.png D/newfile4.png &&
cp "$TEST_DIRECTORY"/test9200a.png F/newfile6.png && cp "$TEST_DIRECTORY"/test-binary-1.png F/newfile6.png &&
git add E/newfile5.txt && git add E/newfile5.txt &&
git add F/newfile6.png && git add F/newfile6.png &&
git commit -a -m "Test: Remove, add and update" && git commit -a -m "Test: Remove, add and update" &&
@@ -165,7 +165,7 @@ test_expect_success \
'mkdir "G g" && 'mkdir "G g" &&
echo ok then >"G g/with spaces.txt" && echo ok then >"G g/with spaces.txt" &&
git add "G g/with spaces.txt" && \ git add "G g/with spaces.txt" && \
cp "$TEST_DIRECTORY"/test9200a.png "G g/with spaces.png" && \ cp "$TEST_DIRECTORY"/test-binary-1.png "G g/with spaces.png" && \
git add "G g/with spaces.png" && git add "G g/with spaces.png" &&
git commit -a -m "With spaces" && git commit -a -m "With spaces" &&
id=$(git rev-list --max-count=1 HEAD) && id=$(git rev-list --max-count=1 HEAD) &&
@@ -177,7 +177,7 @@ test_expect_success \
test_expect_success \ test_expect_success \
'Update file with spaces in file name' \ 'Update file with spaces in file name' \
'echo Ok then >>"G g/with spaces.txt" && 'echo Ok then >>"G g/with spaces.txt" &&
cat "$TEST_DIRECTORY"/test9200a.png >>"G g/with spaces.png" && \ cat "$TEST_DIRECTORY"/test-binary-1.png >>"G g/with spaces.png" && \
git add "G g/with spaces.png" && git add "G g/with spaces.png" &&
git commit -a -m "Update with spaces" && git commit -a -m "Update with spaces" &&
id=$(git rev-list --max-count=1 HEAD) && id=$(git rev-list --max-count=1 HEAD) &&
@@ -202,7 +202,7 @@ test_expect_success \
'mkdir -p Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö && 'mkdir -p Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö &&
echo Foo >Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt && echo Foo >Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt &&
git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt && git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.txt &&
cp "$TEST_DIRECTORY"/test9200a.png Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png && cp "$TEST_DIRECTORY"/test-binary-1.png Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png &&
git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png && git add Å/goo/a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z/å/ä/ö/gårdetsågårdet.png &&
git commit -a -m "Går det så går det" && \ git commit -a -m "Går det så går det" && \
id=$(git rev-list --max-count=1 HEAD) && id=$(git rev-list --max-count=1 HEAD) &&

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB