quickjs: add basic evaluation test

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

Signed-off-by: George Sapkin <george@sapk.in>
(cherry picked from commit e38f41afe3)
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
George Sapkin authored and Josef Schlehofer committed 2026-10-05 08:00:26 +02:00
1 parent b897f6e964
commit 23de678eaa
2 files changed
+21 -3

No files matched your search

+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