mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 03:06:26 +02:00
Update for new API
This commit is contained in:
commit
c10a30b69a
78 changed files with 2063 additions and 868 deletions
1
lxc/tests/awk.awk
Normal file
1
lxc/tests/awk.awk
Normal file
|
@ -0,0 +1 @@
|
|||
{ print "good" }
|
1
lxc/tests/jelly.jelly
Normal file
1
lxc/tests/jelly.jelly
Normal file
|
@ -0,0 +1 @@
|
|||
³
|
3
lxc/tests/kotlin.kt
Normal file
3
lxc/tests/kotlin.kt
Normal file
|
@ -0,0 +1,3 @@
|
|||
fun main() {
|
||||
println("good")
|
||||
}
|
18
lxc/tests/nasm64.nasm
Normal file
18
lxc/tests/nasm64.nasm
Normal file
|
@ -0,0 +1,18 @@
|
|||
SECTION .data
|
||||
good: db "good", 0x0
|
||||
txtlen: equ $ - good
|
||||
|
||||
SECTION .text
|
||||
GLOBAL _start
|
||||
|
||||
_start:
|
||||
;sys_write
|
||||
mov rax, 1
|
||||
mov rdi, 1
|
||||
mov rsi, good
|
||||
mov rdx, txtlen
|
||||
syscall
|
||||
;sys_exit
|
||||
mov rax, 60
|
||||
mov rdi, 0
|
||||
syscall
|
11
lxc/tests/paradoc.sh
Normal file
11
lxc/tests/paradoc.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# add paradoc module to python python
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
|
||||
# file for test code
|
||||
test_code=/tmp/paradoc.test
|
||||
# save test code to file
|
||||
echo -n iP>$test_code
|
||||
# pass param to paradoc module and have it print it
|
||||
echo good | python3.8 -m paradoc $test_code
|
||||
# clean test code
|
||||
rm -f $test_code
|
|
@ -1,3 +0,0 @@
|
|||
good
|
||||
___code___
|
||||
{ print }
|
|
@ -1,3 +0,0 @@
|
|||
fun main(args: Array<String>) {
|
||||
println("good")
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
SECTION .data
|
||||
good: db "good", 0x0a, 0x0
|
||||
txtlen: equ $ - good
|
||||
|
||||
SECTION .text
|
||||
GLOBAL _start
|
||||
|
||||
_start:
|
||||
;sys_write
|
||||
mov rax, 1
|
||||
mov rdi, 1
|
||||
mov rsi, good
|
||||
mov rdx, txtlen
|
||||
syscall
|
||||
;sys_exit
|
||||
mov rax, 60
|
||||
mov rdi, 0
|
||||
syscall
|
|
@ -1,5 +0,0 @@
|
|||
try:
|
||||
import paradoc
|
||||
print('good')
|
||||
except:
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue