Skip to content

Commit

Permalink
Move profile results to separate dir
Browse files Browse the repository at this point in the history
for easier viewing/comparison
  • Loading branch information
rwstauner committed Feb 6, 2012
1 parent 84f3420 commit d9761d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
1 change: 0 additions & 1 deletion corpus/profile-vim/.gitignore
@@ -1,2 +1 @@
marked.txt
*.prof
2 changes: 1 addition & 1 deletion corpus/profile-vim/profile.vim
@@ -1,6 +1,6 @@
:filetype on

:profile start corpus/profile-vim/out.prof
:profile start corpus/profile-vim/results/out.prof
:profile! file share/mark.vim

:source share/mark.vim
Expand Down
1 change: 1 addition & 0 deletions corpus/profile-vim/results/.gitignore
@@ -0,0 +1 @@
*.prof
9 changes: 8 additions & 1 deletion corpus/profile-vim/run.sh
Expand Up @@ -14,6 +14,8 @@ else
src="$1"
fi

# defaults
out=out.prof
# use test data
HOME=t/

Expand All @@ -24,4 +26,9 @@ if [[ "$diff" ]]; then
diff -u "$dir/expectation.txt" "$dir/marked.txt" && echo 'got expected markup'
fi

echo "profile output in $dir/out.prof"
resd="$dir/results"
if [[ "$out" != "out.prof" ]]; then
mv -v "$resd/out.prof" "$resd/${out%.prof}.prof"
else
echo "profile output in $resd/out.prof"
fi

0 comments on commit d9761d7

Please sign in to comment.