repo.or.cz
/
tig.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Move relative date formatting to separate function
[tig.git]
/
test
/
tigrc
/
save-option-test
blob
52678e0978a24435bcc493e56128f5b52d73a3ab
1
#!/bin/sh
2
3
. libtest.sh
4
5
saved_tigrc
=
"
$HOME
/saved-tigrc"
6
check_tigrc
=
"
$HOME
/check-tigrc"
7
8
steps
"
9
:save-options
$saved_tigrc
10
"
11
12
test_tig status
13
cp
stderr stderr
.1
14
15
steps
"
16
:save-options
$check_tigrc
17
"
18
19
TIGRC_USER
=
"
$saved_tigrc
"
test_tig status
20
cp
stderr stderr
.2
21
22
cat
stderr.
* >
stderr
23
24
assert_equals stderr
<<EOF
25
EOF
26
27
assert_equals
"saved-tigrc"
<<EOF
28
$(cat check-tigrc)
29
EOF