diff options
author | Christopher Haster <chaster@utexas.edu> | 2018-02-18 23:22:24 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2018-02-19 10:40:28 +0300 |
commit | 67daf9e2c5f98e1cd820bc8fd5fd9e725a2a9390 (patch) | |
tree | 1a9bca956efbf50b57fb246d5af090ede272e2e5 /tests | |
parent | a3fd2d4d6d5e125f878177931a8bd52e5d114f7a (diff) |
Added cross-compile targets for testing
Using gcc cross compilers and qemu:
- make test CC="arm-linux-gnueabi-gcc --static -mthumb" EXEC="qemu-arm"
- make test CC="powerpc-linux-gnu-gcc --static" EXEC="qemu-ppc"
- make test CC="mips-linux-gnu-gcc --static" EXEC="qemu-mips"
Also separated out Travis jobs and added some size reporting
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/test.py b/tests/test.py index e74bc3c..24b0d1a 100755 --- a/tests/test.py +++ b/tests/test.py @@ -33,10 +33,15 @@ def generate(test): pass def compile(): - subprocess.check_call(['make', '--no-print-directory', '-s']) + subprocess.check_call([ + os.environ.get('MAKE', 'make'), + '--no-print-directory', '-s']) def execute(): - subprocess.check_call(["./lfs"]) + if 'EXEC' in os.environ: + subprocess.check_call([os.environ['EXEC'], "./lfs"]) + else: + subprocess.check_call(["./lfs"]) def main(test=None): if test and not test.startswith('-'): |