xfstestsdb/Makefile
Anna Schumaker 8a54cb5d98 gtk: Put the TestResultList behind a TestCaseFilter
And control the filter using the newly-created FilterButtons class. This
lets us hide completely skipped tests by default, since those are mostly
noise. I also add some custom icons used by the buttons to indicate
passed, failed, or skipped tests.

Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
2023-08-14 13:41:02 -04:00

40 lines
1010 B
Makefile

# Copyright 2023 (c) Anna Schumaker.
export PREFIX = /usr/local
export XFSTESTSDB_BIN = ${PREFIX}/bin
export XFSTESTSDB_LIB = ${PREFIX}/lib/xfstestsdb
export GTK_DIR = xfstestsdb/gtk/icons
all: xfstestsdb.gresource flake8
clean:
find . -type d -name __pycache__ -exec rm -r {} \+
.PHONY: flake8
flake8:
flake8
.PHONY: xfstestsdb.gresource
xfstestsdb.gresource:
glib-compile-resources --sourcedir=$(GTK_DIR) $(GTK_DIR)/xfstestsdb.gresource.xml
.PHONY: install
install: xfstestsdb.gresource
find ./xfstestsdb -type f -not -path "*/__pycache__/*" \
-exec install -v -C -D -m 755 "{}" "$(XFSTESTSDB_LIB)/{}" \;
install -C -v -m 644 xfstestsdb.py $(XFSTESTSDB_LIB)/xfstestsdb.py
echo -e "#!/bin/bash\npython -O $(XFSTESTSDB_LIB)/xfstestsdb.py \$$*" > $(XFSTESTSDB_BIN)/xfstestsdb
chmod 655 $(XFSTESTSDB_BIN)/xfstestsdb
.PHONY: pytest
pytest:
pytest
.PHONY: tests
tests: xfstestsdb.gresource pytest flake8
.PHONY: uninstall
uninstall:
rm -v $(XFSTESTSDB_BIN)/xfstestsdb
rm -rv $(XFSTESTSDB_LIB)