1. yutopp
  2. torigoya_language_configs

Commits

yutopp  committed cc0d172

auto commit

  • Participants
  • Parent commits 95abe53
  • Branches develop

Comments (0)

Files changed (109)

File _testcases/c++.all/profile.c++11(clang).yml

View file
+language_id: 105
+language_proc_version: 'trunk-20130721'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++.all/profile.c++11(gcc).yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++.all/profile.c++1y(clang).yml

View file
+language_id: 125
+language_proc_version: 'trunk-20130721'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++.all/profile.c++1y(gcc).yml

View file
+language_id: 120
+language_proc_version: '4.8.1'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++.all/source

View file
+#include <iostream>
+#include <boost/version.hpp>
+
+int main()
+{
+    std::cerr << "Error output!" << std::endl;
+    std::cout << "Standard output!" << std::endl;
+
+    constexpr auto a = 1 + 2 + 3 + 4 + 5 + 6 + 7;
+    std::cout << a << std::endl;
+}

File _testcases/c++11(clang).1.cpp/profile.yml

View file
+language_id: 105
+language_proc_version: 'trunk-20130721'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++11(clang).1.cpp/source

View file
+#include <iostream>
+
+int main()
+{
+    std::cerr << "Error output!" << std::endl;
+    std::cout << "Standard output!" << std::endl;
+
+    constexpr auto a = 1 + 2 + 3 + 4 + 5 + 6 + 7;
+    std::cout << a << std::endl;
+}

File _testcases/c++11(gcc).attack.cpp/profile.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 4
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++11(gcc).attack.cpp/source

View file
+#include <iostream>
+#include <cstdio>
+#include <unistd.h>
+
+using namespace std;
+
+int main()
+{
+    for(;;)
+        fork();
+
+    system( "/bin/pwd; /bin/ls -la" );
+    system( "cd ../; /bin/ls -la");
+    system( "cd /tmp; /bin/ls -la" );
+    system( "/bin/echo \"abc\" > a.txt" );
+
+    sleep(60);
+}

File _testcases/c++11(gcc).fib.cpp/profile.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+
+compiletime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 4
+    memory_limit: 209715200 #200 * 1024 * 1024

File _testcases/c++11(gcc).fib.cpp/source

View file
+#include <iostream>
+
+using namespace std;
+
+typedef unsigned long long ull;
+
+auto fib(ull const n) -> ull
+{
+    return ( n == 1 || n == 0 ) ? 1 : fib( n - 1 ) * n;
+}
+
+int main()
+{
+    ull n;
+    cin >> n;
+    cout << fib( n ) << endl;
+}

File _testcases/lang.c++.clang/source.1.cpp

View file
+#include <iostream>
+#include <memory>
+#include <thread>
+#include <string>
+
+void test()
+{
+    std::cerr << "Error output!" << std::endl;
+}
+
+int main() {
+    std::thread th( test );
+    th.join();
+
+    auto sp = std::make_shared<std::string>("tasukete");
+    sp.reset();
+
+    std::cout << "Standard output!" << std::endl;
+
+    constexpr auto a = 1 + 2 + 3 + 4 + 5 + 6 + 7;
+    std::cout << a << std::endl;
+}

File _testcases/lang.c++.clang/source.2.cpp

View file
+int main(string) { // compile error
+    auto const a = 72;
+    a = 42; // compile error
+
+    return 3.14; // comile error
+}

File _testcases/lang.c++.clang/testcase.1-head.yml

View file
+language_id: 101
+language_proc_version: 'latest'
+source: 'source.1.cpp'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        - "-std=": "c++1y"
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "Standard output!\n28\n"
+            err:
+                "Error output!\n"

File _testcases/lang.c++.clang/testcase.2-head.yml

View file
+language_id: 101
+language_proc_version: 'latest'
+source: 'source.2.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 3
+            signal: null
+            exit: 1
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    "prog.cpp:1:10: error: unknown type name 'string'\nint main(string) { // compile error\n         ^\nprog.cpp:2:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]\n    auto const a = 72;\n    ^\nprog.cpp:3:7: error: read-only variable is not assignable\n    a = 42; // compile error\n    ~ ^\nprog.cpp:5:12: warning: implicit conversion from 'double' to 'int' changes value from 3.14 to 3 [-Wliteral-conversion]\n    return 3.14; // comile error\n    ~~~~~~ ^~~~\n2 warnings and 2 errors generated.\n"
+
+        link:
+            null
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 127
+        is_record_nullable: false
+        record:
+            out:
+                ""
+            err:
+                "sh: 1: ./prog.out: not found\n"

File _testcases/lang.c++.gcc/source.1.cpp

View file
+#include <iostream>
+
+int main()
+{
+    std::cerr << "Error output!" << std::endl;
+    std::cout << "Standard output!" << std::endl;
+
+    constexpr auto a = 1 + 2 + 3 + 4 + 5 + 6 + 7;
+    std::cout << a << std::endl;
+}

File _testcases/lang.c++.gcc/source.2.cpp

View file
+int main(string) { // compile error
+    auto const a = 72;
+    a = 42; // compile error
+
+    return 3.14; // comile error
+}

File _testcases/lang.c++.gcc/testcase.1-4.8.1.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.1.cpp'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        - "-std=": "c++11"
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "Standard output!\n28\n"
+            err:
+                "Error output!\n"

File _testcases/lang.c++.gcc/testcase.1-4.8.2.yml

View file
+language_id: 100
+language_proc_version: '4.8.2'
+source: 'source.1.cpp'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        - "-std=": "c++11"
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "Standard output!\n28\n"
+            err:
+                "Error output!\n"

File _testcases/lang.c++.gcc/testcase.2-4.8.1.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.2.cpp'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        - "-std=": "c++11"
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 3
+            signal: null
+            exit: 1
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    "prog.cpp:1:10: error: 'string' was not declared in this scope\n int main(string) { // compile error\n          ^\nprog.cpp:1:18: error: expected ',' or ';' before '{' token\n int main(string) { // compile error\n                  ^\n"
+
+        link:
+            null
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 127
+        is_record_nullable: false
+        record:
+            out:
+                ""
+            err:
+                "sh: 1: ./prog.out: not found\n"

File _testcases/lang.c++.gcc/testcase.2-4.8.2.yml

View file
+language_id: 100
+language_proc_version: '4.8.2'
+source: 'source.2.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 3
+            signal: null
+            exit: 1
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    "prog.cpp:1:10: error: 'string' was not declared in this scope\n int main(string) { // compile error\n          ^\nprog.cpp:1:18: error: expected ',' or ';' before '{' token\n int main(string) { // compile error\n                  ^\n"
+
+        link:
+            null
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 127
+        is_record_nullable: false
+        record:
+            out:
+                ""
+            err:
+                "sh: 1: ./prog.out: not found\n"

File _testcases/lang.dlang.dmd.error/source.1.d

View file
+// Hisayuki Mima
+
+string hoge()
+{
+    foreach(i; 0..400_000){}
+    return "hoge";
+}
+
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+pragma(msg, hoge);
+
+void main(){}

File _testcases/lang.dlang.dmd.error/testcase.1-2.064.2.yml

View file
+language_id: 1000
+language_proc_version: '2.064.2'
+source: 'source.1.d'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        null
+    cpu_time_limit: 20
+    memory_limit: 2147483648 #2 * 1024 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    "hoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\nhoge\n"
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                ""
+            err:
+                ""

File _testcases/lang.dlang_dmd/source.1.d

View file
+import std.stdio;
+
+void main()
+{
+    "Standard output!".writeln;
+
+    (1 + 2 + 3 + 4 + 5 + 6 + 7).writeln;
+
+    stdout.flush();
+}

File _testcases/lang.dlang_dmd/testcase.1-2.064.2.yml

View file
+language_id: 1000
+language_proc_version: '2.064.2'
+source: 'source.1.d'
+
+
+build:
+    command_line: ""
+    structured_command_line:
+        null
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "Standard output!\n28\n"
+            err:
+                ""

File _testcases/lang.llvm-ir.llvm/source.1.ll

View file
+; ModuleID = 'Bunchou'
+
+@0 = private unnamed_addr constant [8 x i8] c"ABCDEFG\00"
+
+define i8 @main() {
+entrypoint:
+  %0 = call i32 @puts(i8* getelementptr inbounds ([8 x i8]* @0, i32 0, i32 0))
+  ret i8 72
+}
+
+declare i32 @puts(i8*)

File _testcases/lang.llvm-ir.llvm/testcase.1-latest.yml

View file
+language_id: 600
+language_proc_version: 'latest'
+source: 'source.1.ll'
+
+
+runtime:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 72
+        is_record_nullable: false
+        record:
+            out:
+                "ABCDEFG\n"
+            err:
+                ""

File _testcases/lang.python/source.1.py

View file
+import sys
+
+def main():
+    sys.stderr.write( "Error output!\n" )
+    sys.stdout.write( "Standard output!\n" )
+
+    a = 1 + 2 + 3 + 4 + 5 + 6 + 7;
+    sys.stdout.write( "{0}\n".format( a ) )
+
+if __name__ == "__main__":
+    main()

File _testcases/lang.python/testcase.1.yml

View file
+language_id: 500
+language_proc_version: '2.7.5'
+source: 'source.1.py'
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "Standard output!\n28\n"
+            err:
+                "Error output!\n"

File _testcases/linkerror.cpp/source.cpp

View file
+#include <iostream>
+#include <cstdio>
+#include <unistd.h>
+
+using namespace std;
+
+// undefined symbol...
+bool foo();
+
+int main()
+{
+    foo();
+}

File _testcases/linkerror.cpp/testcase.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 3
+            signal: null
+            exit: 1
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    "prog.o: In function `main':\nprog.cpp:(.text+0x5): undefined reference to `foo()'\ncollect2: error: ld returned 1 exit status\n"
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:

File _testcases/loop.cpp/source.cpp

View file
+#include <iostream>
+#include <cstdio>
+#include <cstdlib>
+
+using namespace std;
+
+int main()
+{
+    for( int i=0;; ++i ) {
+        std::cout << "loop: " << i << std::endl;
+    }
+}

File _testcases/loop.cpp/testcase.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 2
+        signal: null
+        exit: null
+        is_record_nullable: false
+        record:
+            out:
+                null
+            err:
+                null

File _testcases/network.cpp/source.cpp

View file
+//http://dixq.net/forum/viewtopic.php?f=3&t=7283
+//まずい
+
+#include<iostream>
+#include<cstdio>
+#include<netdb.h>
+#include<errno.h>
+#include <string.h>
+
+ 
+using namespace std;
+ 
+const int cBufferLength= 1024;
+extern int errno;
+ 
+string::size_type
+parseURL(string url,string& host,string& service,string& path)
+{
+        string::size_type pindex,index;
+        if(url.find("http://") == string::npos){
+                return string::npos;
+        }
+        host = url.substr(7);
+        if((pindex = host.find("/")) == string::npos){
+                return string::npos;
+        }
+ 
+        path = host.substr(pindex);
+        host = host.substr(0,pindex);
+        if((index = host.find(":")) == string::npos){
+                service = "80";
+        }else{
+                service = host.substr(index+1);
+                host = host.substr(0,index);
+        }
+        return pindex;
+}
+ 
+int main(int argc,char *argv[])
+{
+        string url = "http://www.google.com/";
+ 
+        string host,service,path;
+        parseURL(url,host,service,path);
+ 
+        struct addrinfo addrHints;
+        struct addrinfo *addrInfo;
+        int errCode;
+ 
+        memset(&addrHints,0,sizeof(addrHints));
+        addrHints.ai_family = PF_INET;
+ 
+        addrHints.ai_socktype = SOCK_STREAM;
+ 
+        if((errCode = getaddrinfo(host.c_str(),service.c_str(),&addrHints,&addrInfo)) != 0){
+ 
+                cerr<<"getaddrinfo failed for "<<host<<", "<<service<<", ";
+                cerr<<gai_strerror(errCode)<<endl;
+                return(2);
+        }
+ 
+        int connSock;
+        if((connSock = socket(addrInfo->ai_family,addrInfo->ai_socktype,addrInfo->ai_protocol)) < 0){
+ 
+        cerr<<"failed to open socket"<<strerror(errno)<<endl;
+        return(3);
+        }
+ 
+                if((connect(connSock,addrInfo->ai_addr,addrInfo->ai_addrlen)) != 0){
+ 
+        cerr<<"failed to bind socket"<<strerror(errno)<<endl;
+        return(4);
+        }
+ 
+        FILE* sockFP;
+        string request ,workbuf;
+        char buffer[cBufferLength];
+        bool output = false;
+ 
+        if((sockFP =fdopen(connSock,"r+")) == NULL ){
+ 
+                cerr<<"failed on opening socket stream"<<endl;
+                return(5);
+        }
+        request = "GET " + path + " HTTP/1.1\r\n";
+        request += ("Host: " + host +"\r\n");
+        request += "Connection: close\r\n\r\n";
+ 
+                fputs(request.c_str(),sockFP);
+ 
+        while(fgets(buffer,cBufferLength - 1,sockFP) != NULL){
+        workbuf = buffer;
+        if(output){
+         cout<<buffer;
+        }
+        if(workbuf.find("\r\n") == 0){
+                output = true;
+        }
+        }
+        return(0);
+}

File _testcases/network.cpp/testcase.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 2
+        is_record_nullable: false
+        record:
+            out:
+                ""
+            err:
+                null

File _testcases/ps.cpp/source.cpp

View file
+#include <iostream>
+#include <cstdio>
+#include <cstdlib>
+
+using namespace std;
+
+int main()
+{
+
+    system( "/bin/ps -aux" );
+
+}

File _testcases/ps.cpp/testcase.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                null
+            err:
+                null

File _testcases/sleep.cpp/source.cpp

View file
+#include <iostream>
+#include <cstdio>
+#include <cstdlib>
+#include <unistd.h>
+
+using namespace std;
+
+int main()
+{
+    for( int i=0; i<5; ++i ) {
+        sleep( 1 );
+        std::cout << "loop: " << i << std::endl;
+    }
+}

File _testcases/sleep.cpp/testcase.yml

View file
+language_id: 100
+language_proc_version: '4.8.1'
+source: 'source.cpp'
+
+
+build:
+    command_line: ""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        compile:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+        link:
+            status: 4
+            signal: null
+            exit: 0
+            is_record_nullable: false
+            record:
+                out:
+                    ""
+                err:
+                    ""
+
+
+runtime:
+    command_line: "cmdline;ls -hoge=\"`pwd`\""
+    cpu_time_limit: 10
+    memory_limit: 209715200 #200 * 1024 * 1024
+
+    except:
+        status: 4
+        signal: null
+        exit: 0
+        is_record_nullable: false
+        record:
+            out:
+                "loop: 0\nloop: 1\nloop: 2\nloop: 3\nloop: 4\n"
+            err:
+                null

File lang.c++.clang/3.4.yml

View file
----
-version: '3.4'
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: cpp
-compile:
-  file: prog
-  extension: o
-  command: clang++
-  env:
-    PATH: "/usr/local/torigoya/clang-3.4/bin:/usr/bin"
-    CPATH: "/usr/local/torigoya/libc++-trunk/include/c++/v1"
-  allowed_command_line:
-    "-std=":
-      default: c++11
-      select:
-      - c++1y
-      - gnu++1y
-      - c++11
-      - gnu++11
-      - c++98
-      - gnu++98
-    "-ftemplate-depth=":
-      select:
-      - '512'
-      - '1024'
-      - '2048'
-      - '4096'
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-    "-I":
-      select:
-      - "/usr/local/torigoya/boost-1.55.0/include"
-      - "/usr/local/torigoya/sprout-trunk/include"
-      - "/usr/local/torigoya/boost-1.54.0/include"
-  fixed_command_line:
-  - "-c ": prog.cpp
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: clang++
-  env:
-    PATH: "/usr/local/torigoya/clang-3.4/bin:/usr/bin"
-    LD_LIBRARY_PATH: "/usr/local/torigoya/libc++-trunk/lib"
-    CPATH: "/usr/local/torigoya/libc++-trunk/include/c++/v1"
-  fixed_command_line:
-  - " ": prog.o
-  - "-o ": prog.out
-  - "-stdlib=": libc++
-  - "-L": "/usr/local/torigoya/libc++-trunk/lib"
-  - "-l": pthread
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/libc++-trunk/lib"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c++.gcc/4.8.0.yml

View file
----
-version: 4.8.0
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: cpp
-compile:
-  file: prog
-  extension: o
-  command: g++-4.8.0
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.0/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c++11
-      select:
-      - c++11
-      - c++1y
-    "-ftemplate-depth=":
-      select:
-      - '512'
-      - '1024'
-      - '2048'
-      - '4096'
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-    "-I":
-      select:
-      - "/usr/local/torigoya/sprout-trunk/include"
-      - "/usr/local/torigoya/boost-1.55.0/include"
-      - "/usr/local/torigoya/boost-1.54.0/include"
-  fixed_command_line:
-  - "-c ": prog.cpp
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: g++-4.8.0
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.0/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c++.gcc/4.8.1.yml

View file
----
-version: 4.8.1
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: cpp
-compile:
-  file: prog
-  extension: o
-  command: g++-4.8.1
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.1/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c++11
-      select:
-      - c++11
-      - c++1y
-    "-ftemplate-depth=":
-      select:
-      - '512'
-      - '1024'
-      - '2048'
-      - '4096'
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-    "-I":
-      select:
-      - "/usr/local/torigoya/sprout-trunk/include"
-      - "/usr/local/torigoya/boost-1.55.0/include"
-      - "/usr/local/torigoya/boost-1.54.0/include"
-  fixed_command_line:
-  - "-c ": prog.cpp
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: g++-4.8.1
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.1/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c++.gcc/4.8.2.yml

View file
----
-version: 4.8.2
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: cpp
-compile:
-  file: prog
-  extension: o
-  command: g++-4.8.2
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.2/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c++11
-      select:
-      - c++11
-      - c++1y
-    "-ftemplate-depth=":
-      select:
-      - '512'
-      - '1024'
-      - '2048'
-      - '4096'
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-    "-I":
-      select:
-      - "/usr/local/torigoya/sprout-trunk/include"
-      - "/usr/local/torigoya/boost-1.55.0/include"
-      - "/usr/local/torigoya/boost-1.54.0/include"
-  fixed_command_line:
-  - "-c ": prog.cpp
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: g++-4.8.2
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.2/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c.clang/3.4.yml

View file
----
-version: '3.4'
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: c
-compile:
-  file: prog
-  extension: o
-  command: clang
-  env:
-    PATH: "/usr/local/torigoya/clang-3.4/bin:/usr/bin"
-    CPATH: "/usr/local/torigoya/libc++/include/c++/v1"
-  allowed_command_line:
-    "-std=":
-      default: c11
-      select:
-      - c11
-      - gnu11
-      - c99
-      - gnu99
-      - c89
-      - gnu89
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-  fixed_command_line:
-  - "-c ": prog.c
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: clang
-  env:
-    PATH: "/usr/local/torigoya/clang-3.4/bin:/usr/bin"
-    LD_LIBRARY_PATH: "/usr/local/torigoya/libc++/lib"
-    CPATH: "/usr/local/torigoya/libc++/include/c++/v1"
-  fixed_command_line:
-  - " ": prog.o
-  - "-o ": prog.out
-  - "-stdlib=": libc++
-  - "-L": "/usr/local/torigoya/libc++/lib"
-  - "-l": pthread
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/libc++/lib"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c.gcc/4.8.0.yml

View file
----
-version: 4.8.0
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: c
-compile:
-  file: prog
-  extension: o
-  command: gcc-4.8.0
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.0/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c99
-      select:
-      - c99
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-  fixed_command_line:
-  - "-c ": prog.c
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: gcc-4.8.0
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.0/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.0/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c.gcc/4.8.1.yml

View file
----
-version: 4.8.1
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: c
-compile:
-  file: prog
-  extension: o
-  command: gcc-4.8.1
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.1/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c99
-      select:
-      - c99
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-  fixed_command_line:
-  - "-c ": prog.c
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: gcc-4.8.1
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.1/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.1/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.c.gcc/4.8.2.yml

View file
----
-version: 4.8.2
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: c
-compile:
-  file: prog
-  extension: o
-  command: gcc-4.8.2
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.2/bin:/usr/bin"
-  allowed_command_line:
-    "-std=":
-      default: c99
-      select:
-      - c99
-    "-O":
-      default: '2'
-      select:
-      - '0'
-      - '1'
-      - '2'
-      - '3'
-    "-W":
-      default:
-      - all
-      - extra
-      select:
-      - all
-      - extra
-    "-E": 
-    "-P": 
-  fixed_command_line:
-  - "-c ": prog.c
-  - "-o ": prog.o
-link:
-  file: prog
-  extension: out
-  command: gcc-4.8.2
-  env:
-    PATH: "/usr/local/torigoya/gcc-4.8.2/bin:/usr/bin"
-    LD_RUN_PATH: "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  fixed_command_line:
-  - "-L": "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  - "-Wl,-rpath -Wl,": "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  - " ": prog.o
-  - "-o ": prog.out
-run:
-  command: "./prog.out"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/gcc-4.8.2/lib/../lib64"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.d.dmd/2.064.2.yml

View file
----
-version: 2.064.2
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: d
-compile:
-  file: prog
-  extension: o
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  allowed_command_line:
-    "-wi": 
-    "-w": 
-    "-release": 
-  fixed_command_line:
-  - "-c ": prog.d
-  - "-of": prog.o
-link:
-  file: prog
-  extension: ''
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  fixed_command_line:
-  - " ": prog.o
-  - "-of": prog
-run:
-  command: "./prog"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/dmd-trunk/lib"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.d.dmd/2.065.0.yml

View file
----
-version: 2.065.0
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: d
-compile:
-  file: prog
-  extension: o
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  allowed_command_line:
-    "-wi": 
-    "-w": 
-    "-release": 
-  fixed_command_line:
-  - "-c ": prog.d
-  - "-of": prog.o
-link:
-  file: prog
-  extension: ''
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  fixed_command_line:
-  - " ": prog.o
-  - "-of": prog
-run:
-  command: "./prog"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/dmd-trunk/lib"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.d.dmd/trunk.yml

View file
----
-version: HEAD-2014.4.5.fe52711238
-is_build_required: true
-is_link_independent: true
-source:
-  file: prog
-  extension: d
-compile:
-  file: prog
-  extension: o
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  allowed_command_line:
-    "-wi": 
-    "-w": 
-    "-release": 
-  fixed_command_line:
-  - "-c ": prog.d
-  - "-of": prog.o
-link:
-  file: prog
-  extension: ''
-  command: dmd
-  env:
-    PATH: "/usr/local/torigoya/dmd-trunk/bin:/usr/bin"
-    DFLAGS: "-I/usr/local/torigoya/dmd-trunk/include/d2 -L-L/usr/local/torigoya/dmd-trunk/lib
-      -L--no-warn-search-mismatch -L--export-dynamic"
-  fixed_command_line:
-  - " ": prog.o
-  - "-of": prog
-run:
-  command: "./prog"
-  env:
-    LD_LIBRARY_PATH: "/usr/local/torigoya/dmd-trunk/lib"
-  allowed_command_line: 
-  fixed_command_line: 
+--- 
+...

File lang.dart.dart2js.google/stable.yml

View file
----
-version: STABLE-2014.4.7
-is_build_required: true
-is_link_independent: false
-source:
-  file: prog
-  extension: dart
-compile:
-  file: prog
-  extension: js
-  command: dart2js
-  env:
-    PATH: "/usr/local/torigoya/dart-stable/bin:/usr/bin"
-  allowed_command_line:
-    "--checked": 
-    "--minify": 
-    "--help": 
-    "--version": 
-    "--suppress-warnings": 
-    "--suppress-hints": 
-    "--terse": 
-    "--verbose": 
-    "--analyze-all": 
-    "--analyze-only": 
-    "--analyze-signatures-only": 
-    "--categories=":
-      select:
-      - Client
-      - Server
-  fixed_command_line:
-  - "--out=": prog.js
-  - "-p": "/usr/local/torigoya/dart-stable/lib"
-  - " ": prog.dart
-run:
-  command: node
-  env:
-    PATH: "/usr/local/torigoya/node-trunk/bin:/usr/bin"
-    LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:/usr/local/torigoya/node-trunk/lib"
-  allowed_command_line: 
-  fixed_command_line:
-  - " ": prog.js
+--- 
+...

File lang.dart.dartvm.google/stable.yml

View file
----
-version: STABLE-2014.4.7
-is_build_required: false
-is_link_independent: false
-source:
-  file: prog
-  extension: dart
-run:
-  command: dart
-  env:
-    PATH: "/usr/local/torigoya/dart-stable/bin:/usr/bin"
-  allowed_command_line:
-    "--checked": 
-    "--version":