preCICE v3.1.2
Loading...
Searching...
No Matches
Functions | Variables
compileAndTest Namespace Reference

Functions

 wipedir (dir)
 

Variables

 parser
 
 help
 
 dest
 
 default
 
 action
 
 args
 
 remainder
 
 build_dir
 
 exist_ok
 
str CONFIGURE_CMD
 
 shell
 
 True
 
 cwd
 
str COMPILE_CMD
 
 testbase = os.path.join(args.build_dir, "TestOutput")
 
list testdirs = [os.path.join(testbase, dir) for dir in next(os.walk(testbase))[1]]
 
 ret_code
 

Detailed Description

Compiles and tests preCICE. Can be used with git bisect run or alike.
Return 0 on success, 1 on failure and 125 on compilation failure which tells git bisect to skip that commit (neither mark it as good or bad)

To ensure a clean test it can delete and recreate the ./build/TestOutput/ directories.

Function Documentation

◆ wipedir()

compileAndTest.wipedir ( dir)

Definition at line 62 of file compileAndTest.py.

Variable Documentation

◆ action

compileAndTest.action

Definition at line 36 of file compileAndTest.py.

◆ args

compileAndTest.args

Definition at line 74 of file compileAndTest.py.

◆ build_dir

compileAndTest.build_dir

Definition at line 82 of file compileAndTest.py.

◆ COMPILE_CMD

compileAndTest.COMPILE_CMD
Initial value:
1= "cmake --build {dir} -- -j {cpus}".format(
2 dir=args.build_dir, cpus=args.compile_cpus
3 )

Definition at line 90 of file compileAndTest.py.

◆ CONFIGURE_CMD

compileAndTest.CONFIGURE_CMD
Initial value:
1= "cmake -DPRECICE_MPICommunication=ON -DPRECICE_PETScMapping=ON -DCMAKE_BUILD_TYPE=Debug {src}".format(
2 src=args.source_dir
3 )

Definition at line 84 of file compileAndTest.py.

◆ cwd

compileAndTest.cwd

Definition at line 87 of file compileAndTest.py.

◆ default

compileAndTest.default

Definition at line 25 of file compileAndTest.py.

◆ dest

compileAndTest.dest

Definition at line 24 of file compileAndTest.py.

◆ exist_ok

compileAndTest.exist_ok

Definition at line 82 of file compileAndTest.py.

◆ help

compileAndTest.help

Definition at line 23 of file compileAndTest.py.

◆ parser

compileAndTest.parser
Initial value:
1= argparse.ArgumentParser(
2 formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3 description="All additional arguments are passed to the testprecice binary.",
4)

Definition at line 15 of file compileAndTest.py.

◆ remainder

compileAndTest.remainder

Definition at line 74 of file compileAndTest.py.

◆ ret_code

compileAndTest.ret_code
Initial value:
1= subprocess.call(
2 "ctest -VV --output-on-failure", shell=True, cwd=args.build_dir
3 )

Definition at line 113 of file compileAndTest.py.

◆ shell

compileAndTest.shell

Definition at line 87 of file compileAndTest.py.

◆ testbase

compileAndTest.testbase = os.path.join(args.build_dir, "TestOutput")

Definition at line 97 of file compileAndTest.py.

◆ testdirs

list compileAndTest.testdirs = [os.path.join(testbase, dir) for dir in next(os.walk(testbase))[1]]

Definition at line 98 of file compileAndTest.py.

◆ True

compileAndTest.True

Definition at line 87 of file compileAndTest.py.