Debian Codegraph @

tests/expand.tst

raw
1 #!/usr/bin/env python3
2 ## Test keyword expansion
3
4 import sys, testlifter
5
6 testlifter.verbose += sys.argv[1:].count("-v")
7 repo = testlifter.CVSRepository("expand.repo")
8 repo.init()
9 repo.module("module")
10 co = repo.checkout("module", "expand.checkout")
11
12 co.write("README", "$Revision$ should expand to something with 1.1 in it.\n")
13 co.add("README")
14 co.commit("This is a sample commit")
15
16 co.write("README", "$Revision$ should expand to something with 1.2 in it.\n")
17 co.commit("This is another sample commit")
18
19 co.write("README", "$Revision: 1.3 $ should expand to something with 1.3 in it.\n")
20 co.commit("Yet another sample commit")
21
22 repo.cleanup()
23
24 # end