Re: [git-users] How to diagnose a failing test
To document the answer: From: Philip Oakley philipoak...@iee.org From: Dale R. Worley wor...@alum.mit.edu I've made a small change to the Git source and now test t/t1001-read-tree-m-2way.sh fails. In particular, this test fails: [...] How do I get detailed information on exactly what the failure is? I presume you've read \git\t\README which has a lot of stuff about testing. My limited attempts simply used various echo commands liberally interspersed with the code. (plus close reading of the code - a technique from history ;-) Indeed, the file t/README contains a great deal of information about executing the tests. (The prove harness that is discussed is present in the Git sources, and the sample commands that involve prove can be executed in the test directory.) You can execute each test individually within the test directory via sh ./t1234... and get more information by adding the documented options: sh ./t1234... --verbose --debug --immediate Dale -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[git-users] How to diagnose a failing test
I've made a small change to the Git source and now test t/t1001-read-tree-m-2way.sh fails. In particular, this test fails: test_expect_success \ '4 - carry forward local addition.' \ 'bash -x 2/tmp/2 -c rm -f .git/index read_tree_must_succeed $treeH git checkout-index -u -f -q -a git update-index --add yomin read_tree_twoway $treeH $treeM git ls-files --stage 4.out test_must_fail git diff --no-index M.out 4.out 4diff.out compare_change 4diff.out expected check_cache_at yomin clean' How do I get detailed information on exactly what the failure is? I expect that there are two methods. One is that there is some manner of executing the test that causes it to produce copious information on what the various commands are doing. The other is how to manually simulate the test execution environment and then enter each command in sequence by hand. Unfortunately, I don't know how to do either. Dale -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] How to diagnose a failing test
- Original Message - From: Dale R. Worley wor...@alum.mit.edu I've made a small change to the Git source and now test t/t1001-read-tree-m-2way.sh fails. In particular, this test fails: test_expect_success \ '4 - carry forward local addition.' \ 'bash -x 2/tmp/2 -c rm -f .git/index read_tree_must_succeed $treeH git checkout-index -u -f -q -a git update-index --add yomin read_tree_twoway $treeH $treeM git ls-files --stage 4.out test_must_fail git diff --no-index M.out 4.out 4diff.out compare_change 4diff.out expected check_cache_at yomin clean' How do I get detailed information on exactly what the failure is? Dale, I presume you've read \git\t\README which has a lot of stuff about testing. My limited attempts simply used various echo commands liberally interspersed with the code. (plus close reading of the code - a technique from history ;-) I expect that there are two methods. One is that there is some manner of executing the test that causes it to produce copious information on what the various commands are doing. The other is how to manually simulate the test execution environment and then enter each command in sequence by hand. Unfortunately, I don't know how to do either. Dale -- Philip -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.