# Allow relative import of pygrader. Not needed if pygrader package is installed on python search path import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': [ 'OfficialMake', 'GreatExpectations.txt', ] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial', 'makefile': 'OfficialMake' }),
#!/usr/bin/env python3 import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run #Warning - code assumes projects are named COURSE-TERM-ASSIGNMENTNAME repo_path = 'cs260-202020-a03' tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': ['OfficialMake', 'stackTester.cpp', 'pqTester.cpp', 'Document.html', ] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial', 'makefile': 'OfficialMake' }), Task({ 'name': 'runTests', 'runs': [ Run({
#!/usr/bin/env python3 import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run #Warning - code assumes projects are named COURSE-TERM-ASSIGNMENTNAME repo_path = 'cs260-202020-a01' tasks = [ Task({ 'name': 'copy', 'copy_files': ['OfficialMake', 'people.txt', 'peopleSorted.txt'] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial', 'makefile': 'OfficialMake' }), Task({ 'name': 'run', 'runs': [ Run({ 'input': """5000""",
# Allow relative import of pygrader. Not needed if pygrader package is installed on python search path import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': ['OfficialMake', 'stackTester.cpp', 'pqTester.cpp', 'Document.html', ] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial', 'makefile': 'OfficialMake' }), Task({ 'name': 'runTests', 'runs': [
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': [ 'OfficialMake', 'testerA.cpp', 'testerB.cpp', 'testerC.cpp', 'IPListA.txt', 'IPListB.txt', ] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial',
# Allow relative import of pygrader. Not needed if pygrader package is installed on python search path import os import sys sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': ['OfficialMake', '25000AddressesA.txt', '25000AddressesB.txt'] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial', 'makefile': 'OfficialMake' }), Task({
import pygrader.pygrader as pygrader from pygrader.pygrader import Task, Run #Warning - code assumes projects are named COURSE-TERM-ASSIGNMENTNAME repo_path = 'cs260-202020-a04' tasks = [ #Minimal sample broken into subtasks. Generates separate output files for each run. Task({ 'name': 'copy', 'copy_files': [ 'OfficialMake', 'testerA.cpp', 'testerB.cpp', 'testerC.cpp', 'IPListA.txt', 'IPListB.txt', ] }), Task({ 'name': 'rename', 'rename_folders': True }), Task({ 'name': 'make', 'makefile': 'MyMake' }), Task({ 'name': 'makeOfficial',