From 637b5d5534469ebb15826139e1b3df12a1cc9309 Mon Sep 17 00:00:00 2001 From: Reinaldo Colina Date: Thu, 27 Aug 2015 12:14:13 -0700 Subject: issue-17: Add arguments to make the prompt shorter --- test-radar-base.sh | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100755 test-radar-base.sh (limited to 'test-radar-base.sh') diff --git a/test-radar-base.sh b/test-radar-base.sh new file mode 100755 index 0000000..ca95136 --- /dev/null +++ b/test-radar-base.sh @@ -0,0 +1,51 @@ +scriptDir="$(cd "$(dirname "$0")"; pwd)" + +source "$scriptDir/radar-base.sh" + +test_show_git_label() { + show_git_label + assertTrue $? + + show_git_label --bash + assertTrue $? + + show_git_label --bash --fetch + assertTrue $? + + show_git_label --bash --minimal --fetch + assertFalse $? + + show_git_label --bash --fetch --minimal + assertFalse $? + + show_git_label --minimal --bash --fetch + assertFalse $? + + show_git_label --bash --fetch --minimal --no-remote-status + assertFalse $? +} + +test_show_remote_status() { + show_remote_status + assertTrue $? + + show_remote_status --bash + assertTrue $? + + show_remote_status --bash --fetch + assertTrue $? + + show_remote_status --bash --no-remote-status --fetch + assertFalse $? + + show_remote_status --bash --fetch --no-remote-status + assertFalse $? + + show_remote_status --no-remote-status --bash --fetch + assertFalse $? + + show_remote_status --bash --fetch --minimal --no-remote-status + assertFalse $? +} + +. ./shunit/shunit2 \ No newline at end of file -- cgit v1.2.3 From 93dad96832a59d3d7f6ac6580cabf0202b387ffe Mon Sep 17 00:00:00 2001 From: Reinaldo Colina Date: Fri, 28 Aug 2015 13:55:37 -0700 Subject: Removing --minimal arg implementation - Dealing with the git: prefix will be done in a separate pull request - The new --no-remote-status arg remains --- test-radar-base.sh | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'test-radar-base.sh') diff --git a/test-radar-base.sh b/test-radar-base.sh index ca95136..9f7f8ee 100755 --- a/test-radar-base.sh +++ b/test-radar-base.sh @@ -2,29 +2,6 @@ scriptDir="$(cd "$(dirname "$0")"; pwd)" source "$scriptDir/radar-base.sh" -test_show_git_label() { - show_git_label - assertTrue $? - - show_git_label --bash - assertTrue $? - - show_git_label --bash --fetch - assertTrue $? - - show_git_label --bash --minimal --fetch - assertFalse $? - - show_git_label --bash --fetch --minimal - assertFalse $? - - show_git_label --minimal --bash --fetch - assertFalse $? - - show_git_label --bash --fetch --minimal --no-remote-status - assertFalse $? -} - test_show_remote_status() { show_remote_status assertTrue $? -- cgit v1.2.3