mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 21:16:29 +02:00
more tests directory, fix missing tests
This commit is contained in:
parent
e21173173f
commit
0b85a84877
24 changed files with 43 additions and 43 deletions
43
lxc/test_all_lxc
Executable file
43
lxc/test_all_lxc
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/usr/bin/env bash
|
||||
cd tests
|
||||
|
||||
echo 'testing awk'
|
||||
../execute awk test.awk
|
||||
echo 'testing c'
|
||||
../execute c test.c
|
||||
echo 'testing cpp'
|
||||
../execute cpp test.cpp
|
||||
echo 'testing cs'
|
||||
../execute cs test.cs
|
||||
#echo 'testing elixir'
|
||||
#../execute exs test.exs
|
||||
echo 'testing go'
|
||||
../execute go test.go
|
||||
echo 'testing java'
|
||||
../execute java test.java
|
||||
echo 'testing kotlin'
|
||||
../execute kotlin test.kt
|
||||
echo 'testing asm'
|
||||
../execute asm test.nasm
|
||||
echo 'testing js'
|
||||
../execute js test.js
|
||||
echo 'testing jl'
|
||||
../execute jl test.jl
|
||||
echo 'testing php'
|
||||
../execute php test.php
|
||||
echo 'testing perl'
|
||||
../execute perl test.pl
|
||||
echo 'testing python2'
|
||||
../execute python2 test2.py
|
||||
echo 'testing python3'
|
||||
../execute python3 test3.py
|
||||
echo 'testing ruby'
|
||||
../execute ruby test.rb
|
||||
echo 'testing rust'
|
||||
../execute rust test.rs
|
||||
echo 'testing swift'
|
||||
../execute swift test.swift
|
||||
echo 'testing bash'
|
||||
../execute bash test.sh
|
||||
echo 'testing typescript'
|
||||
../execute typescript test.ts
|
3
lxc/tests/test.awk
Normal file
3
lxc/tests/test.awk
Normal file
|
@ -0,0 +1,3 @@
|
|||
good
|
||||
___code___
|
||||
{ print }
|
5
lxc/tests/test.c
Normal file
5
lxc/tests/test.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <stdio.h>
|
||||
|
||||
void main(void) {
|
||||
printf("good\n");
|
||||
}
|
6
lxc/tests/test.cpp
Normal file
6
lxc/tests/test.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include <iostream>
|
||||
|
||||
int main(void) {
|
||||
printf("good\n");
|
||||
return 1;
|
||||
}
|
9
lxc/tests/test.cs
Normal file
9
lxc/tests/test.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
namespace HelloWorld {
|
||||
class Hello {
|
||||
static void Main() {
|
||||
Console.WriteLine("good");
|
||||
}
|
||||
}
|
||||
}
|
1
lxc/tests/test.el
Normal file
1
lxc/tests/test.el
Normal file
|
@ -0,0 +1 @@
|
|||
(message "good")
|
7
lxc/tests/test.go
Normal file
7
lxc/tests/test.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("good")
|
||||
}
|
5
lxc/tests/test.java
Normal file
5
lxc/tests/test.java
Normal file
|
@ -0,0 +1,5 @@
|
|||
public class HelloWorld {
|
||||
public static void main(String[] args) {
|
||||
System.out.println("good");
|
||||
}
|
||||
}
|
1
lxc/tests/test.jl
Normal file
1
lxc/tests/test.jl
Normal file
|
@ -0,0 +1 @@
|
|||
println("good")
|
1
lxc/tests/test.js
Normal file
1
lxc/tests/test.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('good')
|
3
lxc/tests/test.kt
Normal file
3
lxc/tests/test.kt
Normal file
|
@ -0,0 +1,3 @@
|
|||
fun main(args: Array<String>) {
|
||||
println("good")
|
||||
}
|
16
lxc/tests/test.nasm
Normal file
16
lxc/tests/test.nasm
Normal file
|
@ -0,0 +1,16 @@
|
|||
SECTION .DATA
|
||||
good: db 'good',10
|
||||
txtlen: equ $-good
|
||||
|
||||
SECTION .TEXT
|
||||
GLOBAL _start
|
||||
|
||||
_start:
|
||||
mov eax,4
|
||||
mov ebx,1
|
||||
mov ecx,good
|
||||
mov edx,txtlen
|
||||
int 80h
|
||||
mov eax,1
|
||||
mov ebx,0
|
||||
int 80h
|
3
lxc/tests/test.php
Normal file
3
lxc/tests/test.php
Normal file
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
|
||||
echo 'good' . "\n";
|
1
lxc/tests/test.pl
Normal file
1
lxc/tests/test.pl
Normal file
|
@ -0,0 +1 @@
|
|||
print "good\n";
|
1
lxc/tests/test.rb
Normal file
1
lxc/tests/test.rb
Normal file
|
@ -0,0 +1 @@
|
|||
puts 'good'
|
3
lxc/tests/test.rs
Normal file
3
lxc/tests/test.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
fn main() {
|
||||
println!("good");
|
||||
}
|
1
lxc/tests/test.sh
Normal file
1
lxc/tests/test.sh
Normal file
|
@ -0,0 +1 @@
|
|||
echo 'good'
|
1
lxc/tests/test.swift
Normal file
1
lxc/tests/test.swift
Normal file
|
@ -0,0 +1 @@
|
|||
print("good")
|
1
lxc/tests/test.ts
Normal file
1
lxc/tests/test.ts
Normal file
|
@ -0,0 +1 @@
|
|||
console.log('good')
|
1
lxc/tests/test2.py
Normal file
1
lxc/tests/test2.py
Normal file
|
@ -0,0 +1 @@
|
|||
print 'good'
|
1
lxc/tests/test3.py
Normal file
1
lxc/tests/test3.py
Normal file
|
@ -0,0 +1 @@
|
|||
print('good')
|
Loading…
Add table
Add a link
Reference in a new issue