10 years, 5 months ago.

Please let me know "How to use python script.".

Hello, I make to LPC15xxStartup.s and LPC15xx.ld for GCC_ARM. I was try to the test by any method for test.py. test.py is good. But, I don't know how to use the following python script. Please let me know how to use the following python script.

autotest.py export_test.py

this two script result is following.

Linux kazu-deverop 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
Ptyhon version is 
kazu@kazu-deverop:~/mbedtools/workspace_tools$ python --version
Python 2.7.6

kazu@kazu-deverop:~/mbedtools/workspace_tools$ ./export_test.py
./export_test.py: line 16: 
mbed SDK
Copyright (c) 2011-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS: No such file or directory
from: can't read /var/mail/os.path
./export_test.py: line 19: syntax error near unexpected token `('
./export_test.py: line 19: `ROOT = abspath(join(dirname(__file__), ".."))'


kazu@kazu-deverop:~/mbedtools/workspace_tools$ ./autotest.py
./autotest.py: line 16: 
mbed SDK
Copyright (c) 2011-2013 ARM Limited

Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS: No such file or directory
from: can't read /var/mail/os.path
from: can't read /var/mail/time
./autotest.py: line 23: syntax error near unexpected token `('
./autotest.py: line 23: `ROOT = abspath(join(dirname(__file__), ".."))'
kazu@kazu-deverop:~/mbedtools/workspace_tools$ 

/media/uploads/kazu_zamasu/mbed1.png

Please see this attached imaages. This two script running be just like Screen shoot + Shift.

Please advice to me. Regards, Kazu,

Question relating to:

Hello,

autotest file is not in the repository anymore, please update your mbed master. There will be a guide how to use testing scripts soon.

Regards,
0xc0170

posted by Martin Kojtal 09 Jun 2014

Hello Martin, thank you for your reply. I have to update mbed master. I do try. But, I dont know export test script command line. please show me example export test command.

posted by Kazu Zamasu 10 Jun 2014

Dear all, Thank you for your reply and best co-operation. I was done mbed-sdk export test by LPC1549. To import to LPCXPresso from the "export_lpcxpresso_LPC1549.zip". No warning and No Error indicate by LPCXPresso. I think this is no problem. Thank you for your best support. I will send to pull request to github later. Please inspect and validation.

Best regards, Kazu,

posted by Kazu Zamasu 11 Jun 2014

1 Answer

10 years, 5 months ago.

Hello Kazu-san, I'm now writing bigger blog post about what you are asking. It will cover our Build API scripts and test suite scripts. I will also write about how to use our test suite in your CI (if you have one) or just to run regression tests for your applications. In near future we will arm our test suite with unit testing framework so please be patient! I will blog about it when we're ready ;=)

Sketch you can see here: https://mbed.org/users/PrzemekWirkus/notebook/mbed-test-automation-introduction/ I will update it soon with details about how to set up and take advantage from our test suite embedded into workspace_tools!

文思辉

Accepted Answer

Hello, Wirkus,

Thank you for your reply. I hope and pray, you are made to challenge bigger blog. I think this blog is very fruitful and our profitable information. Please let me know if you need any help. I can any help to you maybe(.

Now, I made any files LPC1549 GCC_ARM,CS,CR. I made some file for reasons of Online compiler export by LPC1549 for LPCXPresso. I need export to LPCXPresso for LPC1549. The basic which I know are Online compiler export pull request is have to test this export-test-script. Therefore, if could you please tell me as soon as possible export test method?

Best regards, Kazu from Japan.

posted by Kazu Zamasu 09 Jun 2014

What is the problem with exporters?

posted by Martin Kojtal 10 Jun 2014