Disable the graph when --first-parent is passed to the main view
[tig.git] / test / main / no-graph-test
blob9ad9f3202ac041257f19784e8556205877ce9285
1 #!/bin/sh
3 . libtest.sh
4 . libgit.sh
6 export LINES=16
7 export TIG_NO_DISPLAY=
9 touch stderr
11 tigrc <<EOF
12 set line-graphics = utf-8
13 set main-view = date:default author:abbreviated commit-title:yes,graph,refs=no,overflow=no
14 EOF
16 in_work_dir create_repo_from_tgz "$base_dir/files/scala-js-benchmarks.tgz"
18 test_tig_script() {
19 name="$1"; shift
21 tig_script "$name.script" "
22 :view-main
23 :save-display $name.screen
26 cat > "$name.expected"
28 (cd "$work_dir" && tig "$@") >"$name.stdout" 2>"$name.stderr"
30 assert_equals "$name.screen" < "$name.expected"
31 assert_equals "$name.stderr" ''
34 test_tig_script 'follow' --follow project/Build.scala <<EOF
35 2014-03-01 17:26 JFonseca WIP: Upgrade to 0.4-SNAPSHOT and DCE
36 2013-11-26 20:13 JFonseca Rename projects to be grouped together in Eclipse
37 2013-11-11 01:11 JFonseca Add initial version of sudoku benchmark
38 2013-10-29 18:46 SDoeraene Update for new groupId and package structure of Scala
39 2013-10-18 18:00 JFonseca Add DeltaBlue benchmark
40 2013-10-17 20:34 JFonseca Add Richards benchmark
41 2013-10-17 20:25 JFonseca Simplify creation of new benchmark projects
42 2013-10-14 13:15 JFonseca Initial import of Tracer benchmark
49 [main] ee912870202200a0b9cf4fd86ba57243212d341e - commit 1 of 8 100%
50 EOF
52 test_tig_script 'first-parent' --first-parent <<EOF
53 2014-03-01 17:26 JFonseca WIP: Upgrade to 0.4-SNAPSHOT and DCE
54 2014-03-01 15:59 JFonseca Add type parameter for js.Dynamic
55 2014-01-16 22:51 JFonseca Move classes under org.scalajs.benchmark package scope
56 2014-01-16 17:43 JFonseca Bump Scala.js version to 0.3-SNAPSHOT
57 2014-01-16 17:39 JFonseca Integrate app code into the benchmark infrastructure
58 2014-01-16 07:47 JFonseca Merge pull request #4 from phaller/patch-1
59 2013-12-17 00:02 JFonseca Update links to reflect project name change
60 2013-12-03 23:35 JFonseca Use Scala.js 0.2-SNAPSHOT
61 2013-11-26 23:39 JFonseca Extract the benchmark list variable name; fix push to
62 2013-11-26 23:31 JFonseca Solve the easiest sudoku grid
63 2013-11-26 23:22 JFonseca Disable phantomjs by default
64 2013-11-26 22:55 JFonseca Exclude Sudoku when running all benchmarks
65 2013-11-26 22:52 JFonseca Fix reference setup to work for node
66 2013-11-26 22:03 JFonseca Move benchmark registration to Scala
67 [main] ee912870202200a0b9cf4fd86ba57243212d341e - commit 1 of 44 31%
68 EOF