Code Monkey home page Code Monkey logo

Comments (6)

rzbrk avatar rzbrk commented on July 30, 2024

Testing is still work in progress. I do development in the feature branch testing of my fork.

from calliopeo_astropi.

Amerlander avatar Amerlander commented on July 30, 2024

I just did a single test file with the following cases in one file:

  • Run Script without Calliope => Error no Calliope found
  • Run Script without Zip Files => Error no Zip files found
  • Run with only corrupted Zip file (and so no Hex file at all) => renamed to *.failed & Error no files found
  • Run with the following files
    • Corrupted Zip File => will be renamed to *.failed (and overwrite the existing one)
    • Zip file with .garbage File inside => The last flashed script persists on the mini and will be logged again / if 'no-start.hex" was the last one it will behave like that.
    • Zip file with invalid .hex File => the last flashed script persists on the mini and will be logged again / if 'no-start.hex" was the last one it will behave like that
    • Hex file which runs 10s and then stops => regular execution
    • Hex file which runs 900s and then stops => result in a timeout in this test
    • Hex file which logs a lot of data => run into the filesize limit in this test
    • Hex file which send serial Data, but does not send a start or end tag. => This file will be reflashed 5 times and then skipped

I made the tests at first for checking the testcases and improve the manual tests on the astropi, so unlike in your tests in your fork there is no automated proof and it is all in a single test file.

from calliopeo_astropi.

Amerlander avatar Amerlander commented on July 30, 2024

I just had one issue with the testing.sh: It doesnt read the testing.conf and also in line 24 for testcase in ${tc_folder%/}/*.*; do, it fails to read this as phat and results in /*.* instead of ./testcases/*.*. So hard coding it to for testcase in ./testcases/*.*; do worked.

from calliopeo_astropi.

rzbrk avatar rzbrk commented on July 30, 2024

Mmh, strange ...

This only happens on my system, if executing testing.sh from outside the directory testing.sh is in. Is this the case for you? I made a change to ensure the script is executed from the right directory, see #26.

from calliopeo_astropi.

rzbrk avatar rzbrk commented on July 30, 2024

https://github.com/rzbrk/CalliopEO_AstroPi/blob/testing/testcases/testcases.md

from calliopeo_astropi.

Amerlander avatar Amerlander commented on July 30, 2024

Is now working in my test on the astro pi.

from calliopeo_astropi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.