diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-19 16:06:47 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-19 16:06:47 -0700 |
commit | 6c1c3d175350e5fcd664552198f74893c5f14e86 (patch) | |
tree | 55455028db880c8161133eabb64b35e84c1aa1c4 /t | |
parent | fd6e237d4e8b07287c8349aa99e897f4eace4ff3 (diff) | |
parent | e7108fcb15fadf7042fefc54fadc930e2298a4cb (diff) | |
download | git-6c1c3d175350e5fcd664552198f74893c5f14e86.tar.gz git-6c1c3d175350e5fcd664552198f74893c5f14e86.tar.xz |
Merge branch 'dp/checkattr'
* dp/checkattr:
git-check-attr(1): use 'verse' for multi-line synopsis sections
check-attr: Add --stdin option
check-attr: add an internal check_attr() function
Diffstat (limited to 't')
-rwxr-xr-x | t/t0003-attributes.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index 3d8e06a20..1c77192eb 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -47,6 +47,23 @@ test_expect_success 'attribute test' ' ' +test_expect_success 'attribute test: read paths from stdin' ' + + cat <<EOF > expect +f: test: f +a/f: test: f +a/c/f: test: f +a/g: test: a/g +a/b/g: test: a/b/g +b/g: test: unspecified +a/b/h: test: a/b/h +a/b/d/g: test: a/b/d/* +EOF + + sed -e "s/:.*//" < expect | git check-attr --stdin test > actual && + test_cmp expect actual +' + test_expect_success 'root subdir attribute test' ' attr_check a/i a/i && |