[LON-CAPA-cvs] cvs: nsdl /build Makefile

harris41 lon-capa-cvs@mail.lon-capa.org
Sun, 14 Jul 2002 06:39:06 -0000


harris41		Sun Jul 14 02:39:06 2002 EDT

  Modified files:              
    /nsdl/build	Makefile 
  Log:
  implementing some testing as well as HTML target;
  BUG FIX 343
  BUG FIX 344
  BUG FIX 345
  
  
Index: nsdl/build/Makefile
diff -u nsdl/build/Makefile:1.5 nsdl/build/Makefile:1.6
--- nsdl/build/Makefile:1.5	Sat Jul 13 20:27:56 2002
+++ nsdl/build/Makefile	Sun Jul 14 02:39:06 2002
@@ -1,7 +1,7 @@
 # The NSDL to LON-CAPA Gateway Server
 
 # Scott Harrison
-# $Id: Makefile,v 1.5 2002/07/14 00:27:56 harris41 Exp $
+# $Id: Makefile,v 1.6 2002/07/14 06:39:06 harris41 Exp $
 
 DISTPROBE=`perl ./distprobe`
 DIST=$(DISTPROBE)
@@ -29,13 +29,13 @@
 	@echo "install: install from a compiled CVS source tree to a "
 	@echo "         specified TARGET destination on the filesystem"
 	@echo "test: test different parts of the LON-CAPA system (TEST_*)"
-	@echo "TEST_lpml_scripts: make sure that the system can process "
+	@echo "TEST_lpml: make sure that the system can process "
 	@echo "                   the Linux Packaging Markup Language"
 	@echo "TEST_system_dependencies: make sure that all needed system "
 	@echo "                          components are active and present "
 	@echo "                          on the server such as perl modules"
 	@echo "                          and the MySQL database"
-	@echo "TEST_web_layer: mimic various web-based interactions with "
+	@echo "TEST_weblayer: mimic various web-based interactions with "
 	@echo "                respect to the login and various system "
 	@echo "                actions on the Gateway server"
 	@echo "HTML: generate an HTML-formatted description of the "
@@ -83,20 +83,25 @@
 
 alwaysrun:
 
-test:
-	@echo "Not yet implemented"
+test: TEST_lpml TEST_system_dependencies TEST_weblayer
+	@echo "ALL TESTS SUCCESSFUL"
 
-TEST_lpml_scripts:
-	@echo "Not yet implemented"
+TEST_lpml:
+	@echo "TESTING LPML INSTALLATION MECHANISM"
+	cd lpml_test; perl filecomparetest.pl
 
 TEST_system_dependencies:
-	@echo "Not yet implemented"
+	@echo "TESTING WEB LAYER"
 
-TEST_web_layer:
-	@echo "Not yet implemented"
+TEST_weblayer:
+	@echo "TESTING SYSTEM DEPENDENCIES"
 
 HTML:
-	@echo "Not yet implemented"
+	install -d HTML
+	cp $(SOURCE)/doc/gatewayfiles/*.gif HTML
+	cat gatewayfiles.lpml | \
+	perl lpml_parse.pl html development default "$(SOURCE)" '$(TARGET)' \
+	> HTML/index.html
 
 doc:
 	@echo "Not yet implemented"