test.sh 645 B

123456789101112
  1. #! /bin/bash
  2. { coverage debug sys \
  3. && coverage erase &> output \
  4. && coverage run -a $IDF_PATH/tools/idf_size.py app.map &>> output \
  5. && coverage run -a $IDF_PATH/tools/idf_size.py --archives app.map &>> output \
  6. && coverage run -a $IDF_PATH/tools/idf_size.py --files app.map &>> output \
  7. && coverage run -a $IDF_PATH/tools/idf_size.py --archive_details libdriver.a app.map &>> output \
  8. && coverage run -a $IDF_PATH/tools/test_idf_size/test_idf_size.py &>> output \
  9. && diff output expected_output \
  10. && coverage report \
  11. ; } || { echo 'The test for idf_size has failed. Please examine the artifacts.' ; exit 1; }