aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile21
1 files changed, 11 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 3293c99..51a46d8 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,3 +1,5 @@
+// Jenkinsfile
+
pipeline {
agent any
@@ -30,24 +32,23 @@ print("--- Running Lua 5.2 Compatibility Test ---")
-- Test 1: Basic functionality
print("Basic print test: Hello from Lush!")
--- Test 2: Bitwise operations using bit32 library (provided by compat53)
-local bit32 = require("bit32")
-local a, b = 0x5, 0x3
+-- Test 2: Bitwise operations using the preloaded bit32 library
+-- The lush host preloads compat modules, so we don't need to 'require' it.
+local a, b = 5, 3
print("Bitwise AND of", a, "and", b, "=", bit32.band(a, b))
print("Bitwise OR of", a, "and", b, "=", bit32.bor(a, b))
-- Test 3: load() function (replaces loadstring in Lua 5.2)
-local f = load("return 10 + 20")
+local f, err = load("return 10 + 20")
if f then
print("Loaded function result:", f())
else
- print("Failed to load function")
+ print("Failed to load function:", err)
end
--- Test 4: table.pack and table.unpack
-local t = table.pack(1, 2, 3, nil, 5)
-print("Packed table length:", t.n)
-print("First 3 values:", table.unpack(t, 1, 3))
+-- Test 4: table.unpack
+local t = {1, 2, 3}
+print("Unpacked values:", table.unpack(t))
-- Test 5: String operations
local str = "Hello, World!"
@@ -93,4 +94,4 @@ EOF
sh 'docker rmi lush-app:latest || true'
}
}
-} \ No newline at end of file
+}
highlight'> 2024-09-23implemented piping into new chaining methodGravatar BanceDev 1-10/+30 2024-09-18fixed && chaining for builtinsGravatar BanceDev 2-23/+31 2024-09-18added basic && chainingGravatar BanceDev 2-8/+73 2024-09-17changed tokenizer to handle all the chaining operatorsGravatar BanceDev 3-20/+78 2024-09-17Update README.mdGravatar Lance Borden 1-0/+1 2024-09-13added better clarification to help menuGravatar BanceDev 1-1/+2 2024-09-13improved installation instructionsGravatar BanceDev 1-3/+3 2024-09-12v0.1.1Gravatar BanceDev 1-1/+1 2024-09-12fixed bug in input buffer handling due to misplaced printGravatar BanceDev 2-5/+8 2024-09-12Update build.yml checkout v4Gravatar Lance Borden 1-1/+1 2024-09-12Update build.yml to artifact v4Gravatar Lance Borden 1-1/+1 2024-09-12fixed exit status issue with non interative modeGravatar BanceDev 1-1/+1 2024-09-12added non interative mode for running lua scriptsGravatar BanceDev 2-4/+28 2024-09-12temporary github action fix until non-interactive mode is implementedGravatar BanceDev 1-2/+2 2024-09-12attempt to update build script to accept input into lush shellGravatar BanceDev 2-4/+6 2024-09-12prevent lush workflow from getting stuck in testsGravatar Lance Borden 1-1/+4 2024-09-12removed chsh in workflowGravatar Lance Borden 1-4/+1