aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Jenkinsfile60
1 files changed, 39 insertions, 21 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 122424f..3293c99 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,27 +24,45 @@ pipeline {
echo 'Creating test script on Jenkins agent...'
sh '''
cat <<'EOF' > test_52.lua
- -- Lua 5.2-specific features
- print("--- Running Lua 5.2 Compatibility Test ---")
- local _ENV = { print = print, x = 123 } -- lexical environments
- function show_x()
- print("x =", x)
- end
- show_x()
- -- Bitwise ops (using the bit32 library provided by compat53)
- local bit32 = require("bit32")
- local a, b = 0x5, 0x3
- print("Bitwise AND:", bit32.band(a, b))
- -- load() replaces loadstring() (binary and text)
- local f = load("return 10 + 20")
- print("Loaded result:", f())
- -- table.pack / table.unpack
- local t = table.pack(1, 2, 3, nil, 5)
- print("Packed length:", t.n)
- print("Unpacked values:", table.unpack(t, 1, t.n))
- print("--- Test Complete ---")
- EOF
+-- Lua 5.2-specific features test
+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
+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")
+if f then
+ print("Loaded function result:", f())
+else
+ print("Failed to load function")
+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 5: String operations
+local str = "Hello, World!"
+print("String length:", #str)
+print("Substring:", string.sub(str, 1, 5))
+
+-- Test 6: Math operations
+print("Math operations:")
+print(" sqrt(16) =", math.sqrt(16))
+print(" max(10, 20, 5) =", math.max(10, 20, 5))
+
+print("--- Test Complete: All basic features working ---")
+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"
@@ -75,4 +93,4 @@ pipeline {
sh 'docker rmi lush-app:latest || true'
}
}
-}
+} \ No newline at end of file
avatar.com/avatar/55890348943c40816d240af8284ae556?s=13&d=retro' width='13' height='13' alt='Gravatar' /> Anselm R.Garbe 5-34/+7 2006-08-10swapping my default colorsGravatar Anselm R.Garbe 1-2/+2 2006-08-10added uppercase chars for C-u and C-h as wellGravatar Anselm R.Garbe 1-0/+2 2006-08-10removed C-[ from source and man pageGravatar Anselm R.Garbe 2-5/+1 2006-08-09removed control sequences which actually aren't implemented anymore (only the...Gravatar Anselm R.Garbe 1-4/+4 2006-08-08fixes to READMEGravatar Anselm R.Garbe 1-2/+2 2006-08-08default colors are bestGravatar Anselm R.Garbe 1-3/+3 2006-08-08noborderGravatar Anselm R.Garbe 1-2/+2 2006-08-08ditoGravatar Anselm R.Garbe 1-2/+2 2006-08-08using a better colorschemeGravatar Anselm R.Garbe 1-1/+1 2006-08-07removed unnecessary typedefGravatar arg@10ksloc.org 1-1/+0 2006-08-07made dmenu(1) more dwm(1) alikeGravatar arg@10ksloc.org 1-23/+22 2006-08-07font size changed as wellGravatar arg@10ksloc.org 1-1/+1 2006-08-07appliead Sanders manpage/Makefile pacthGravatar arg@10ksloc.org 2-2/+2 2006-08-07fixed dmenu.1 version infoGravatar arg@10ksloc.org 1-1/+1 2006-08-07settle with greyGravatar arg@10ksloc.org 1-2/+2 2006-08-07next version is 0.3Gravatar arg@10ksloc.org 1-1/+1 2006-08-07also made my colors tasting better with my overall colorschemeGravatar arg@10ksloc.org 1-3/+3 2006-08-07next attempt for bright background switchGravatar arg@10ksloc.org 1-3/+3 2006-08-07Added tag 0.2 for changeset 656be0f47df545dfdd2e1e0663663b8b1b26f031Gravatar arg@10ksloc.org 1-0/+1 2006-08-07added stripping to dmenu targetGravatar arg@10ksloc.org 1-0/+1 2006-08-07fixed a bad mistake setting the dmenu border to False;Gravatar arg@10ksloc.org 1-1/+0 2006-08-07renamed some functions to make it more readableGravatar arg@10ksloc.org 1-9/+9 2006-08-07updated man pageGravatar arg@10ksloc.org 1-1/+1 2006-08-07updated man pageGravatar arg@10ksloc.org 1-0/+4 2006-08-07removed -t title crap from dmenuGravatar arg@10ksloc.org 2-57/+12 2006-08-05menu now also uses -OsGravatar arg@10ksloc.org 1-2/+2 2006-08-05small changeGravatar arg@10ksloc.org 1-1/+1 2006-08-04yet another fixGravatar arg@10ksloc.org 1-2/+2 2006-08-04fixed README of dmenuGravatar arg@10ksloc.org 1-27/+10 2006-08-04fixed dist targetGravatar arg@10ksloc.org 1-1/+1 2006-08-04removed config.hGravatar arg@10ksloc.org 1-9/+0