1
0
mirror of https://github.com/cahirwpz/amigaos-cross-toolchain synced 2025-11-21 01:37:26 +00:00

Add simple testing procedure.

This commit is contained in:
Krystian Bacławski
2016-05-10 10:49:38 +02:00
parent b0baf5dbfa
commit 40edc11a4c
2 changed files with 15 additions and 3 deletions

View File

@ -13,8 +13,8 @@ hello-ks13: CFLAGS += -m68000 -msmall-code
hello-ks13: LDLIBS = -lnix13
hello-ks13: hello-ks13.c
# MacOSX BUG: hello-ks20: CC += -fbaserel
hello-ks20: CFLAGS += -m68000 -msmall-code
hello-ks20: CC += -fbaserel32
hello-ks20: CFLAGS += -m68020 -msmall-code
hello-ks20: hello-ks20.c
hello-stdio: CFLAGS += -m68020

View File

@ -591,6 +591,17 @@ def install_sdk(*names):
process_sdk(name, basename, files)
def test():
install_sdk('mmu', 'mui')
environ['PATH'] = ":".join([path.join('{target}', 'bin'),
environ['PATH']])
with cwd(path.join('{top}', 'examples')):
execute('make', 'clean')
execute('make')
if __name__ == "__main__":
logging.basicConfig(level=logging.DEBUG, format='%(levelname)s: %(message)s')
@ -606,7 +617,8 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Build cross toolchain.')
parser.add_argument('action',
choices=['build', 'list-sdk', 'install-sdk', 'clean'],
choices=['build', 'list-sdk', 'install-sdk', 'clean',
'test'],
default='build', help='perform action')
parser.add_argument('args', metavar='ARGS', type=str, nargs='*',
help='action arguments')