summaryrefslogtreecommitdiffstats
path: root/test-radar-base.sh
blob: ca1ddfd3602320d268658440e7ce2e1957cc9597 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
scriptDir="$(cd "$(dirname "$0")"; pwd)"

source "$scriptDir/radar-base.sh"

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