Author: janguenot
Date: Wed Oct  5 18:13:08 2005
New Revision: 27977

Modified:
   z3lab/Zope3Benchs/trunk/Makefile
Log:
Makefile taking care of the test and the bench

Modified: z3lab/Zope3Benchs/trunk/Makefile
==============================================================================
--- z3lab/Zope3Benchs/trunk/Makefile    (original)
+++ z3lab/Zope3Benchs/trunk/Makefile    Wed Oct  5 18:13:08 2005
@@ -1,8 +1,81 @@
-.PHONY: clean check
+# Makefile of FunkLoad Zope3 tests
+.PHONY: clean all start stop restart status
+.PHONY:        test bench
+.PHONY:        start_monitor stop_monitor restart_monitor
 
-check:
-       pychecker2 *.py
+FLRUNTEST := fl-run-test -vv
+FLRUNBENCH := fl-run-bench
+FLBUILDREPORT :=  fl-build-report --html -o reports
+MONCTL := fl-monitor-ctl monitor.conf
 
-clean:
-       find . "(" -name "*~" -or  -name ".#*" -or -name "*.pyc" ")" -print0 | 
xargs -0 rm -f
+ifdef URL
+# FunkLoad options
+       FLOPS = -u $(URL)
+else
+       FLOPS =
+endif
+
+all: test
+
+# testing
+test:
+       $(MONCTL) start
+
+       $(FLRUNTEST) test_Zope3.py
+
+       $(MONCTL) stop
+
+bench:
+       $(MONCTL) start
+
+       $(FLRUNBENCH) -d5 test_Zope3.py Zope3.test_DefaultZ3Page_As_Anonymous
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d5 test_Zope3.py Zope3.test_DefaultZ3Page_As_Member
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d5 test_Zope3.py Zope3.test_DefaultZ3Page_As_Manager
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d5 test_Zope3.py 
Zope3.test_BuddyDemoApp_READ_As_Anonymous
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d5 test_Zope3.py Zope3.test_BuddyDemoApp_READ_As_Member
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d5 test_Zope3.py Zope3.test_BuddyDemoApp_READ_As_Manager
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(FLRUNBENCH) -d50 test_Zope3.py Zope3.test_00_BuddyDemoApp_RW
+       $(FLBUILDREPORT) zope3-bench.xml
 
+       $(FLRUNBENCH) -d50 test_Zope3.py Zope3.test_01_BuddyDemoApp_RW
+       $(FLBUILDREPORT) zope3-bench.xml
+
+       $(MONCTL) stop
+
+
+# Benching
+
+# monitor ctl
+start_monitor:
+       $(MONCTL) start
+
+stop_monitor:
+       -$(MONCTL) stop
+
+restart_monitor:
+       -$(MONCTL) restart
+
+# misc
+status:
+       -$(MONCTL) status;
+
+stop: stop_monitor
+
+start: start_monitor
+
+restart: restart_monitor
+
+clean:
+       -find . "(" -name "*~" -or  -name ".#*" -or -name "*.log" -or -name 
"*.pyc" -or -name "*.xml" -or -name "*bak*" ")" -print0 | xargs -0 rm -f
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to