Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1db0b4d

Browse files
address the concern in ap#127 by canonicalizing the path
also made the default run (all test files) work from any directory
1 parent 5dda713 commit 1db0b4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎tests/bench‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/sh
2-
set -e
32
s=startuptime.txt
4-
[ $# = 0 ] && set -- *.* # default to all files with a dot
3+
this=$(realpath "0ドル" 2>/dev/null || readlink -f "0ドル")
4+
[ $# = 0 ] && cd "${this%/*}" && set -- *.* # default to all files with a dot
5+
target="${this%/tests/*}/after/syntax/css.vim"
56
[ $# -gt 1 ] && multi=1 || multi=
67
for sample in "$@"; do
78
vim --startuptime $s -c qa "$sample"
8-
run=$(awk '/\/after\/syntax\/css\.vim$/ {sum += 2ドル} END {print sum}' "$s")
9+
run=$(awk -v t="$target"'index(0,ドル t) {sum += 2ドル} END {print sum}' "$s")
910
rm $s
1011
echo "$run${multi:+\t$sample}"
1112
total="${total:-0} + ${run:-0}"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /