#### # # Make and execute tests for the rolodex system. # CLASS_PATH = "/users/gfisher/work/support/implementation/executables/JVM:../../../implementation/executables/JVM" DESIGN_DIR = ../../design IMPLE_SRC_DIR = ../../../implementation/java IMPLE_EXEC_DIR = ../../../implementation/executables IMPLE_CLASS_DIR = $(IMPLE_EXEC_DIR)/JVM/rolodex TEST_SRC_DIR = ../java/rolodex # # Model testing files # ROLODEX_TEST_FILES = \ $(TEST_SRC_DIR)/RolodexTestDriver.java \ $(TEST_SRC_DIR)/RolodexTest.java SERIALIZE_TEST_SRC_FILES = \ ../TestRolodexSerialization.java # # Default definition to make. # default: all-testing # # Add additional module test program names as they are developed. # all-testing: rolodex-testing # # Perform rolodex testing by running tests (which will compile if necessary) # and comparing results with last good run # rolodex-testing: rolodex-output rolodex-diffs # # Execute test scripts and save output results. By convention, rules ending in # "-output" do this work. # rolodex-output: rolodex-test @csh -q -c "source .make-rolodex-output" # # Compare current output results with last good results. By convention, rules # ending in "-diffs" do this work. # rolodex-diffs: @csh -q -c "source .make-rolodex-diffs" # # Make the current output results the good results. By convention, rules # ending in "-good" so this work. # # NOTE WELL: 'make good' should only be performed after thorough analysis of # current output results to ensure that they are absolutely correct. # good: rolodex-good rolodex-good: @csh -q -c "source .make-rolodex-good" # # Compile the testing scripts. By convention, rules ending in "-test" do this # work. # rolodex-test: $(ROLODEX_TEST_FILES) @echo "" @echo "Compiling rolodex-test ... @javac -g -d . -classpath $(CLASS_PATH) \ $(ROLODEX_TEST_FILES) doc: $(ROLODEX_TEST_FILES) javadoc -d $(DESIGN_DIR) -classpath $(CLASS_PATH) \ $(MODEL_SRC_FILES) $(VIEW_SRC_FILES) $(PROCESS_SRC_FILES) clean: rm -f rolodex/*.class # # Automatically create symbolic links to system .class files. # links: csh -q -c ".make-links $(IMPLE_CLASS_DIR)/*.class" # # Run this once to make the testing subdirectories # dirs: @csh -q -c ".make-dirs"