From 7595b425935a7e40b8be02618d3c4c29ce12efd9 Mon Sep 17 00:00:00 2001 From: suhrke Date: Wed, 5 Jul 2017 16:45:57 -0700 Subject: [PATCH] make unittest recipe installs pre-commit hook --- ReflexToQ3/Makefile | 1 + ReflexToQ3/test/catch.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ReflexToQ3/Makefile b/ReflexToQ3/Makefile index aad70b5..097d470 100644 --- a/ReflexToQ3/Makefile +++ b/ReflexToQ3/Makefile @@ -14,6 +14,7 @@ test: planes.o brushdef.o oopless-parser.o test-parser.o unittest: EntityConverter.o catch.o $(CC) $^ $(CFLAGS) -o $(UNITEX) + mv test/catch ../.git/hooks/pre-commit test-parser.o: test/test-parser.cpp $(CC) -c $^ $(CFLAGS) diff --git a/ReflexToQ3/test/catch.cpp b/ReflexToQ3/test/catch.cpp index 5d247a0..97b0067 100644 --- a/ReflexToQ3/test/catch.cpp +++ b/ReflexToQ3/test/catch.cpp @@ -25,7 +25,7 @@ #include "EntityConverter.hpp" -#define PICKUP_FILENAME "r2x.pck" +#define PICKUP_FILENAME "ReflexToQ3/r2x.pck" #define DELTA 0.00001