xref: /libCEED/python/tests/Makefile (revision d4cc18453651bd0f94c1a2e078b2646a92dafdcc)
1*9ba83ac0SJeremy L Thompson# Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
25aed82e4SJeremy L Thompson# All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
30ef72598Sjeremylt#
45aed82e4SJeremy L Thompson# SPDX-License-Identifier: BSD-2-Clause
50ef72598Sjeremylt#
65aed82e4SJeremy L Thompson# This file is part of CEED:  http://github.com/ceed
70ef72598Sjeremylt
87b3ff069SJeremy L ThompsonPYTHON ?= python3
97b3ff069SJeremy L Thompson
100ef72598Sjeremyltclean:
110ef72598Sjeremylt	rm -rf build __pycache__ .pytest_cache *.so
120ef72598Sjeremylt
130ef72598Sjeremyltsetup:
140ef72598Sjeremylt	$(PYTHON) setup-qfunctions.py build
150ef72598Sjeremylt
160ef72598SjeremyltTEST_OPTS ?= --ceed /cpu/self/ref/serial
170ef72598Sjeremylttest: setup
180ef72598Sjeremylt	$(PYTHON) -m pytest test-*.py $(TEST_OPTS)
190ef72598Sjeremylt
200ef72598Sjeremylt.PHONY: clean setup test
21