Move tests to compile-tests
This commit is contained in:
+3
-3
@@ -9,8 +9,8 @@ def cbindgen(rust_src, out):
|
||||
subprocess.check_output(["cargo", "run", "--", rust_src, "-o", out])
|
||||
|
||||
def gxx(src):
|
||||
subprocess.check_output(["g++", "-c", src, "-o", "tests/tmp.o"])
|
||||
os.remove("tests/tmp.o")
|
||||
subprocess.check_output(["g++", "-c", src, "-o", "compile-tests/tmp.o"])
|
||||
os.remove("compile-tests/tmp.o")
|
||||
|
||||
def run_compile_test(rust_src, leave_output):
|
||||
out = rust_src.replace(".rs", ".cpp")
|
||||
@@ -26,7 +26,7 @@ def run_compile_test(rust_src, leave_output):
|
||||
|
||||
return True
|
||||
|
||||
tests = glob.glob("tests/*.rs")
|
||||
tests = glob.glob("compile-tests/*.rs")
|
||||
num_pass = 0
|
||||
num_fail = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user