mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 03:27:03 +04:00
old just disabled version test, but as LuaJIt 2.1. part is stable. So we can use that for test if luajit2 itself able to run. Fixes:c7ca6d46f7luajit2: ("add test-version.sh") Suggested-by: Josef Schlehofer <pepe.schlehofer@gmail.com> Signed-off-by: Seo Suchan <tjtncks@gmail.com> (cherry picked from commit5504291b81)
14 lines
236 B
Bash
14 lines
236 B
Bash
#!/bin/sh
|
|
|
|
# shellcheck shell=busybox
|
|
|
|
case "$PKG_NAME" in #luajit2 use build number at -v but releases are named by date
|
|
luajit2)
|
|
luajit2 -v 2>&1 | grep -F "LuaJIT 2.1."
|
|
;;
|
|
*)
|
|
echo "Untested package: $PKG_NAME" >&2
|
|
exit 1
|
|
;;
|
|
esac
|