summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2011-07-05 11:52:06 -0700
committerPaul Berry <stereotype441@gmail.com>2011-07-22 09:45:11 -0700
commit659cdedb532e675da5676d40ee39278aadd8f0a1 (patch)
tree75e5affe4434d782ab50ed5fb2591d65ff868925 /Makefile
parentf1f76e157ed1ba554fc3a0172113997344049e07 (diff)
glsl: Add unit tests for lower_jumps.cpp
These tests invoke do_lower_jumps() in isolation (using the glsl_test executable) and verify that it transforms the IR in the expected way. The unit tests may be run from the top level directory using "make check". For reference, I've also checked in the Python script create_test_cases.py, which was used to generate these tests. It is not necessary to run this script in order to run the tests. Acked-by: Chad Versace <chad@chad-versace.us>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 817f3d3706a..916c498416d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,10 @@ all: default
doxygen:
cd doxygen && $(MAKE)
+check:
+ cd src/glsl/tests/ && ./optimization-test
+ @echo "All tests passed."
+
clean:
-@touch $(TOP)/configs/current
-@for dir in $(SUBDIRS) ; do \
@@ -51,7 +55,7 @@ install:
done
-.PHONY: default doxygen clean realclean distclean install
+.PHONY: default doxygen clean realclean distclean install check
# If there's no current configuration file
$(TOP)/configs/current: