Commit 130bb4c0 authored by Isaac's avatar Isaac

Fixed pytest when not in tests/test_jit

parent a275ba0f
......@@ -25,6 +25,7 @@ else
export CC=clang
export CXX=clang++
export RUST_TEST_THREADS=1
export RUST_BACKTRACE=1
export PYTHONPATH=$CI_HOME/mu-client-pypy:$CI_HOME/RPySOM/src
export RPYSOM=$CI_HOME/RPySOM
......
......@@ -26,6 +26,7 @@
#elif _WIN32
#define LIB_EXT ".dll"
#endif
#define LIB_FILE_NAME(name) "lib" name LIB_EXT
int main(int argc, char** argv) {
MuVM* mu_26;
......@@ -66,6 +67,6 @@ int main(int argc, char** argv) {
bldr_26->new_bb(bldr_26, id_337, (MuID [1]){id_338}, (MuTypeNode [1]){id_331}, 1, MU_NO_ID, (MuInstNode [2]){id_340, id_341}, 2);
bldr_26->new_func_ver(bldr_26, id_336, id_335, (MuBBNode [1]){id_337}, 1);
bldr_26->load(bldr_26);
mu_26->compile_to_sharedlib(mu_26, LIB_FILE_NAME("test_ccall"), (char*[]){&"suite/test_ccall_fnc.c"}, 1);
mu_26->compile_to_sharedlib(mu_26, LIB_FILE_NAME("test_ccall"), (char*[]){& SUITE_DIR "/test_ccall_fnc.c"}, 1);
return 0;
}
......@@ -67,6 +67,7 @@ def compile_c_script(c_src_name):
src_c = testsuite_dir.join(c_src_name)
bin_path = bin_dir.join(testname)
CFLAGS = [
"-DSUITE_DIR=\"%(testsuite_dir)s\"" % globals(),
"-std=c11",
"-I%(proj_dir)s/src/vm/api" % globals(),
"-L" + libmu_dir_path.strpath,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment