3 # Copyright (c) 2008 Sverre Rabbelier
6 test_description
='stats tests (basics)
8 This test verifies that the basic stats commands work as expected.'
12 test_expect_success pre-clean
'
13 rm -fr "/tmp/freshrepo" || {
15 echo >&5 "FATAL: Cannot clean the fresh repo"
20 test_expect_success setup
'
21 ../../scripts/setupRepo.py
25 test_expect_success
'Verify that the expected tree was created' '
26 test `git rev-parse HEAD` = "90663811ccca2398df51c0b3c971ef9d3834989a"
29 test_expect_failure
'Test that commitsOfTouchedChanges outputs the proper result' '
30 stats.py --commits-that-touched HEAD