Fresco/Babylon/test Makefile.in,1.4,1.5 framework.cc,1.1,NONE script.sh,1.1,NONE
Tobias Hunger <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Babylon/test
In directory purcel:/tmp/cvs-serv26197/Babylon/test
Modified Files:
Makefile.in
Removed Files:
framework.cc script.sh
Log Message:
* Make sure that we don't try to build/run tests if Fresco-Test is not around
* Make all Makefiles aware of build-tests and run-tests.
* Added a doc/ and doc/examples/ directory to Fresco-Test with some FAQ-like
explaination on how to write tests/integrate tests into the framework
The unit test framework is in place now... only the actual tests are still
missing;-)
Index: Makefile.in
===================================================================
RCS file: /cvs/fresco/Fresco/Babylon/test/Makefile.in,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- Makefile.in 5 Apr 2003 22:37:34 -0000 1.4
+++ Makefile.in 6 Apr 2003 16:15:45 -0000 1.5
@@ -34,7 +34,7 @@
# All tests ending in .cc will be build, the rest will be run on
# "make run-tests".
-TESTS := framework.cc script.sh
+TESTS :=
CXX_TESTS := $(filter %.cc, $(TESTS))
HDR :=
@@ -57,14 +57,24 @@
all:
+ifdef FRESCO_TEST_CONFIG
build-tests: $(TARGETS)
+else
+build-tests:
+ @echo "you need 'Fresco-Test' in order to build the tests"
+endif
+ifdef FRESCO_TEST_CONFIG
run-tests: build-tests $(SCRIPT_SOURCES)
- LD_LIBRARY_PATH=`$(TEST_CONFIG) --lib-dir`:$(LD_LIBRARY_PATH) `$(TEST_CONFIG) --test-runner` $(TARGETS) $(SCRIPT_SOURCES)
+ LD_LIBRARY_PATH=`$(FRESCO_TEST_CONFIG) --lib-dir`:$(LD_LIBRARY_PATH) `$(FRESCO_TEST_CONFIG) --test-runner` $(TARGETS) $(SCRIPT_SOURCES)
+else
+run-tests:
+ @echo "you need 'Fresco-Test' in order to build the tests"
+endif
$(TARGETS): $(OBJ)
@echo linking $(@F)
- $(CXX) `$(TEST_CONFIG) --libs` -o $@ $<
+ $(CXX) `$(FRESCO_TEST_CONFIG) --libs` -o $@ $<
depend: $(DEP)
@@ -86,11 +96,11 @@
$(SYN): $(CXX_TESTS)
@echo generating $(@F)
- $(SYNOPSIS) -pC++ -I$(hdir) -I`$(TEST_CONFIG) --include-dir` -o $@ $<
+ $(SYNOPSIS) -pC++ -I$(hdir) -I`$(FRESCO_TEST_CONFIG) --include-dir` -o $@ $<
$(HARNESS): $(SYN)
@echo generating test harness for $(@F)
- `$(TEST_CONFIG) --syn2cc` $< $@
+ `$(FRESCO_TEST_CONFIG) --syn2cc` $< $@
$(DEP): $(HARNESS)
@echo generating dependencies for $(<F)
@@ -98,4 +108,4 @@
$(OBJ): $(HARNESS)
@echo compiling $(@F)
- $(CXX) `$(TEST_CONFIG) --cppflags` `$(TEST_CONFIG) --cxxflags` -c $< -o $@
+ $(CXX) `$(FRESCO_TEST_CONFIG) --cppflags` `$(FRESCO_TEST_CONFIG) --cxxflags` -c $< -o $@
--- framework.cc DELETED ---
--- script.sh DELETED ---