#!/bin/sh

. libtest.sh
. libgit.sh

export COLUMNS=181

steps '
	:enter
	:save-display diff-stat.screen
'

tigrc <<EOF
set line-graphics = utf-8
set main-view-date-use-author = yes
EOF

in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz"

test_tig

assert_equals 'diff-stat.screen' <<EOF
2014-03-01 17:26 -0500 Jonas Fonseca      ∙ [master] WIP: Upgrade to 0.4-SNAPSHOT and DCE  |commit ee912870202200a0b9cf4fd86ba57243212d341e
2014-03-01 15:59 -0500 Jonas Fonseca      ∙ Add type parameter for js.Dynamic              |Refs: [master]
2014-01-16 22:51 -0500 Jonas Fonseca      ∙ Move classes under org.scalajs.benchmark packag|Author:     Jonas Fonseca <jonas.fonseca@gmail.com>
2014-01-16 17:43 -0500 Jonas Fonseca      ∙ Bump Scala.js version to 0.3-SNAPSHOT          |AuthorDate: Sat Mar 1 17:26:01 2014 -0500
2014-01-16 17:39 -0500 Jonas Fonseca      ∙ Integrate app code into the benchmark infrastru|Commit:     Jonas Fonseca <jonas.fonseca@gmail.com>
2014-01-16 07:47 -0800 Jonas Fonseca      ●─╮ Merge pull request #4 from phaller/patch-1   |CommitDate: Sat Mar 1 17:26:01 2014 -0500
2014-01-16 15:32 +0100 Philipp Haller     │ ∙ Fix link to Dart benchmark harness           |
2013-12-17 00:02 +0100 Jonas Fonseca      ∙─╯ Update links to reflect project name change  |    WIP: Upgrade to 0.4-SNAPSHOT and DCE
2013-12-03 23:35 -0500 Jonas Fonseca      ∙ Use Scala.js 0.2-SNAPSHOT                      |---
2013-11-26 23:39 -0500 Jonas Fonseca      ∙ Extract the benchmark list variable name; fix p| common/benchmark-runner.sh                                           |  5 +++--
2013-11-26 23:31 -0500 Jonas Fonseca      ∙ Solve the easiest sudoku grid                  | common/src/main/scala/org/scalajs/benchmark/Benchmark.scala          | 11 +++++------
2013-11-26 23:22 -0500 Jonas Fonseca      ∙ Disable phantomjs by default                   | common/src/main/scala/org/scalajs/benchmark/BenchmarkApp.scala       |  2 +-
2013-11-26 22:55 -0500 Jonas Fonseca      ∙ Exclude Sudoku when running all benchmarks     | common/start-benchmark.js                                            |  9 +++++++--
2013-11-26 22:52 -0500 Jonas Fonseca      ∙ Fix reference setup to work for node           | deltablue/exports.js                                                 | 13 -------------
2013-11-26 22:03 -0500 Jonas Fonseca      ∙ Move benchmark registration to Scala           | .../src/main/scala/org/scalajs/benchmark/deltablue/DeltaBlue.scala   |  7 +++++++
2013-11-26 20:13 -0500 Jonas Fonseca      ∙ Rename projects to be grouped together in Eclip| project/Build.scala                                                  | 13 ++++---------
2013-11-19 21:56 -0500 Jonas Fonseca      ∙ sudoku: use iterator instead of Try()          | project/build.sbt                                                    |  5 ++++-
2013-11-11 21:56 -0500 Jonas Fonseca      ∙ Add verification of sudoku solutions           | richards/exports.js                                                  | 13 -------------
2013-11-11 21:50 -0500 Jonas Fonseca      ∙ Use stream to halt when first sudoku solution h| .../src/main/scala/org/scalajs/benchmark/richards/Richards.scala     |  3 +++
2013-11-11 01:11 -0500 Jonas Fonseca      ∙ Add initial version of sudoku benchmark        | run.sh                                                               |  2 +-
2013-11-05 23:20 -0500 Jonas Fonseca      ∙ Reformat code using Scala IDE                  | sudoku/exports.js                                                    | 13 -------------
2013-11-05 20:41 -0500 Jonas Fonseca      ∙ Update exports.js files to use new Scala.js cla| sudoku/src/main/scala/org/scalajs/benchmark/sudoku/Sudoku.scala      |  2 ++
2013-11-03 23:48 -0500 Jonas Fonseca      ∙ Add support for PhantomJS                      | tracer/exports.js                                                    | 13 -------------
2013-11-03 23:11 -0500 Jonas Fonseca      ∙ Make the engine stubs file optional            | tracer/index-dev.html                                                |  2 +-
2013-11-03 22:44 -0500 Jonas Fonseca      ∙ Refactor the benchmark shell code              | tracer/index.html                                                    |  2 +-
2013-10-29 17:29 -0700 Jonas Fonseca      ●─╮ Merge pull request #2 from sjrd/patch-2      | tracer/src/main/scala/org/scalajs/benchmark/tracer/Tracer.scala      |  3 +++
2013-10-29 18:48 +0100 Sébastien Doeraene │ ∙ Remove workaround to support Node.js.        | 17 files changed, 42 insertions(+), 76 deletions(-)
2013-10-29 18:46 +0100 Sébastien Doeraene │ ∙ Update for new groupId and package structure |
[main] ee912870202200a0b9cf4fd86ba57243212d341e - commit 1 of 48                        58%|[diff] ee912870202200a0b9cf4fd86ba57243212d341e - line 1 of 367                        7%
EOF
