sr (owner)

Revisions

  • 236567 sr Thu Jul 30 12:03:59 -0700 2009
  • 976c0d sr Thu Jul 30 11:49:11 -0700 2009
gist: 158853 Download_button fork
public
Public Clone URL: git://gist.github.com/158853.git
Embed All Files: show embed
run.txt #
1
2
3
4
5
6
7
8
% ./t/test-git
rip: setting up ripenv
# without a version
ok - installed simple_c.rb
ok - installed added.rb
 
% ./t/test-git | ./t/knock/kn-sum
2 tests, 0 failed (100% succeeded)
t/test-git.sh #
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
#!/bin/sh
PATH="bin:$PATH"
RUBYLIB="lib:$RUBYLIB"
RIPDIR="`pwd`/t/tmpripdir$$" # TODO: should rip expand_path(RIPDIR)?
export PATH RUBYLIB RIPDIR
 
# TODO: make this a rip command?
ruby -rrip -e "Rip::Setup.setup_ripenv(ENV['RIPDIR'])"
 
. t/knock/knock.sh
 
git daemon --verbose --export-all --reuseaddr --detach \
  --pid-file=git-pid \
  --export-all --base-path=t/
 
installed() {
  test -f "$RIPDIR/active/lib/$1"
}
 
echo "# without a version"
rip install git://127.0.0.1/test_repo &>/dev/null # TODO -q(uiet) option
ok "installed simple_c.rb"
ok "installed added.rb"
 
kill -9 `cat git-pid`
rm git-pid
rm -rf $RIPDIR