quickjs: add basic evaluation test

Add basic JS evaluation test and move version check to override.

Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin
2026-06-08 16:24:37 +03:00
parent 56f59039b5
commit e38f41afe3
2 changed files with 21 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
# shellcheck shell=busybox
case "$PKG_NAME" in
quickjs)
qjs --help | grep -F "${PKG_VERSION//./-}"
;;
*)
echo "Untested package: $PKG_NAME" >&2
exit 1
;;
esac
Regular → Executable
+7 -3
View File
@@ -1,5 +1,9 @@
#!/bin/sh
if [ "$1" = 'quickjs' ]; then
qjs --help | grep -F "${PKG_VERSION//./-}"
fi
# shellcheck shell=busybox
case "$PKG_NAME" in
quickjs)
qjs --eval 'console.log(2 ** 8)' | grep 256
;;
esac