diff options
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_util.py b/tests/test_util.py new file mode 100644 index 0000000..0b3365c --- /dev/null +++ b/tests/test_util.py @@ -0,0 +1,16 @@ +import platform + +def cpp_supported(): + return platform.system() == 'Linux' or platform.system() == 'Darwin' + +def cpp_path(): + if platform.system() == 'Darwin': + return 'gcc' + return 'cpp' + +def cpp_args(args=[]): + if isinstance(args, str): + args = [args] + if platform.system() == 'Darwin': + return ['-E'] + args + return args |