From e4b34ef9f512f2374a6568aac179edc599946d8d Mon Sep 17 00:00:00 2001 From: Andrew D. France Date: Wed, 23 Jul 2025 00:13:09 -0500 Subject: This final change corrects the test script to align with what the compat53 library actually provides: the compat53 library is designed to bring Lua 5.1/5.2 up to the API level of 5.3, but it doesn't add new syntax to the parser, such as the & bitwise operator.: ln:25-47 --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index 0f7f901..122424f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,9 +31,10 @@ pipeline { print("x =", x) end show_x() - -- Bitwise ops (added in 5.2) + -- Bitwise ops (using the bit32 library provided by compat53) + local bit32 = require("bit32") local a, b = 0x5, 0x3 - print("Bitwise AND:", a & b) + print("Bitwise AND:", bit32.band(a, b)) -- load() replaces loadstring() (binary and text) local f = load("return 10 + 20") print("Loaded result:", f()) @@ -44,7 +45,6 @@ pipeline { print("--- Test Complete ---") EOF ''' - echo 'Creating and starting the build container...' // Create the container and keep it running in the background sh "docker run -d --name ${containerName} lush-app:latest sleep infinity" -- cgit v1.2.3-59-g8ed1b