diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-08-10 07:44:08 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-08-10 12:35:13 +0100 |
commit | a676bb68111e13736dd58b4d08c754d6150e359e (patch) | |
tree | 5f96695b1c069717e3ec424b75d2f8efd95b79cb /tests/lib-gdr | |
parent | cf4848f57b34bc2918526e8195c9ec730b11b18a (diff) |
test suite: t-some-changes: Allow control of which files are edited
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib-gdr')
-rw-r--r-- | tests/lib-gdr | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/lib-gdr b/tests/lib-gdr index 479ef41..1bb810f 100644 --- a/tests/lib-gdr +++ b/tests/lib-gdr @@ -156,32 +156,34 @@ t-gdr-good () { t-some-changes () { local token=$1 - local which=${2-dum} + local which=${2:-dum} + local fsuffix=$3 t-git-next-date case "$which" in *d*) - echo >>debian/zorkmid "// debian $token" - git add debian/zorkmid - git commit -m "DEBIAN add zorkmid ($token)" + echo >>debian/zorkmid$fsuffix "// debian $token" + git add debian/zorkmid$fsuffix + git commit -m "DEBIAN add zorkmid$fsuffix ($token)" ;; esac case "$which" in *u*) - echo >>src.c "// upstream $token" - git commit -a -m "UPSTREAM edit src.c ($token)" + echo >>src$fsuffix.c "// upstream $token" + git add src$fsuffix.c + git commit -m "UPSTREAM edit src$fsuffix.c ($token)" ;; esac case "$which" in *m*) - for f in debian/zorkmid src.c; do + for f in debian/zorkmid$fsuffix src$fsuffix.c; do echo "// both! $token" >>$f git add $f done - git commit -m "MIXED add both ($token)" + git commit -m "MIXED add both($fsuffix) ($token)" ;; esac |