2020-04-02 19:10:02 -04:00
|
|
|
#!/usr/bin/env bash
|
2018-07-23 05:46:59 -04:00
|
|
|
|
2021-08-18 09:14:47 -04:00
|
|
|
|
2021-12-28 12:29:01 -05:00
|
|
|
memory_test () {
|
|
|
|
pushd $IDF_PATH/examples/get-started/hello_world \
|
|
|
|
&& echo -e "\n***\nBuilding project for $1..." &>> $IDF_PATH/tools/test_idf_size/output \
|
|
|
|
&& idf.py set-target $1 \
|
|
|
|
&& idf.py build \
|
|
|
|
&& echo -e "\n***\nRunning mem_test.py for $1..." &>> $IDF_PATH/tools/test_idf_size/output \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json build/hello_world.map > size_output.json \
|
2021-12-28 12:29:01 -05:00
|
|
|
&& python $IDF_PATH/components/esptool_py/esptool/esptool.py --chip $1 image_info build/hello_world.bin > esptool_output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/test_idf_size/mem_test.py size_output.json esptool_output &>> $IDF_PATH/tools/test_idf_size/output \
|
|
|
|
&& popd
|
|
|
|
}
|
|
|
|
|
|
|
|
json_test() {
|
|
|
|
echo -e "\n***\nProducing JSON output for $1..." &>> output \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json app_$1.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archives app_$1.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --files app_$1.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archive_details libdriver.a app_$1.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output
|
|
|
|
}
|
|
|
|
|
|
|
|
csv_test() {
|
|
|
|
echo -e "\n***\nProducing CSV output for $1..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv app_$1.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archives app_$1.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --files app_$1.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archive_details libdriver.a app_$1.map &>> output
|
2021-12-28 12:29:01 -05:00
|
|
|
}
|
|
|
|
|
2021-08-18 09:14:47 -04:00
|
|
|
{ python -m coverage debug sys \
|
|
|
|
&& python -m coverage erase &> output \
|
2021-12-28 12:29:01 -05:00
|
|
|
&& memory_test esp32 \
|
|
|
|
&& memory_test esp32s2 \
|
|
|
|
&& memory_test esp32s3 \
|
|
|
|
&& memory_test esp32c3 \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py on bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py bootloader.map &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py with overflow..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py overflow.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archives..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --archives app.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --files..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --files app.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archive_details..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --archive_details libdriver.a app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff with bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --diff bootloader.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff with itself..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff with another app..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --diff app2.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff with app in reverse order..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app2.map --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archives with bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archives --diff bootloader.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archives with itself..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archives --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archives with another app..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archives --diff app2.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archives with app in reverse order..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app2.map --archives --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --files with bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --files --diff bootloader.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --files with itself..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --files --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --files with another app..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --files --diff app2.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --files with app in reverse order..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app2.map --files --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archive_details libdriver.a --diff bootloader.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with bootloader..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archive_details libc.a --diff bootloader.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with itself..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archive_details libdriver.a --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with another app..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archive_details libdriver.a --diff app2.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with app in reverse order..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app2.map --archive_details libdriver.a --diff app.map &>> output \
|
2020-03-06 10:20:37 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff --archive_details with another app..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --archive_details libfreertos.a --diff app2.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s2..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 app_esp32s2.map &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s2 with overflow..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 overflow_esp32s2.map &>> output \
|
2020-04-21 08:59:02 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s2 (target autodetected)..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app_esp32s2.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py on bootloader for esp32s2..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 bootloader_esp32s2.map &>> output \
|
2020-04-21 08:59:02 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py on bootloader for esp32s2 (target autodetected)..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py bootloader_esp32s2.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archives for esp32s2..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 --archives app_esp32s2.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --files for esp32s2..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 --files app_esp32s2.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archive_details for esp32s2..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s2 --archive_details libdriver.a app_esp32s2.map &>> output \
|
2020-04-21 08:59:02 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py diff with another app (different target)..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app.map --diff app_esp32s2.map &>> output \
|
2022-10-19 03:57:24 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32h4..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32h4 app_esp32h4.map &>> output \
|
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32h4 (target autodetected)..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app_esp32h4.map &>> output \
|
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archives for esp32h4..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32h4 --archives app_esp32h4.map &>> output \
|
|
|
|
&& echo -e "\n***\nRunning idf_size.py --files for esp32h4..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32h4 --files app_esp32h4.map &>> output \
|
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archive_details for esp32h4..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32h4 --archive_details libdriver.a app_esp32h4.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32c3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32c3 app_esp32c3.map &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32c3 with overflow..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32c3 overflow_esp32c3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32c3 (target autodetected)..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app_esp32c3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archives for esp32c3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32c3 --archives app_esp32c3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --files for esp32c3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32c3 --files app_esp32c3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archive_details for esp32c3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32c3 --archive_details libdriver.a app_esp32c3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 app_esp32s3.map &>> output \
|
2022-11-24 11:25:09 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s3 configured with 32KB of icache..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 app_esp32s3_32k_icache.map &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s3 with overflow..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 overflow_esp32s3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py for esp32s3 (target autodetected)..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py app_esp32s3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archives for esp32s3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 --archives app_esp32s3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --files for esp32s3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 --files app_esp32s3.map &>> output \
|
2021-07-27 18:24:05 -04:00
|
|
|
&& echo -e "\n***\nRunning idf_size.py --archive_details for esp32s3..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --target esp32s3 --archive_details libdriver.a app_esp32s3.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nProducing JSON output..." &>> output \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json app.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archives app.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --files app.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archive_details libdriver.a app.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json app.map --diff app2.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archives app.map --diff app2.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --files app.map --diff app2.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --archive_details libdriver.a app.map --diff app2.map | python $IDF_PATH/tools/test_idf_size/json_validate_test.py &>> output \
|
2021-12-28 12:29:01 -05:00
|
|
|
&& json_test esp32s2 \
|
|
|
|
&& json_test esp32c3 \
|
2022-10-19 03:57:24 -04:00
|
|
|
&& json_test esp32h4 \
|
2021-12-28 12:29:01 -05:00
|
|
|
&& json_test esp32s3 \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& echo -e "\n***\nProducing CSV output..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv app.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archives app.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --files app.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archive_details libdriver.a app.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv app.map --diff app2.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archives app.map --diff app2.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --files app.map --diff app2.map &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --archive_details libdriver.a app.map --diff app2.map &>> output \
|
|
|
|
&& csv_test esp32s2 \
|
|
|
|
&& csv_test esp32c3 \
|
2022-10-19 03:57:24 -04:00
|
|
|
&& csv_test esp32h4 \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& csv_test esp32s3 \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nProducing JSON file output..." &>> output \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=json --output-file output.json app.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nProducing text file output..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py -o output.txt app.map &>> output \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& echo -e "\n***\nProducing csv file output..." &>> output \
|
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/idf_size.py --format=csv --output-file output.csv app.map &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n***\nRunning idf_size_tests.py..." &>> output \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage run -a $IDF_PATH/tools/test_idf_size/test_idf_size.py &>> output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n\nComparing expected output..." \
|
2019-02-20 23:02:29 -05:00
|
|
|
&& diff -Z output expected_output \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n\nComparing expected json output..." \
|
2019-12-18 00:56:26 -05:00
|
|
|
&& diff -Z output.json expected_output.json \
|
2020-02-28 05:47:00 -05:00
|
|
|
&& echo -e "\n\nComparing expected text output..." \
|
2019-12-18 00:56:26 -05:00
|
|
|
&& diff -Z output.txt expected_output.txt \
|
2022-07-14 07:39:53 -04:00
|
|
|
&& echo -e "\n\nComparing expected csv output..." \
|
|
|
|
&& diff -Z output.csv expected_output.csv \
|
2021-08-18 09:14:47 -04:00
|
|
|
&& python -m coverage report \
|
2018-07-23 05:46:59 -04:00
|
|
|
; } || { echo 'The test for idf_size has failed. Please examine the artifacts.' ; exit 1; }
|
2019-02-20 23:02:29 -05:00
|
|
|
|
|
|
|
# Note: "diff -Z is used because some versions of Python print trailing whitespace for JSON pretty-printing, and some don't
|