Commit b823e514 authored by Vladislav Perepelkin's avatar Vladislav Perepelkin
Browse files

compatibility fixes

parent 3129beda
......@@ -40,6 +40,8 @@ LDFLAGS_RTS := -L ${mkfile_dir}/lib -lrts
LDFLAGS_RTS_DBG := -L ${mkfile_dir}/lib -lrts_dbg -g
LUNA_HOME ?= ${mkfile_dir}
PYTHON ?= python3
LD_LIBRARY_PATH ?= ${mkfile_dir}/lib
export LD_LIBRARY_PATH
......@@ -48,10 +50,13 @@ export LD_LIBRARY_PATH
default: build_all
test: build_all
LUNA_HOME=${LUNA_HOME} scripts/run_tests.py tests
LUNA_HOME=${LUNA_HOME} ${PYTHON} scripts/run_tests.py tests
fftest: build_all
LUNA_HOME=${LUNA_HOME} scripts/run_tests.py --first-fail tests
LUNA_HOME=${LUNA_HOME} ${PYTHON} scripts/run_tests.py --first-fail tests
test04:
LUNA_HOME=${LUNA_HOME} ${PYTHON} scripts/run_tests.py --first-fail tests/04_programs
.PHONY: build_all
build_all: bin/rts bin/rts.dbg bin/parser bin/luna
......
#!/usr/bin/python3
#!/usr/bin/env python3
class FatalError(Exception):
def __init__(self, message, *args, **kwargs):
......
#!/usr/bin/python3
#!/usr/bin/env python3
# The program reads the joint log file obtained from lo3 and writes two files:
# *.cfs.done - list of CFs (and thair correcponding events), which finished their execution on a given node
......
#!/usr/bin/python3
#!/usr/bin/env python3
# The program reads the joint log file obtained from lo3 and writes two files:
# *.dfs.resp - list of DFs (and thair correcponding events), which were "responded" on each "requested"
......
#!/usr/bin/python3
#!/usr/bin/env python3
# COMPILATION OPTIONS
......
#!/usr/bin/python3
#!/usr/bin/env python3
DEFAULT_LOCATOR_0=True # Set locator 0 if unset
ADD_DEBUG_INFO=False
......
#!/usr/bin/python3
#!/usr/bin/env python3
# TODO add ability to use some other temporary directory for building
# tests, not .luna subdirectory, and allow setup via environment var.
......
#!/usr/bin/python3
#!/usr/bin/env python3
import subprocess, os, sys
......
#!/usr/bin/python3
#!/usr/bin/env python3
import sys, os, re, json
import common
......
#/usr/bin/python3
#!/usr/bin/env python3
import json
......
#!/usr/bin/python3
#!/usr/bin/env python3
import sys, os, subprocess, re, time
......
......@@ -14,14 +14,14 @@ std::string _prefix = {0};
void wtime_init()
{
clock_gettime(CLOCK_MONOTONIC_RAW, &t_);
clock_gettime(CLOCK_MONOTONIC, &t_);
clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tt_);
}
double wtime()
{
struct timespec t;
clock_gettime(CLOCK_MONOTONIC_RAW, &t);
clock_gettime(CLOCK_MONOTONIC, &t);
return t.tv_sec-t_.tv_sec+0.000000001*(t.tv_nsec-t_.tv_nsec);
}
......
RUN=python $LUNA_HOME/scripts/pp.py input -o output
RUN=python3 $LUNA_HOME/scripts/pp.py input -o output
RETCODE=0
STDOUT_EMPTY
STDERR_EMPTY
......
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=1
STDOUT_EMPTY
STDERR_MATCH=preprocessing error:.*input:2:23:$
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=1
STDOUT_EMPTY
STDERR_MATCH=preprocessing error:.*end of file.*input:2:14:$
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=0
STDOUT_EMPTY
STDERR_EMPTY
......
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=0
STDOUT_EMPTY
STDERR_EMPTY
......
RUN=python $LUNA_HOME/scripts/pp.py input -o got_output
RUN=python3 $LUNA_HOME/scripts/pp.py input -o got_output
RETCODE=0
STDOUT_EMPTY
STDERR_EMPTY
......
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=0
STDOUT_EMPTY
STDERR_EMPTY
......
RUN=python $LUNA_HOME/scripts/pp.py input
RUN=python3 $LUNA_HOME/scripts/pp.py input
RETCODE=1
STDOUT_EMPTY
STDERR_MATCH=preprocessing error:.*end of file.*input:1:11:$
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