* t9200 cvsexportcommit test fails on Ubuntu server 12.04.4 LTS
@ 2014-02-28 18:45 Fabio D'Alfonso
2014-03-01 6:46 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Fabio D'Alfonso @ 2014-02-28 18:45 UTC (permalink / raw)
To: git
Hi,
I get 12 of 15 tests faling.
Any idea? the same build works fine on 11.04 where I have a desktop version.
Thanks
not ok 1 - New file
# mkdir A B C D E F &&
# echo hello1 >A/newfile1.txt &&
# echo hello2 >B/newfile2.txt &&
# cp "$TEST_DIRECTORY"/test-binary-
1.png C/newfile3.png &&
# cp "$TEST_DIRECTORY"/test-binary-1.png D/newfile4.png &&
# git add A/newfile1.txt &&
# git add B/newfile2.txt &&
# git add C/newfile3.png &&
# git add D/newfile4.png &&
# git commit -a -m "Test: New file" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id &&
# check_entries A "newfile1.txt/1.1/" &&
# check_entries B "newfile2.txt/1.1/" &&
# check_entries C "newfile3.png/1.1/-kb" &&
# check_entries D "newfile4.png/1.1/-kb" &&
# test_cmp A/newfile1.txt ../A/newfile1.txt &&
# test_cmp B/newfile2.txt ../B/newfile2.txt &&
# test_cmp C/newfile3.png ../C/newfile3.png &&
# test_cmp D/newfile4.png ../D/newfile4.png
# )
not ok 2 - Remove two files, add two and update two
# echo Hello1 >>A/newfile1.txt &&
# rm -f B/newfile2.txt &&
# rm -f C/newfile3.png &&
# echo Hello5 >E/newfile5.txt &&
# cp "$TEST_DIRECTORY"/test-binary-2.png D/newfile4.png &&
# cp "$TEST_DIRECTORY"/test-binary-1.png F/newfile6.png &&
# git add E/newfile5.txt &&
# git add F/newfile6.png &&
# git commit -a -m "Test: Remove, add and update" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id &&
# check_entries A "newfile1.txt/1.2/" &&
# check_entries B "" &&
# check_entries C "" &&
# check_entries D "newfile4.png/1.2/-kb" &&
# check_entries E "newfile5.txt/1.1/" &&
# check_entries F "newfile6.png/1.1/-kb" &&
# test_cmp A/newfile1.txt ../A/newfile1.txt &&
# test_cmp D/newfile4.png ../D/newfile4.png &&
# test_cmp E/newfile5.txt ../E/newfile5.txt &&
# test_cmp F/newfile6.png ../F/newfile6.png
# )
ok 3 - Fail to change binary more than one generation old
not ok 4 - Remove only binary files
# git reset --hard HEAD^^ &&
# rm -f D/newfile4.png &&
# git commit -a -m "test: remove only a binary file" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id &&
# check_entries A "newfile1.txt/1.2/" &&
# check_entries B "" &&
# check_entries C "" &&
# check_entries D "" &&
# check_entries E "newfile5.txt/1.1/" &&
# check_entries F "newfile6.png/1.1/-kb" &&
# test_cmp A/newfile1.txt ../A/newfile1.txt &&
# test_cmp E/newfile5.txt ../E/newfile5.txt &&
# test_cmp F/newfile6.png ../F/newfile6.png
# )
not ok 5 - Remove only a text file
# rm -f A/newfile1.txt &&
# git commit -a -m "test: remove only a binary file" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id &&
# check_entries A "" &&
# check_entries B "" &&
# check_entries C "" &&
# check_entries D "" &&
# check_entries E "newfile5.txt/1.1/" &&
# check_entries F "newfile6.png/1.1/-kb" &&
# test_cmp E/newfile5.txt ../E/newfile5.txt &&
# test_cmp F/newfile6.png ../F/newfile6.png
# )
not ok 6 - New file with spaces in file name
# mkdir "G g" &&
# echo ok then >"G g/with spaces.txt" &&
# git add "G g/with spaces.txt" && \
# cp "$TEST_DIRECTORY"/test-binary-1.png "G g/with spaces.png" && \
# git add "G g/with spaces.png" &&
# git commit -a -m "With spaces" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id &&
# check_entries "G g" "with spaces.png/1.1/-kb|with
spaces.txt/1.1/"
# )
not ok 7 - Update file with spaces in file name
# echo Ok then >>"G g/with spaces.txt" &&
# cat "$TEST_DIRECTORY"/test-binary-1.png >>"G g/with
spaces.png" && \
# git add "G g/with spaces.png" &&
# git commit -a -m "Update with spaces" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -c $id
# check_entries "G g" "with spaces.png/1.2/-kb|with
spaces.txt/1.2/"
# )
not ok 8 - File with non-ascii file name
# 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 &&
# 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"/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 commit -a -m "Går det så går det" && \
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$CVSWORK" &&
# git cvsexportcommit -v -c $id &&
# check_entries \
#
"Å/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/1.1/-kb|gårdetsågårdet.txt/1.1/"
# )
ok 9 - Mismatching patch should fail
ok 10 - Retain execute bit
not ok 11 - -w option should work with relative GIT_DIR
#
# mkdir W &&
# echo foobar >W/file1.txt &&
# echo bazzle >W/file2.txt &&
# git add W/file1.txt &&
# git add W/file2.txt &&
# git commit -m "More updates" &&
# id=$(git rev-list --max-count=1 HEAD) &&
# (cd "$GIT_DIR" &&
# GIT_DIR=. git cvsexportcommit -w "$CVSWORK" -c $id &&
# check_entries "$CVSWORK/W" "file1.txt/1.1/|file2.txt/1.1/" &&
# test_cmp "$CVSWORK/W/file1.txt" ../W/file1.txt &&
# test_cmp "$CVSWORK/W/file2.txt" ../W/file2.txt
# )
#
not ok 12 - check files before directories
#
#
# echo Notes > release-notes &&
# git add release-notes &&
# git commit -m "Add release notes" release-notes &&
# id=$(git rev-parse HEAD) &&
# git cvsexportcommit -w "$CVSWORK" -c $id &&
#
# echo new > DS &&
# echo new > E/DS &&
# echo modified > release-notes &&
# git add DS E/DS release-notes &&
# git commit -m "Add two files with the same basename" &&
# id=$(git rev-parse HEAD) &&
# git cvsexportcommit -w "$CVSWORK" -c $id &&
# check_entries "$CVSWORK/E" "DS/1.1/|newfile5.txt/1.1/" &&
# check_entries "$CVSWORK" "DS/1.1/|release-notes/1.2/" &&
# test_cmp "$CVSWORK/DS" DS &&
# test_cmp "$CVSWORK/E/DS" E/DS &&
# test_cmp "$CVSWORK/release-notes" release-notes
#
#
not ok 13 - re-commit a removed filename which remains in CVS attic
#
#
# (cd "$CVSWORK" &&
# echo >attic_gremlin &&
# cvs -Q add attic_gremlin &&
# cvs -Q ci -m "added attic_gremlin" &&
# rm attic_gremlin &&
# cvs -Q rm attic_gremlin &&
# cvs -Q ci -m "removed attic_gremlin") &&
#
# echo > attic_gremlin &&
# git add attic_gremlin &&
# git commit -m "Added attic_gremlin" &&
# git cvsexportcommit -w "$CVSWORK" -c HEAD &&
# (cd "$CVSWORK"; cvs -Q update -d) &&
# test -f "$CVSWORK/attic_gremlin"
#
not ok 14 - commit a file with leading spaces in the name
#
#
# echo space > " space" &&
# git add " space" &&
# git commit -m "Add a file with a leading space" &&
# id=$(git rev-parse HEAD) &&
# git cvsexportcommit -w "$CVSWORK" -c $id &&
# check_entries "$CVSWORK" "
space/1.1/|DS/1.1/|attic_gremlin/1.3/|release-notes/1.2/" &&
# test_cmp "$CVSWORK/ space" " space"
#
#
not ok 15 - use the same checkout for Git and CVS
#
#
# (mkdir shared &&
# cd shared &&
# sane_unset GIT_DIR &&
# cvs co . &&
# git init &&
# git add " space" &&
# git commit -m "fake initial commit" &&
# echo Hello >> " space" &&
# git commit -m "Another change" " space" &&
# git cvsexportcommit -W -p -u -c HEAD &&
# grep Hello " space" &&
# git diff-files)
#
#
# failed 12 among 15 test(s)
1..15
--
Fabio D'Alfonso
'Enabling Business Through IT'
cell. +39.348.059.40.22 ***
web: www.fabiodalfonso.com <http://www.fabiodalfonso.com/>
email: fabio.dalfonso@fabiodalfonso.com
<mailto:fabio.dalfonso@fabiodalfonso.com>linkedin:
www.linkedin.com/in/fabiodalfonso <http://it.linkedin.com/in/fabiodalfonso>
twitter: www.twitter.com/#!/fabio_dalfonso
<http://www.twitter.com/#%21/fabio_dalfonso>
fax: +39.06.874.599.581
BlackBerry® Wireless Enabled Address.
** Hidden numbers are automatically rejected by the phone*
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: t9200 cvsexportcommit test fails on Ubuntu server 12.04.4 LTS
2014-02-28 18:45 t9200 cvsexportcommit test fails on Ubuntu server 12.04.4 LTS Fabio D'Alfonso
@ 2014-03-01 6:46 ` Jeff King
2014-03-01 10:09 ` Fabio D'Alfonso
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2014-03-01 6:46 UTC (permalink / raw)
To: Fabio D'Alfonso; +Cc: git
On Fri, Feb 28, 2014 at 07:45:07PM +0100, Fabio D'Alfonso wrote:
> I get 12 of 15 tests faling.
>
> Any idea? the same build works fine on 11.04 where I have a desktop version.
No clue. It works fine for me here (Debian sid). Perhaps try running the
script like:
./t9200-git-cvsexportcommit.sh -v -i
which should give more information about what exactly is failing?
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: t9200 cvsexportcommit test fails on Ubuntu server 12.04.4 LTS
2014-03-01 6:46 ` Jeff King
@ 2014-03-01 10:09 ` Fabio D'Alfonso
0 siblings, 0 replies; 3+ messages in thread
From: Fabio D'Alfonso @ 2014-03-01 10:09 UTC (permalink / raw)
To: Jeff King; +Cc: git
Hi,
thanks for the suggestion.
Tests failed because the cvs is built with denied root commit on 12.04,
I did not notice as the 11.04 works. I use root for system activities on
servers. Will sometime in the future start to sudoku...
Made a check as git user and was fine.
Fabio D'Alfonso
'Enabling Business Through IT'
cell. +39.348.059.40.22 ***
web: www.fabiodalfonso.com <http://www.fabiodalfonso.com/>
email: fabio.dalfonso@fabiodalfonso.com
<mailto:fabio.dalfonso@fabiodalfonso.com>linkedin:
www.linkedin.com/in/fabiodalfonso <http://it.linkedin.com/in/fabiodalfonso>
twitter: www.twitter.com/#!/fabio_dalfonso
<http://www.twitter.com/#%21/fabio_dalfonso>
fax: +39.06.874.599.581
BlackBerry® Wireless Enabled Address.
** Hidden numbers are automatically rejected by the phone*
On 3/1/2014 7:46 AM, Jeff King wrote:
> On Fri, Feb 28, 2014 at 07:45:07PM +0100, Fabio D'Alfonso wrote:
>
>> I get 12 of 15 tests faling.
>>
>> Any idea? the same build works fine on 11.04 where I have a desktop version.
> No clue. It works fine for me here (Debian sid). Perhaps try running the
> script like:
>
> ./t9200-git-cvsexportcommit.sh -v -i
>
> which should give more information about what exactly is failing?
>
> -Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-03-01 10:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-28 18:45 t9200 cvsexportcommit test fails on Ubuntu server 12.04.4 LTS Fabio D'Alfonso
2014-03-01 6:46 ` Jeff King
2014-03-01 10:09 ` Fabio D'Alfonso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).