# ---------------------------------------------------------------- # This module defines metadata to be used by the batchSVN.py script. # # Copy this module as /class/csse//scripts/batchSVNData.py and # edit it to define the course metadata for . The sample data # in the original file can be used by invoking the batchSVN.py script using # "testing" as the course name argument, e.g.: ./batchSVN.py testing # ---------------------------------------------------------------- import os import sys # ---------------------------------------------------------------- # Hacks the system path so the import of batchSVNTypes works for testing # individual course meta-data on the the server. serverPathToBatchSVN = "/class/csse/resources/Grading" # Change the following line to point to your local checkout of the CSSE # resources trunk if you want to test this file on your local machine: localMachinePathToBatchSVN = "C:\Users\rupakhet\Documents\Rose-Hulman\Teaching\CSSE-373\Spring2013-CR\SvnRepo\CSSE373-Coure-Repos" sys.path.append(serverPathToBatchSVN) sys.path.append(localMachinePathToBatchSVN) from batchSVNTypes import * # ---------------------------------------------------------------- # ---------------------------------------------------------------- # Local variables # ---------------------------------------------------------------- repoNamePrefix = 'csse373-201330-' # replace the following with a description of the course, like 'CSSE 120' courseDescription = '\a***Formal Methods ***' # ---------------------------------------------------------------- # Defines repositories sets for this course. Used by main script. # ---------------------------------------------------------------- reposSets = [] # first set in the list is the default reposSets.append(RepositorySet("Individuals", repoNamePrefix, [ "almajeas", "bellrj", "crouchjt", "galvezdm", "knightbk", "krenztr", "mcneesbr", "mercermt", "petryjc", "savagejs", "savrdada", "schepedw", "swishept", "trammjn", "tugayac", "wagnerrj", "westeras", "whiteaj", "bippuskw", "hoorncj", "hopkinaj", "kleinnj", "maderli", "morrista", "moyessa", "schuenjr", "sheltotj", "veatchje", "lockarbm" ])) # Project and homework team repositories reposSets.append(RepositorySet("ProjectAndHomeworkTeams", repoNamePrefix, [ "AdventureTeam", "AdamDan", "TeamJawsome", "Vergnuegenmoeglichkeit", "SomethingCreative", "IDK", "Awesome", "GalKrenzyAboutSwishCheese", "TeamChomsky", "TeamDinosaurs", "MadVeat", "DontCareTeam", "DontKnowTeam" ])) # ---------------------------------------------------------------- # Defines project names and unit tests for this course. # Used by main script. # ---------------------------------------------------------------- projects = [] projects.append(Project("Session-1-4-Getting-Started-With-Alloy")) projects.append(Project("Session-2-4-Howework-3-And-Lab")) projects.append(Project("Session-3-4-Lab-And-Homework-4")) projects.append(Project("Session-6-1-Lab-5")) projects.append(Project("Project-Milestone-1")) projects.append(Project("Project-Milestone-2")) projects.append(Project("Session-6-1-Lab-5")) projects.append(Project("Session-7-3-Lab-And-Homework-6")) projects.append(Project("Session-8-4-Lab-7")) projects.append(Project("Session-9-4-Lab-8")) # Example of a fully-qualified JUnit test name: #projects.append(Project("HW2", "edu.rhit.myPackage.CarTest")) # ---------------------------------------------------------------- # Defines any additional main menu commands for this course. # Used by main script. # ---------------------------------------------------------------- menuItems = [] # ---------------------------------------------------------------- # A couple of extra menu items that are useful in a pinch, but aren't yet # sufficiently abstracted for general use. # def copyInExtras(data): # forEachRepo("cp ${scriptDir}/*.java ${shortName}/src/btwp/", data) # return False # menuItems.append(MenuItem('Copy in Exam2 test files',copyInExtras)) # # def runTestsExtraMem(data): # forEachRepo("cd ${shortName} && java -Xmx2000m -cp '${scriptDir}/junit-4.5.jar:bin' org.junit.runner.JUnitCore ${testClasses}", data) # return False # menuItems.append(MenuItem('Run JUnit tests with extra memory',runTestsExtraMem)) # ---------------------------------------------------------------- # ---------------------------------------------------------------- # Some test code, executed if this file is imported directly into # a python shell. Shouldn't need to change this when specifying # course-specific data above. # ---------------------------------------------------------------- if __name__ == '__main__': print "reposSets ==", reposSets print "Repositories from reposSets[0]:" for r in reposSets[0].repos(): print " ", r print "repository names: ", [r.name for r in reposSets] print print projects print "Test classes:" for p in projects: print " %s: %s" % (p.name, p.testClasses) print "Additional Menu Items' Text:" for mi in menuItems: print " ", mi.text