https://github.com/stan-dev/stan
Raw File
Tip revision: 9124810e92172e214dcec54c24a0a693cf3e13ec authored by Steve Bronder on 10 November 2019, 02:07:27 UTC
use point_type instead of ps_point in method signatures and type declerations for the mcmc algorithms
Tip revision: 9124810
runTests.py
#!/usr/bin/python

"""
replacement for runtest target in Makefile
"""

import os
import os.path
import platform
import sys
import subprocess
import time
import imp
mathRunTests = imp.load_source('runTests',
        os.path.join(os.path.dirname(os.path.abspath(__file__)),
            "lib", "stan_math", "runTests.py"))

# set up good makefile target name
def mungeName(name):
    if (name.startswith("src") or name.startswith("./src")):
        name = name.replace("src/","",1)
    if (name.endswith(mathRunTests.testsfx)):
        name = name.replace(mathRunTests.testsfx,"_test")
        if (mathRunTests.isWin()):
            name += mathRunTests.winsfx
            name = name.replace("\\","/")
    return name


def main():
    mathRunTests.mungeName = mungeName
    mathRunTests.main()


if __name__ == "__main__":
    main()
back to top