aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-01-02 23:59:50 +1000
committerDavid Walter Seikel2016-01-02 23:59:50 +1000
commit57a36a84c91d3d69550c57e3de4decc2c7a6e427 (patch)
treebc7fb1c233876e342e72db303db882fb0367f065
parentDocumentation about how we could interact with web browsers. (diff)
downloadSledjHamr-57a36a84c91d3d69550c57e3de4decc2c7a6e427.zip
SledjHamr-57a36a84c91d3d69550c57e3de4decc2c7a6e427.tar.gz
SledjHamr-57a36a84c91d3d69550c57e3de4decc2c7a6e427.tar.bz2
SledjHamr-57a36a84c91d3d69550c57e3de4decc2c7a6e427.tar.xz
Rejig the build, test, and kill scripts a little bit.
-rwxr-xr-xbuild.lua3
-rwxr-xr-xkillem.sh1
-rwxr-xr-xtest.sh7
3 files changed, 9 insertions, 2 deletions
diff --git a/build.lua b/build.lua
index 160dcce..5661025 100755
--- a/build.lua
+++ b/build.lua
@@ -70,6 +70,9 @@ locale_d = baseDir .. '/locale'
70-- On the other hand, there's a more direct way to get to environment variables, it would fail to. 70-- On the other hand, there's a more direct way to get to environment variables, it would fail to.
71CFLAGOPTS = readCommand('echo "$CFLAGOPTS"') 71CFLAGOPTS = readCommand('echo "$CFLAGOPTS"')
72 72
73-- Make sure any old servers are killed off.
74os.execute('./killem.sh')
75
73CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries' 76CFLAGS = '-g -Wall -I ' .. baseDir .. '/src/libraries'
74CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit') 77CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'luajit')
75CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary') 78CFLAGS = CFLAGS .. ' ' .. pkgConfig('cflags', 'elementary')
diff --git a/killem.sh b/killem.sh
index de67db3..262d5d2 100755
--- a/killem.sh
+++ b/killem.sh
@@ -1,5 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# TODO - Deal with the valgrind left overs, by scanning the output of the following lines, pciking out the PIDs, then "kill -KILL pid"
3ps aux | grep love 4ps aux | grep love
4ps aux | grep LuaSL 5ps aux | grep LuaSL
5 6
diff --git a/test.sh b/test.sh
index 2c4204c..ed86835 100755
--- a/test.sh
+++ b/test.sh
@@ -4,11 +4,14 @@ reset
4 4
5wd=$(pwd) 5wd=$(pwd)
6 6
7./killem.sh
8sleep 1
9
7./build.lua || exit 10./build.lua || exit
8 11
9echo "_______________ TESTING extantz, love and LuaSL _______________" 12echo "_______________ TESTING extantz, love and LuaSL _______________"
10./extantz & 13./LuaSL & sleep 2 && ./love & sleep 1 && ./extantz &
11sleep 1 14sleep 30
12 15
13echo "_______________ TESTING GuiLua _______________" 16echo "_______________ TESTING GuiLua _______________"
14cd $wd/src/GuiLua 17cd $wd/src/GuiLua