File: test_all.sh

package info (click to toggle)
rlvm 0.14-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,920 kB
  • ctags: 33,581
  • sloc: cpp: 91,570; ansic: 39,346; perl: 768; python: 181; sh: 170; makefile: 8
file content (31 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download | duplicates (6)
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
30
31
#!/bin/bash

# Runs all paths of Little Busters; the result should be a save file with
# everything unlocked.
if [ ! -n "$1" ]
then
  echo "Usage: `basename $0` <path to Little Busters directory>"
  exit 65
fi
GAMEDIR=$1

# TODO: Clean up directory how? Not in all roman letters.
#rm -Rf ~/.rlvm/KEY_KANON_SE_ALL/
mkdir -p LB.log

function runPath() {
  SCRIPT=$1
  LOG=`echo $SCRIPT | sed s/\.lua/\.log/g;`

  echo "Running $SCRIPT..."
  time build/lua_rlvm --count-undefined test/Little_Busters/$SCRIPT $GAMEDIR > LB.log/$LOG 2>&1
}

# r1 is the common route.
runPath "Yuiko.lua" # r2.
runPath "Rin-bad.lua" # r3.
runPath "Komari.lua" # r4
runPath "Mio.lua" # r5
runPath "Kudryavka.lua" # r6
runPath "Saigusa.lua" # r7
runPath "Rin.lua"  # r8