add luapower dependencies

This commit is contained in:
Mikhail Kochegarov
2022-12-13 14:33:55 +10:00
parent 1b2ddef85f
commit 64c1aba838
73 changed files with 902 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
#!/bin/bash
# build packages and their dependencies in the right order.
# needs the `luapower` package to get the build order.
packages="$1" # comma separated without spaces
platform="$2"
[ "$packages" ] || {
echo "USAGE: mgit build-all REPO,...|--all [platform]"
exit 1
}
[ -f "luapower" ] || {
echo
echo "ERROR: luapower package is needed to get the build order."
echo "To get it, run:"
echo
echo " mgit clone luapower glue lfs luajit tuple"
echo
exit 1
}
[ "$platform" ] || platform="$(./luapower platform)" || exit 1
packages="$(./luapower build-order $packages $platform)"
echo "Will build: ${packages//$'\n'/, }."
echo "Press any key to continue, Ctrl+C to quit."
read
for pkg in $packages; do
echo
echo "-----------------------------------------------------------"
echo
echo "*** Building $pkg for $platform ***"
echo
(cd csrc/$pkg && ./build-$platform.sh)
done
Executable
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# build a package on the current platform (or on a specified platform).
package="$1"
platform="$2"
die() { echo "ERROR: $@" >&2; exit 1; }
usage() { echo "USAGE: mgit build REPO [platform]"; exit; }
[ "$package" ] || usage
[ "$platform" ] || platform="$(.mgit/platform.sh)" || die "Unknown platform $platform"
script="csrc/$package/build-$platform.sh"
[ -f "$script" ] || die "Build script not found: $script"
cd csrc/$package && ./build-$platform.sh
+1
View File
@@ -0,0 +1 @@
https://github.com/capr/
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# check glibc symbol versions on all libs and report anything > GLIBC 2.7
[ "${OSTYPE#linux}" = "$OSTYPE" ] && { echo "This script is for Linux"; exit 1; }
check() {
echo $1
(cd $1; shift
for f in $@; do
s="$(objdump -T $f | grep GLIBC_ | grep -v 'GLIBC_2\.[0-7][\ \.]')"
[ "$s" ] && printf "%-20s %s\n" "$f" "$s"
done
)
}
check bin/linux32 *.so luajit-bin
check bin/linux32/clib *.so
[ "$(uname -m)" = "x86_64" ] && {
check bin/linux64 *.so luajit-bin
check bin/linux64/clib *.so
}
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# check install_name on osx dylibs
[ "${OSTYPE#darwin}" = "$OSTYPE" ] && { echo "This script is for OSX"; exit 1; }
check() {
echo "checking $1..."
(cd bin/$1
otool -L *.dylib | grep -v System | grep -v "++" | grep -v "dylib:" | grep -v "libgcc" | grep -v "@rpath/"
)
}
check osx32
check osx64
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
# check for non-glibc symbol versions
[ "${OSTYPE#linux}" = "$OSTYPE" ] && { echo "This script is for Linux"; exit 1; }
check() {
(
echo $1
cd bin/$1
for f in *.so; do
s="$(objdump -T "$f" | grep -P '\*UND\*\s+[0-9a-f]+\s+[^\s]+\s+[^\s]+$' | grep -v GLIBC)"
[ "$s" ] && { echo "$f"; echo "$s"; }
done
)
}
check linux32
[ "$(uname -m)" = "x86_64" ] && check linux64
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
# increment the first number from inside current tag (if any) and push tags
tag="$(git describe --tags --abbrev=0 2>/dev/null)"
if [[ $tag =~ ([^0-9]*)([0-9]+)(.*) ]]; then
s1="${BASH_REMATCH[1]}"
n="${BASH_REMATCH[2]}"
s2="${BASH_REMATCH[3]}"
else
s1="r"
n="0"
s2=""
fi
tag1="$s1$((n+1))$s2"
echo "Bumping version: $tag -> $tag1"
echo "Press any key to continue, Ctrl+C to quit."
read
git tag "$tag1"
git push --tags
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# clear all the history of the current branch. use with caution!
branch="$(git rev-parse --abbrev-ref HEAD)"
[ "$branch" ] || exit 1
git checkout --orphan delete_me
git add -A
git commit -m "init (history cleared)"
git branch -D "$branch"
git branch -m "$branch"
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# git add/commit/push combo on the current repo
msg="$1"
[ "$msg" ] || msg="unimportant"
git add -A
git commit -m "$msg"
git push
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# git chmod +x all .sh files in the current repo
git ls-files | \
while read f; do
[ "${f##*.}" = "sh" ] && {
echo "updating '$f'"
chmod +x "$f"
git update-index --chmod=+x "$f"
}
done
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
# udate the current tag to point to the current commit
tag="$(git describe --tags --abbrev=0 2>/dev/null)"
[ "$tag" ] || usage "No current tag to update. Make a tag first."
git tag -f "$tag"
git push -f --tags
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+1
View File
@@ -0,0 +1 @@
vxcontrol
+15
View File
@@ -0,0 +1,15 @@
*
!/.mgit/
/.mgit/*/
!/.mgit/luapower-repos.exclude
!/.mgit/*.baseurl
!/.mgit/*.release
!/.mgit/luapower-repos.help
!/.mgit/*.sh
!/.mgit/luapower-cat.md
/.mgit/luapower-repos.origin
/.mgit/bundle*.sh
/.mgit/ci*.sh
/.mgit/luapower-ci.*
/.mgit/egr.*
/.mgit/bf.*
+16
View File
@@ -0,0 +1,16 @@
LUAPOWER EXTENSIONS:
REPO|--all up [MESSAGE] add/commit/push combo
REPO|--all bump bump current major version and push tags
REPO|--all uptag update tag to current commit and push tags (!)
REPO|--all clear-history clear all the history of the current branch (!)
REPO|--all update-perms git-chmod +x all .sh files in repo
build ... build a single package
build-all ... build packages in the right order
syms ... report symbols and dependent libraries
check-glibc-symvers report glibc symbol versions > GLIBC 2.7
check-osx-rpath check install_name on osx dylibs
check-other-symvers list non-glibc symbol versions
precompile ... precompile headers into Lua cdef files
platform [-o|-a] detect current platform, OS or architecture
+1
View File
@@ -0,0 +1 @@
https://github.com/luapower/
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
# detect current platform, OS and architecture.
# supported platforms: mingw32, mingw64, linux32, linux64, osx32, osx64.
# supported OSs: mingw, linux, osx.
# supported archs: 32, 64.
[ "x$1" = "x-h" -o "$1" = "x--help" ] && \
echo "Usage: mgit platform [-o|-a]" && exit
O=
A=
[ "$PROCESSOR_ARCHITECTURE" = "AMD64" -o "$PROCESSOR_ARCHITEW6432" = "AMD64" ] && { O=mingw; A=64; } || {
[ "$OSTYPE" = "msys" ] && { O=mingw; A=32; } || {
A=32; [ "$(uname -m)" = "x86_64" ] && A=64
[ "${OSTYPE#darwin}" != "$OSTYPE" ] && O=osx || O=linux
}
}
if [ "x$1" = x-o ]; then
echo $O
elif [ "x$1" = x-a ]; then
echo $A
elif [ "x$1" = x-32 ]; then
echo ${O}32
elif [ "x$1" = x-64 ]; then
echo ${O}64
else
echo $O$A
fi
+1
View File
@@ -0,0 +1 @@
luapower
+55
View File
@@ -0,0 +1,55 @@
local f0 --current filename
local files = {} --{filename = lines_t}
local def = {}
local fstack = {}
for s in io.stdin:lines() do
local f = s:match'^# %d+ "(.-)"'
if f then
f0 = f
else
if not files[f0] then
fstack[#fstack+1] = f0
files[f0] = {}
end
local df = files[f0]
local d,v = s:match'^#define%s+([_%w]+)%s+(.*)'
if d then
if v ~= '' and not d:find'^_(.-)_H_$' then
if not def[f0] then
table.insert(df, 'enum {')
end
table.insert(df, string.format('\t%-20s = %s,', d, v))
def[f0] = d
end
else
if def[f0] then
table.insert(df, '};')
def[f0] = nil
end
table.insert(df, s)
end
end
end
for f,df in pairs(files) do
if def[f] then
table.insert(df, '};')
end
end
local f = io.stdout
f:write[=[
local ffi = require'ffi'
ffi.cdef[[
]=]
for _,m in ipairs(fstack) do
f:write('\n// '..m..'\n')
for _,s in ipairs(files[m]) do
f:write(s..'\n')
end
end
f:write']]\n'
f:close()
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# preprocess multiple C header files into a single Lua file
usage() {
echo "USAGE: CFLAGS=... mgit precompile [-m32] [-posix] FILE1.h ..."
exit 1
}
[ "x$1" = "x-m32" ] && { CFLAGS="$CFLAGS -m32"; shift; }
[ "x$1" = "x-posix" ] && { CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=200112L"; shift; }
[ "$1" ] || usage
inc_headers() {
if [ "x$1" = "x-" ]; then
cat
else
for h in $@; do
if [ -f "$h" ]; then
echo "#include \"$h\""
else
echo "#include <$h>"
fi
done
fi
}
inc_headers "$@" | gcc $CFLAGS -E -dD -xc - \
| grep -v '^$' \
| grep -v '#undef' \
| sed 's/__asm\(.*\)//g' \
| "./luajit" .mgit/precompile.lua
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
vxcontrol
Executable
+149
View File
@@ -0,0 +1,149 @@
#!/bin/bash
# dump symbols from dynamic libraries
LANG=C # for sort
P=$(.mgit/platform.sh)
O=$(.mgit/platform.sh -o)
[ "$O" ] || exit 1
[ $O = mingw ] && { PREFIX=; SUFFIX=.dll; CSUFFIX=.dll; }
[ $O = linux ] && { PREFIX=lib; SUFFIX=.so; CSUFFIX=.so; }
[ $O = osx ] && { PREFIX=lib; SUFFIX=.dylib; CSUFFIX=.so; }
DEF=d
usage() {
echo
echo " USAGE: mgit syms [-d|-u|-l|-lu|-f] LIBNAME1|LIBFILE1$SUFFIX ..."
echo
echo " -d dump defined symbols (default)"
echo " -u dump undefined symbols"
echo " -l dump dependent libraries"
echo " -lu dump dependent libraries and symbols (Windows)"
echo " -f dump dependent frameworks (OSX)"
echo
exit 1
}
[ -z "$1" ] && usage
if [ "x${1:0:1}" = "x-" ]; then
if [ \
"x$1" = "x-d" -o \
"x$1" = "x-u" -o \
"x$1" = "x-l" -o \
"x$1" = "x-lu" -o \
"x$1" = "x-f" \
]; then
DEF=${1:1}
shift
else
usage
fi
fi
# clean up a list of libs (remove prefix, suffix and implicit dependencies)
clean_libname() {
while read s; do
# show full-pathname deps as they are
[ "${s#/}" = "$s" ] && {
# filename -> libname
s="$(echo "$s" | tr '[A-Z]' '[a-z]')" # lowercase
s=${s%.[0-9]*} # remove .major suffix (Linux)
s=${s#@rpath/} # remove @rpath/ prefix (OSX)
eval s=\$\{s#$PREFIX\} # remove platform-specific prefix
eval s=\$\{s%$SUFFIX\} # remove platform-specific suffix
}
# skip Linux implicit deps
[ "$s" = "linux-vdso" ] && continue
[[ "$s" == *"/ld-linux"* ]] && continue
[ "$s" = "linux-gate" ] && continue
# skip semi-implicit C runtime dep
[ $O = osx -a "$s" = "/usr/lib/libSystem.B.dylib" ] && continue
[ $O = mingw -a "$s" = "msvcrt" ] && continue
[ $O = linux -a "$s" = "c" ] && continue
echo "$s"
done
}
syms_d_osx() { nm -gUj "$1" | cut -c2- | sed 's/$.*//' | sort -u; }
syms_u_osx() { nm -guj "$1" | cut -c2- | sed 's/$.*//' | sort -u; }
syms_d_linux() { nm -gD --defined-only -f posix "$1" | cut -f1 -d' ' | sed 's/@.*//' | sort -u; }
syms_u_linux() { nm -gDu -f posix "$1" | cut -f1 -d' ' | sed 's/@.*//' | sort -u; }
syms_d_mingw() {
local x=0
objdump -x "$1" | while read s; do
if [ $x = 0 ]; then
[ "$s" = '[Ordinal/Name Pointer] Table' ] && x=1
elif [ -z "$s" ]; then
break
else
echo "${s:7}"
fi
done | sort -u
}
syms_u_mingw() {
local x=0
objdump -x "$1" | while read s; do
if [ $x = 0 ]; then
if [[ "$s" == *"DLL Name:"* ]]; then
x=1
fi
elif [ -z "$s" ]; then
x=0
elif [ $x = 1 ]; then
x=2
elif [ $x = 2 ]; then
echo "${s:13}"
fi
done
}
syms_lu_mingw() {
local x=0
objdump -x "$1" | while read s; do
if [ $x = 0 ]; then
if [[ "$s" == *"DLL Name:"* ]]; then
echo "${s:10}" | clean_libname
x=1
fi
elif [ -z "$s" ]; then
x=0
elif [ $x = 1 ]; then
x=2
elif [ $x = 2 ]; then
echo " ${s:13}"
fi
done
}
syms_l_mingw() {
objdump -x "$1" | grep "DLL Name:" | cut -f3 -d' ' | clean_libname
}
syms_l_linux() {
ldd "$1" | cut -f1 -d' ' | clean_libname | sort
}
syms_l_osx() {
otool -L "$1" | tail -n +2 | cut -f1 -d' ' | grep -v '\.framework' | clean_libname | sort
}
syms_f_osx() {
otool -L "$1" | tail -n +2 | cut -f1 -d' ' | grep '\.framework' | while read s; do
s="${s#/System/Library/Frameworks/}"
s="${s%.framework*}"
echo "$s"
done | sort
}
syms_one() {
local fn="$1"
local f="$fn"
[ -f "$f" ] || f="bin/$P/$PREFIX$fn$SUFFIX"
[ -f "$f" ] || f="bin/$P/clib/$fn$CSUFFIX"
syms_${DEF}_${O} "$f"
}
while [ "$1" ]; do
syms_one "$1"
shift
done
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
luapower
+1
View File
@@ -0,0 +1 @@
git@github.com:vxcontrol/
+12
View File
@@ -0,0 +1,12 @@
---
tagline: the luapower multigit meta-package
---
This multigit repo is the luapower's meta-package. It contains the `.origin`
files of all the official luapower packages which enables `mgit clone-all`,
`mgit ls-all` and `./luapower ls-all`.
It also contains various luapower-specific mgit plugins useful for building
packages and working with git (type `mgit` in the luapower dir for info on
those) and `luapower-cat.md` which enables the [luapower] module to
categorize packages for the website.
+378
View File
@@ -0,0 +1,378 @@
print("This is file for modules testing")
print("It should work on any system")
print("----------------")
local nmodule = 0
package.path = package.path .. ";./?.lua;./?/init.lua"
local ffi = require'ffi'
-- amqp testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is amqp testing:")
print(require("amqp") and "ok" or "failed")
print("----------------")
-- bundle testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is bundle testing:")
print(require("bundle") and "ok" or "failed")
-- TODO: here need to fix bug with loading libraries in luapower.lua
-- require("bundle_test")
print("----------------")
-- coro testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is coro testing:")
print(require("coro") and "ok" or "failed")
require("coro_test")
print("----------------")
-- crc32 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is crc32 testing:")
print(require("crc32") and "ok" or "failed")
print("----------------")
-- cjson testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is cjson testing:")
print(require("cjson") and "ok" or "failed")
print("----------------")
-- dynasm testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is dynasm testing:")
print(require("dynasm") and "ok" or "failed")
print("----------------")
-- events testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is events testing:")
print(require("events") and "ok" or "failed")
print("----------------")
-- expat testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is expat testing:")
print(require("expat") and "ok" or "failed")
require("expat_test")
print("----------------")
-- ffi_reflect testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is ffi_reflect testing:")
print(require("ffi_reflect") and "ok" or "failed")
-- TODO: here need to fix bug in line 105
-- require("ffi_reflect_test")
print("----------------")
-- fribidi testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is fribidi testing:")
print(require("fribidi") and "ok" or "failed")
require("fribidi_test")
print("----------------")
-- fs testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is fs testing:")
print(require("fs") and "ok" or "failed")
require("fs_test")
print("----------------")
-- genx testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is genx testing:")
print(require("genx") and "ok" or "failed")
require("genx_demo")
print("----------------")
-- glue testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is glue testing:")
print(require("glue") and "ok" or "failed")
require("glue_test")
print("----------------")
-- heap testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is heap testing:")
print(require("heap") and "ok" or "failed")
-- TODO: here need to fix bug with explicit importing pp module in line 100
-- require("heap_test")
print("----------------")
-- inspect testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is inspect testing:")
print(require("inspect") and "ok" or "failed")
print("----------------")
-- jsonschema testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is jsonschema testing:")
print(require("jsonschema") and "ok" or "failed")
print("----------------")
-- lanes testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lanes testing:")
print(require("lanes") and "ok" or "failed")
print("----------------")
-- lfs testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lfs testing:")
print(require("lfs") and "ok" or "failed")
-- TODO: here need to fix bug "unprotected error in call to Lua API (setmode: closed file)"
-- require("lfs_test")
print("----------------")
-- libb64 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is libb64 testing:")
print(require("libb64") and "ok" or "failed")
require("libb64_test")
print("----------------")
-- libcurl testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is libcurl testing:")
print(require("libcurl") and "ok" or "failed")
require("libcurl_test")
print("----------------")
-- lightningmdb testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lightningmdb testing:")
print(require("lightningmdb") and "ok" or "failed")
require("lightningmdb_test")
print("----------------")
-- linkedlist testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is linkedlist testing:")
print(require("linkedlist") and "ok" or "failed")
require("linkedlist_test")
print("----------------")
-- lrucache testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lrucache testing:")
print(require("lrucache") and "ok" or "failed")
print("----------------")
-- lua-openssl testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lua-openssl testing:")
print(require("openssl") and "ok" or "failed")
print(require("openssl").digest and "digest - ok" or "failed")
print(require("openssl").cipher and "cipher - ok" or "failed")
print(require("openssl").bio and "bio - ok" or "failed")
print(require("openssl").cms and "cms - ok" or "failed")
print(require("openssl").x509 and "x509 - ok" or "failed")
print(require("openssl").engine and "engine - ok" or "failed")
print(require("crypto") and "crypto - ok" or "failed")
print(require("ssl") and "ssl - ok" or "failed")
print(require("https") and "https - ok" or "failed")
print("----------------")
-- lsqlite3 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is lsqlite3 testing:")
print(require("lsqlite3") and "ok" or "failed")
print("----------------")
-- luastate testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is luastate testing:")
print(require("luastate") and "ok" or "failed")
require("luastate_test")
print("----------------")
-- md5 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is md5 testing:")
print(require("md5") and "ok" or "failed")
require("md5_test")
print("----------------")
-- minizip testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is minizip testing:")
print(require("minizip") and "ok" or "failed")
require("minizip_test")
print("----------------")
-- mustache testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is mustache testing:")
print(require("mustache") and "ok" or "failed")
require("mustache_test")
print("----------------")
-- path testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is path testing:")
print(require("path") and "ok" or "failed")
require("path_test")
print("----------------")
-- pp testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is pp testing:")
print(require("pp") and "ok" or "failed")
-- TODO: here need to fix bug with format converting in line 8 (to 9223372036854775808ULL)
-- require("pp_test")
print("----------------")
-- prettycjson testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is prettycjson testing:")
print(require("prettycjson") and "ok" or "failed")
print("----------------")
-- pthread testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is pthread testing:")
print(require("pthread") and "ok" or "failed")
require("pthread_test")
print("----------------")
-- protobuf testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is protobuf testing:")
print(require("protoc") and "ok" or "failed")
require("protoc_test")
print("----------------")
-- ringbuffer testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is ringbuffer testing:")
print(require("ringbuffer") and "ok" or "failed")
require("ringbuffer_demo")
print("----------------")
-- reader testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is reader testing:")
print(require("reader") and "ok" or "failed")
require("reader_test")
print("----------------")
-- rex_pcre2 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is rex_pcre2 testing:")
print(require("rex_pcre2") and "ok" or "failed")
require("rex_run_test")
print("----------------")
-- sha2 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is sha2 testing:")
print(require("sha2") and "ok" or "failed")
require("sha2_test")
print("----------------")
-- socket testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is socket testing:")
print(require("socket") and "ok" or "failed")
print("----------------")
-- socketloop testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is socketloop testing:")
print(require("socketloop") and "ok" or "failed")
-- TODO: here need to fix bug with loading libraries through bundle in lanes module
-- require("socketloop_test")
print("----------------")
-- struct testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is struct testing:")
print(require("struct") and "ok" or "failed")
-- TODO: here need to fix bug in line 170
-- require("struct_test")
print("----------------")
-- thread testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is thread testing:")
print(require("thread") and "ok" or "failed")
require("thread_test")
print("----------------")
-- time testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is time testing:")
print(require("time") and "ok" or "failed")
print("----------------")
-- tuple testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is tuple testing:")
print(require("tuple") and "ok" or "failed")
require("tuple_test")
print("----------------")
-- unit testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is unit testing:")
print(require("unit") and "ok" or "failed")
print("----------------")
-- unixperms testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is unixperms testing:")
print(require("unixperms") and "ok" or "failed")
print("----------------")
-- uri testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is uri testing:")
print(require("uri") and "ok" or "failed")
require("uri_test")
print("----------------")
-- utf8 testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is utf8 testing:")
print(require("utf8") and "ok" or "failed")
require("utf8_test")
print("----------------")
-- waffi testing
if ffi.os == "Windows" then
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is waffi testing:")
require("waffi_test")
print("----------------")
end
-- winapi testing
if ffi.os == "Windows" then
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is winapi testing:")
print(require("winapi") and "ok" or "failed")
require("winapi_test")
print("----------------")
end
-- xxhash testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is xxhash testing:")
print(require("xxhash") and "ok" or "failed")
print("----------------")
-- yaci testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is yaci testing:")
print(require("yaci") and "ok" or "failed")
print("----------------")
-- zlib testing
nmodule = nmodule + 1
print(tostring(nmodule) .. ". This is zlib testing:")
print(require("zlib") and "ok" or "failed")
require("zlib_test")
print("----------------")