aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test.sh
blob: b9455c0b6119b76e138ef979b3bb9587ebfa434e (plain)
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
32
33
34
35
#! /bin/bash

reset

wd=$(pwd)

./build.sh || exit

echo "_______________ TESTING LuaSL _______________"
# Kill any left overs.
killall -KILL LuaSL
cd $wd/LuaSL/testLua
export LUA_PATH="$wd/LuaSL/src/?.lua"
export LUA_SOPATH='../../libraries/luaproc/'
export LD_LIBRARY_PATH="../../libraries/luajit-2.0/src:$LD_LIBRARY_PATH"
export EINA_LOG_LEVELS="ecore:2,ecore_con:2"

case $@ in

    ddd)
	ddd ../LuaSL
	;;

    gdb)
	gdb ../LuaSL
	;;

    *)
	../LuaSL &
	sleep 1
	../LuaSL_test
	;;

esac