'SKOOLKIT_HOME={}: directory not found\n'.format(SKOOLKIT_HOME)) sys.exit(1) sys.path.insert(0, '{}/tools'.format(SKOOLKIT_HOME)) from testwriter import write_tests SNAPSHOT = 'build/hungry_horace.z80' CTL = 'examples/hungry_horace.ctl' REF = 'examples/hungry_horace.ref' OUTPUT = """Using ref file: {reffile} Parsing {skoolfile} Output directory: {odir}/hungry_horace Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to skoolkit.css Writing disassembly files in asm Writing maps/all.html Writing maps/routines.html Writing maps/data.html Writing maps/messages.html Writing maps/unused.html Writing reference/changelog.html Writing index.html""" write_tests(snapshot=SNAPSHOT, output=OUTPUT, sources=False, ctl=CTL, ref=REF, clean=False)
SNAPSHOT = '../build/manic_miner.z80' OUTPUT = """Using skool file: {skoolfile} Using ref files: ../sources/mm.ref, ../sources/bugs.ref, ../sources/changelog.ref, ../sources/facts.ref, ../sources/pokes.ref Parsing {skoolfile} Creating directory {odir}/manic_miner Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to {odir}/manic_miner/skoolkit.css Copying ../sources/mm.css to {odir}/manic_miner/mm.css Writing disassembly files in manic_miner/asm Writing manic_miner/maps/all.html Writing manic_miner/maps/routines.html Writing manic_miner/maps/data.html Writing manic_miner/maps/messages.html Writing manic_miner/maps/unused.html Writing manic_miner/buffers/gbuffer.html Writing manic_miner/tables/caverns.html Writing manic_miner/reference/credits.html Writing manic_miner/reference/changelog.html Writing manic_miner/reference/bugs.html Writing manic_miner/reference/facts.html Writing manic_miner/reference/glossary.html Writing manic_miner/reference/pokes.html Writing manic_miner/index.html""" HTML_WRITER = '../sources:manicminer.ManicMinerHtmlWriter' ASM_WRITER = '../sources:manicminer.ManicMinerAsmWriter' write_tests(SKOOL, SNAPSHOT, OUTPUT, HTML_WRITER, ASM_WRITER)
Writing contact_sam_cruise/graphics/playarea.html Writing contact_sam_cruise/graphics/asstart0.html Writing contact_sam_cruise/graphics/asstart1.html Writing contact_sam_cruise/graphics/asstart2.html Writing contact_sam_cruise/graphics/asstart3.html Writing contact_sam_cruise/graphics/asstart4.html Writing contact_sam_cruise/graphics/playarea_objects.html Writing contact_sam_cruise/graphics/as.html Copying ../sources/tiles.js to {odir}/contact_sam_cruise/tiles.js Writing contact_sam_cruise/graphics/astiles/astiles.html Writing contact_sam_cruise/buffers/cbuffer.html Writing contact_sam_cruise/tables/keys.html Writing contact_sam_cruise/maps/command_lists.html Writing contact_sam_cruise/reference/walkthrough.html Parsing ../sources/load.skool Writing contact_sam_cruise/load/load.html Writing disassembly files in contact_sam_cruise/load Parsing ../sources/save.skool Writing contact_sam_cruise/save/save.html Writing disassembly files in contact_sam_cruise/save Parsing ../sources/start.skool Writing contact_sam_cruise/start/start.html Writing disassembly files in contact_sam_cruise/start Writing contact_sam_cruise/index.html""" HTML_WRITER = '../sources:samcruise.ContactSamCruiseHtmlWriter' ASM_WRITER = '../sources:samcruise.ContactSamCruiseAsmWriter' write_tests(SKOOL, SNAPSHOT, OUTPUT, HTML_WRITER, ASM_WRITER)
if not SKOOLKIT_HOME: sys.stderr.write('SKOOLKIT_HOME is not set; aborting\n') sys.exit(1) if not os.path.isdir(SKOOLKIT_HOME): sys.stderr.write('SKOOLKIT_HOME={}: directory not found\n'.format(SKOOLKIT_HOME)) sys.exit(1) sys.path.insert(0, '{}/tools'.format(SKOOLKIT_HOME)) from testwriter import write_tests SNAPSHOT = '{}/build/hungry_horace.z80'.format(SKOOLKIT_HOME) CTL = '{}/examples/hungry_horace.ctl'.format(SKOOLKIT_HOME) REF = '{}/examples/hungry_horace.ref'.format(SKOOLKIT_HOME) OUTPUT = """Using skool file: {skoolfile} Using ref file: {reffile} Parsing {skoolfile} Creating directory {odir}/hungry_horace Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to {odir}/hungry_horace/skoolkit.css Writing disassembly files in hungry_horace/asm Writing hungry_horace/maps/all.html Writing hungry_horace/maps/routines.html Writing hungry_horace/maps/data.html Writing hungry_horace/maps/messages.html Writing hungry_horace/maps/unused.html Writing hungry_horace/reference/changelog.html Writing hungry_horace/index.html""" write_tests(snapshot=SNAPSHOT, output=OUTPUT, ctl=CTL, ref=REF, clean=False)
sys.path.insert(0, '{}/tools'.format(SKOOLKIT_HOME)) from testwriter import write_tests SKOOL = 'jsw.skool' SNAPSHOT = 'build/jet_set_willy.z80' OUTPUT = """Using ref files: jsw.ref, bugs.ref, changelog.ref, facts.ref, glossary.ref, pokes.ref Parsing {skoolfile} Output directory: {odir}/jet_set_willy Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to skoolkit.css Copying jsw.css to jsw.css Writing disassembly files in asm Writing maps/all.html Writing maps/routines.html Writing maps/data.html Writing maps/messages.html Writing maps/unused.html Writing buffers/gbuffer.html Writing reference/bugs.html Writing reference/changelog.html Writing reference/facts.html Writing reference/glossary.html Writing reference/pokes.html Writing tables/rooms.html Writing tables/codes.html Writing reference/credits.html Writing index.html""" write_tests(SKOOL, SNAPSHOT, OUTPUT)
sys.exit(1) sys.path.insert(0, '{}/tools'.format(SKOOLKIT_HOME)) from testwriter import write_tests SKOOL = 'mm.skool' SNAPSHOT = 'build/manic_miner.z80' OUTPUT = """Using ref files: mm.ref, bugs.ref, changelog.ref, facts.ref, pokes.ref Parsing {skoolfile} Output directory: {odir}/manic_miner Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to skoolkit.css Copying mm.css to mm.css Writing disassembly files in asm Writing maps/all.html Writing maps/routines.html Writing maps/data.html Writing maps/messages.html Writing maps/unused.html Writing buffers/gbuffer.html Writing reference/bugs.html Writing reference/changelog.html Writing reference/facts.html Writing reference/glossary.html Writing reference/pokes.html Writing tables/caverns.html Writing reference/credits.html Writing index.html""" write_tests(SKOOL, SNAPSHOT, OUTPUT)
if not SKOOLKIT_HOME: sys.stderr.write('SKOOLKIT_HOME is not set; aborting\n') sys.exit(1) if not os.path.isdir(SKOOLKIT_HOME): sys.stderr.write('SKOOLKIT_HOME={}: directory not found\n'.format(SKOOLKIT_HOME)) sys.exit(1) sys.path.insert(0, '{}/tools'.format(SKOOLKIT_HOME)) from testwriter import write_tests SNAPSHOT = 'build/rom+sysvars.bin' SKOOL = 'rom.skool' OUTPUT = """Using ref files: {reffile}, bugs.ref, changelog.ref Parsing {skoolfile} Output directory: {odir}/rom Copying {SKOOLKIT_HOME}/skoolkit/resources/skoolkit.css to skoolkit.css Copying rom.css to rom.css Writing disassembly files in asm Writing maps/all.html Writing maps/routines.html Writing maps/data.html Writing maps/messages.html Writing maps/unused.html Writing buffers/sysvars.html Writing reference/bugs.html Writing reference/changelog.html Writing index.html""" write_tests(SKOOL, SNAPSHOT, OUTPUT, '-Ho 0')