summaryrefslogtreecommitdiffhomepage
path: root/tools/hpptest.py
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-20 19:42:17 -0500
committerGitHub <noreply@github.com>2025-11-20 19:42:17 -0500
commit98a0b6ceed0f8d432cae61559884613df539a0a1 (patch)
tree10583ee7130379feef0cd440266142fb6eede906 /tools/hpptest.py
parent3bc2fca2c9beff13586b8bf3089ce439acb09de1 (diff)
parent682d03f0b8e22168e2ccd2c4a35efae230d40eb0 (diff)
Merge pull request #13 from amlel-el-mahrouss/developv1.0.47
release: OCL 'Cork'
Diffstat (limited to 'tools/hpptest.py')
-rwxr-xr-xtools/hpptest.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/hpptest.py b/tools/hpptest.py
index 218255d..08c5719 100755
--- a/tools/hpptest.py
+++ b/tools/hpptest.py
@@ -1,11 +1,19 @@
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
+# HPPTEST: Header-only C++ library test runner.
+# Written by Amlal El Mahrouss.
+# Licensed under the Boost Software License
+
import sys, os
+COMPILER="clang++"
+INCLUDE_DIR="./dev/"
+CXX_STD="c++20"
+
if __name__ == '__main__':
if len(sys.argv) == 3:
- ret = os.system(f"clang++ -I./dev/ -I{sys.argv[2]} -std=c++20 -DOCL_HPPTEST '-DOCL_HPPTEST_ASSERT(x)=static_assert(x, #x)' {sys.argv[1]}")
+ ret = os.system(f"{COMPILER} -I{INCLUDE_DIR} -I{sys.argv[2]} -std={CXX_STD} -DOCL_HPPTEST '-DOCL_HPPTEST_ASSERT(x)=static_assert(x, #x)' {sys.argv[1]}")
if ret == 0:
print("[HPPTEST] HPPTEST PASSES.")