Artifact d8885d1bf06a0fd3314a0a9d172acde24df57127c586c179b21caa8a5a164c76:
- File
tests/Makefile
— part of check-in
[ce5d486e9a]
at
2016-05-06 18:04:28
on branch trunk
— Initial import.
Only templates for now. This is based on some code from 2013 and adds a
proper build system and tests. (user: js, size: 1394) [annotate] [blame] [check-ins using]
include ../extra.mk PROG_NOINST = tests${PROG_SUFFIX} SRCS = OWTemplateTests.m \ TestsAppDelegate.m include ../buildsys.mk post-all: ${RUN_TESTS} .PHONY: run run: rm -f libobjweb.so.${OBJWEB_LIB_MAJOR} rm -f libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR} rm -f libobjweb.dll libobjweb.${OBJWEB_LIB_MAJOR}.dylib if test -f ../src/libobjweb.so; then \ ${LN_S} ../src/libobjweb.so libobjweb.so.${OBJWEB_LIB_MAJOR}; \ ${LN_S} ../src/libobjweb.so \ libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR}; \ elif test -f ../src/libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR}; then \ ${LN_S} ../src/libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR} \ libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR}; \ fi if test -f ../src/libobjweb.dll; then \ ${LN_S} ../src/libobjweb.dll libobjweb.dll; \ fi if test -f ../src/libobjweb.dylib; then \ ${LN_S} ../src/libobjweb.dylib \ libobjweb.${OBJWEB_LIB_MAJOR}.dylib; \ fi LD_LIBRARY_PATH=.$${LD_LIBRARY_PATH+:}$$LD_LIBRARY_PATH \ DYLD_LIBRARY_PATH=.$${DYLD_LIBRARY_PATH+:}$$DYLD_LIBRARY_PATH \ LIBRARY_PATH=.$${LIBRARY_PATH+:}$$LIBRARY_PATH \ ${TEST_LAUNCHER} ./${PROG_NOINST}; EXIT=$$?; \ rm -f libobjweb.so.${OBJWEB_LIB_MAJOR}; \ rm -f libobjweb.so.${OBJWEB_LIB_MAJOR_MINOR} libobjweb.dll; \ rm -f libobjweb.${OBJWEB_LIB_MAJOR}.dylib; \ exit $$EXIT ${PROG_NOINST}: ${LIBOBJWEB_DEP} CPPFLAGS += -I../src -I../src/exceptions LIBS += -L../src -lobjweb LD = ${OBJC}