Skip to content

Commit 71bd407

Browse files
committed
Add regression to makefile.
1 parent b364cc0 commit 71bd407

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ all: cppfront.exe source/reflect.h include/cpp2regex.h
1313
CXX ?= g++
1414
CPPFRONT ?= ./cppfront.exe
1515
CFLAGS ?=
16+
REGRESS_LABEL ?= regress
17+
REGRESS_STD ?= c++2b
1618

1719
CFLAGS += -Wall -Werror -Wextra -Wpedantic
1820

@@ -41,5 +43,9 @@ include/cpp2regex.h: include/cpp2regex.h2
4143
source/reflect.h: source/reflect.h2
4244
${CPPFRONT} source/reflect.h2 -o source/reflect.h
4345

46+
regress: cppfront.exe
47+
cd regression-tests && \
48+
bash ./run-tests.sh -e ../cppfront.exe -c ${CXX} -l ${REGRESS_LABEL} -s ${REGRESS_STD}
49+
4450
clean:
4551
rm -f cppfront.exe

0 commit comments

Comments
 (0)