PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/work/do_test.sh

http://github.com/tybor/Liberty
Shell | 22 lines | 15 code | 6 blank | 1 comment | 2 complexity | 8a7bfa42e23499538c617f24fc1a5d79 MD5 | raw file
 1#!/usr/bin/env bash
 2
 3testclass=$(basename $1)
 4cd $(dirname $1)
 5shift
 6
 7SRC_LOADPATH=$LIBERTY_HOME/src/loadpath.se
 8
 9if [ -e loadpath.se ]; then
10    mv loadpath.se loadpath.se~
11    cat loadpath.se~ | grep -v ^$SRC_LOADPATH > loadpath.se
12    echo $SRC_LOADPATH >> loadpath.se
13else
14    echo './' > loadpath.se
15    echo $SRC_LOADPATH >> loadpath.se
16fi
17
18eval `se -environment | grep -v '^#'`
19
20$LIBERTY_INTERPRETER ./loadpath.se $(echo ${testclass%.e} | tr '[a-z]' '[A-Z]') make -vsys=$LIBERTY_HOME/work/ -vpath_tutorial=${path_tutorial} "$@"
21
22test -e loadpath.se~ && mv -f loadpath.se~ loadpath.se