File: test-simple-exec.sh

package info (click to toggle)
weakforced 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,040 kB
  • sloc: cpp: 20,397; python: 2,002; sh: 700; makefile: 432
file content (17 lines) | stat: -rwxr-xr-x 642 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -ex

/usr/bin/wforce --help >/dev/null
/usr/bin/trackalert --help >/dev/null

# isempty() is an extension only present in the OpenResty fork of LuaJIT,
# the import will error in the original LuaJIT and Lua.
/usr/bin/wforce-luajit -e 'local isempty = require "table.isempty" print(isempty({}))'

# Check Lua modules are loaded
/usr/bin/wforce-luajit -e 'require "elasticsearch" require "lualdap"'

# Check that our lua-dist is the first libluajit that is found
/sbin/ldconfig --print-cache | grep '/usr/share/wforce-lua-dist/lib/exported/libluajit'
ldd /usr/bin/wforce | grep '/usr/share/wforce-lua-dist/lib/exported/libluajit'