Skip to content

Commit

Permalink
Add 'test' makefile target to run all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tdenniston committed Jan 27, 2016
1 parent c695325 commit a1d6776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -4,6 +4,7 @@ RM=rm -f

SRC=src
OBJ=obj
TESTS=tests
BIN=/usr/bin

SOURCE_FILES=ByReferencePass.cpp CallGraph.cpp CodeGen.cpp CodeGen_Bash.cpp Compile.cpp FindCalls.cpp IR.cpp IRAncestorsPass.cpp IRVisitor.cpp LinkImportsPass.cpp Parser.cpp ReplaceIRNodes.cpp ReturnValuesPass.cpp SymbolTable.cpp Tokenizer.cpp TypeChecker.cpp Util.cpp
Expand Down Expand Up @@ -31,6 +32,9 @@ $(OBJ)/libbish.a: $(OBJECTS)
bish: $(SRC)/bish.cpp $(OBJ)/libbish.a
$(CXX) $(CXXFLAGS) -o bish $(SRC)/bish.cpp $(OBJ)/libbish.a $(CONFIG_CONSTANTS)

test: bish $(TESTS)/tests.bish
./bish -r $(TESTS)/tests.bish

.PHONY: clean
clean:
$(RM) bish
Expand Down

0 comments on commit a1d6776

Please sign in to comment.