mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-27 13:02:47 +08:00
- restored examples to working condition
- restored makefiles to working condition - updated files to include copyright notice - fixed bug in string array comparisons - ignored tests no longer run teardown - tests failing for uncaught cexceptions now get exception id reported git-svn-id: http://unity.svn.sourceforge.net/svnroot/unity/trunk@70 e7d17a6e-8845-0410-bbbc-c8efb4fdad7e
This commit is contained in:
40
examples/makefile
Normal file
40
examples/makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# ==========================================
|
||||
# Unity Project - A Test Framework for C
|
||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||
# [Released under MIT License. Please refer to license.txt for details]
|
||||
# ==========================================
|
||||
|
||||
C_COMPILER=gcc
|
||||
TARGET_BASE1=test1
|
||||
TARGET_BASE2=test2
|
||||
ifeq ($(OS),Windows_NT)
|
||||
TARGET_EXTENSION=.exe
|
||||
else
|
||||
TARGET_EXTENSION=.out
|
||||
endif
|
||||
TARGET1 = $(TARGET_BASE1)$(TARGET_EXTENSION)
|
||||
TARGET2 = $(TARGET_BASE2)$(TARGET_EXTENSION)
|
||||
SRC_FILES1=../src/unity.c src/ProductionCode.c test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
||||
SRC_FILES2=../src/unity.c src/ProductionCode2.c test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
||||
INC_DIRS=-Isrc -I../src
|
||||
SYMBOLS=-DTEST
|
||||
|
||||
ifeq ($(OS),Windows_NT)
|
||||
CLEANUP = del /F /Q build\* && del /F /Q $(TARGET1) && del /F /Q $(TARGET2)
|
||||
else
|
||||
CLEANUP = rm -f build/*.o ; rm -f $(TARGET1) ; rm -f $(TARGET2)
|
||||
endif
|
||||
|
||||
all: clean default
|
||||
|
||||
default:
|
||||
# ruby auto/generate_test_runner.rb test/TestProductionCode.c test/no_ruby/TestProductionCode_Runner.c
|
||||
# ruby auto/generate_test_runner.rb test/TestProductionCode2.c test/no_ruby/TestProductionCode2_Runner.c
|
||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES1) -o $(TARGET1)
|
||||
$(C_COMPILER) $(INC_DIRS) $(SYMBOLS) $(SRC_FILES2) -o $(TARGET2)
|
||||
$(TARGET1)
|
||||
$(TARGET2)
|
||||
|
||||
clean:
|
||||
$(CLEANUP)
|
||||
|
Reference in New Issue
Block a user