]> granicus.if.org Git - esp-idf/commitdiff
esp32: add [ignore] tag to some unit test cases for CI
authorantti <antti@espressif.com>
Wed, 14 Dec 2016 08:38:45 +0000 (16:38 +0800)
committerantti <antti@espressif.com>
Wed, 18 Jan 2017 09:08:20 +0000 (17:08 +0800)
Add ignore tag on unit test cases that are not supported in CI yet

19 files changed:
components/driver/test/test_spi_master.c
components/esp32/test/test_ahb_arb.c
components/esp32/test/test_deep_sleep.c
components/esp32/test/test_delay.c
components/esp32/test/test_fastbus.c
components/esp32/test/test_miniz.c
components/esp32/test/test_unal_dma.c
components/fatfs/test/test_fatfs.c
components/freertos/test/test_freertos.c
components/freertos/test/test_freertos_eventgroups.c
components/freertos/test/test_freertos_task_delete.c
components/freertos/test/test_panic.c
components/freertos/test/test_ringbuf.c
components/mbedtls/test/test_mbedtls_sha.c
components/newlib/test/test_newlib.c
components/partition_table/test/test_partition.c
components/sdmmc/test/test_sd.c
components/spi_flash/test/test_spi_flash.c
components/ulp/test/test_ulp.c

index d54cc5a633f68972f053ba1f7c9368790920e312..cb04af8c9756b0c12487d080602f32d8e4ee14bd 100644 (file)
@@ -80,7 +80,7 @@ TEST_CASE("SPI Master clockdiv calculation routines", "[spi]")
 }
 
 
-TEST_CASE("SPI Master test", "[spi]")
+TEST_CASE("SPI Master test", "[spi][ignore]")
 {
     spi_bus_config_t buscfg={
         .mosi_io_num=4,
index 65f4906fd5002e3a8453a1879cc99e2b2bc5d408..21cf6d7781ad872d8eacdc808ba0a1363617a5c8 100644 (file)
@@ -269,7 +269,7 @@ static void tskTwo(void *pvParameters)
 }
 
 
-TEST_CASE("S32C1I vs AHB test (needs I2S)", "[hw]")
+TEST_CASE("S32C1I vs AHB test (needs I2S)", "[hw][ignore]")
 {
     int i;
     TaskHandle_t th[3];
index a47b6daf3f2b5bd671253e50845874bd0dc4308e..d892177dc491b083b6bea329ffb56302fab90ad4 100644 (file)
@@ -4,7 +4,7 @@
 #include "freertos/FreeRTOS.h"
 #include "freertos/task.h"
 
-TEST_CASE("esp_deepsleep works", "[deepsleep]")
+TEST_CASE("esp_deepsleep works", "[deepsleep][ignore]")
 {
     esp_deep_sleep(2000000);
 }
@@ -25,20 +25,20 @@ static void do_deep_sleep_from_app_cpu()
     }
 }
 
-TEST_CASE("wake up using timer", "[deepsleep]")
+TEST_CASE("wake up using timer", "[deepsleep][ignore]")
 {
     esp_deep_sleep_enable_timer_wakeup(2000000);
     esp_deep_sleep_start();
 }
 
-TEST_CASE("enter deep sleep on APP CPU and wake up using timer", "[deepsleep]")
+TEST_CASE("enter deep sleep on APP CPU and wake up using timer", "[deepsleep][ignore]")
 {
     esp_deep_sleep_enable_timer_wakeup(2000000);
     do_deep_sleep_from_app_cpu();
 }
 
 
-TEST_CASE("wake up using ext0 (13 high)", "[deepsleep]")
+TEST_CASE("wake up using ext0 (13 high)", "[deepsleep][ignore]")
 {
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
     ESP_ERROR_CHECK(gpio_pullup_dis(GPIO_NUM_13));
@@ -47,7 +47,7 @@ TEST_CASE("wake up using ext0 (13 high)", "[deepsleep]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("wake up using ext0 (13 low)", "[deepsleep]")
+TEST_CASE("wake up using ext0 (13 low)", "[deepsleep][ignore]")
 {
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
     ESP_ERROR_CHECK(gpio_pullup_en(GPIO_NUM_13));
@@ -56,7 +56,7 @@ TEST_CASE("wake up using ext0 (13 low)", "[deepsleep]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 high)", "[deepsleep]")
+TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 high)", "[deepsleep][ignore]")
 {
     // This test needs external pulldown
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
@@ -64,7 +64,7 @@ TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 high)", "[deepsleep]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 low)", "[deepsleep]")
+TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 low)", "[deepsleep][ignore]")
 {
     // This test needs external pullup
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
@@ -72,7 +72,7 @@ TEST_CASE("wake up using ext1 when RTC_PERIPH is off (13 low)", "[deepsleep]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("wake up using ext1 when RTC_PERIPH is on (13 high)", "[deepsleep]")
+TEST_CASE("wake up using ext1 when RTC_PERIPH is on (13 high)", "[deepsleep][ignore]")
 {
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
     ESP_ERROR_CHECK(gpio_pullup_dis(GPIO_NUM_13));
@@ -82,7 +82,7 @@ TEST_CASE("wake up using ext1 when RTC_PERIPH is on (13 high)", "[deepsleep]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("wake up using ext1 when RTC_PERIPH is on (13 low)", "[deepsleep]")
+TEST_CASE("wake up using ext1 when RTC_PERIPH is on (13 low)", "[deepsleep][ignore]")
 {
     ESP_ERROR_CHECK(rtc_gpio_init(GPIO_NUM_13));
     ESP_ERROR_CHECK(gpio_pullup_en(GPIO_NUM_13));
index 0b6c4aaf97cb2fc4959851819dbb0bf5e02b4c2b..c34c3bda773ed1709793e506455846ece7eb23b4 100644 (file)
@@ -37,7 +37,7 @@ static void test_delay_task(void* p)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("ets_delay produces correct delay on both CPUs", "[delay]")
+TEST_CASE("ets_delay produces correct delay on both CPUs", "[delay][ignore]")
 {
     int delay_ms = 50;
     const delay_test_arg_t args = { .delay_us = delay_ms * 1000, .method = 0 };
index 4ac5c55a88fb9f8a57d8e9ee7c1eb4dfc9fd9bd0..2b58c725b05199d7e189fe93b950b02b88070001 100644 (file)
@@ -96,7 +96,7 @@ static void tskTwo(void *pvParameters)
 
 
 // TODO: split this thing into separate orthogonal tests
-TEST_CASE("Fast I/O bus test", "[hw]")
+TEST_CASE("Fast I/O bus test", "[hw][ignore]")
 {
     int i;
     if ((REG_UART_BASE(0) >> 16) != 0x3ff4) {
index 3453c859a95cb63a16997575c5e5a17d4cc4c768..d7d9dc33b63208738b5b16b596d05a1c27c71371 100644 (file)
@@ -7,7 +7,7 @@
 
 #define DATASIZE (1024*64)
 
-TEST_CASE("Test miniz compression/decompression", "[miniz]")
+TEST_CASE("Test miniz compression/decompression", "[miniz][ignore]")
 {
     int x;
     char b;
index 3726632a415bf7bd0ccf86a68c7cdb9885d75fc2..c05d0d0f36fd5886c7ced3d3adfd93c7ccc74e9a 100644 (file)
@@ -183,7 +183,7 @@ int mymemcmp(char *a, char *b, int len)
 
 
 
-TEST_CASE("Unaligned DMA test (needs I2S)", "[hw]")
+TEST_CASE("Unaligned DMA test (needs I2S)", "[hw][ignore]")
 {
     int x;
     char src[2049], dest[2049];
index 9ee6606fb87dba5772c246b8d3f0aa49cadf419a..c2331d6e2639f03b6d4b2c445456993afe17d44a 100644 (file)
@@ -52,7 +52,7 @@ static void create_file_with_text(const char* name, const char* text)
     TEST_ASSERT_EQUAL(0, fclose(f));
 }
 
-TEST_CASE("can create and write file on sd card", "[fatfs]")
+TEST_CASE("can create and write file on sd card", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -69,7 +69,7 @@ TEST_CASE("can create and write file on sd card", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("can read file on sd card", "[fatfs]")
+TEST_CASE("can read file on sd card", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
 
@@ -134,7 +134,7 @@ static void speed_test(void* buf, size_t buf_size, size_t file_size, bool write)
 }
 
 
-TEST_CASE("read speed test", "[fatfs]")
+TEST_CASE("read speed test", "[fatfs][ignore]")
 {
 
     HEAP_SIZE_CAPTURE();
@@ -151,7 +151,7 @@ TEST_CASE("read speed test", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("write speed test", "[fatfs]")
+TEST_CASE("write speed test", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
 
@@ -171,7 +171,7 @@ TEST_CASE("write speed test", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("can lseek", "[fatfs]")
+TEST_CASE("can lseek", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -208,7 +208,7 @@ TEST_CASE("can lseek", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("stat returns correct values", "[fatfs]")
+TEST_CASE("stat returns correct values", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -249,7 +249,7 @@ TEST_CASE("stat returns correct values", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("unlink removes a file", "[fatfs]")
+TEST_CASE("unlink removes a file", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -271,7 +271,7 @@ TEST_CASE("unlink removes a file", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("link copies a file, rename moves a file", "[fatfs]")
+TEST_CASE("link copies a file, rename moves a file", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -373,7 +373,7 @@ done:
 }
 
 
-TEST_CASE("multiple tasks can use same volume", "[fatfs]")
+TEST_CASE("multiple tasks can use same volume", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -434,7 +434,7 @@ TEST_CASE("multiple tasks can use same volume", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("can create and remove directories", "[fatfs]")
+TEST_CASE("can create and remove directories", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
@@ -470,7 +470,7 @@ TEST_CASE("can create and remove directories", "[fatfs]")
     HEAP_SIZE_CHECK(0);
 }
 
-TEST_CASE("opendir, readdir, rewinddir, seekdir work as expected", "[fatfs]")
+TEST_CASE("opendir, readdir, rewinddir, seekdir work as expected", "[fatfs][ignore]")
 {
     HEAP_SIZE_CAPTURE();
     sdmmc_host_t host = SDMMC_HOST_DEFAULT();
index ced375279beb4edbc0ce25cbb37e0c0f4d56642b..2eb0c9391bb758f6a08557dcd2b00b7b2696f108 100644 (file)
@@ -187,7 +187,7 @@ static void uartRxInit(xQueueHandle q)
 }
 
 // TODO: split this thing into separate orthogonal tests
-TEST_CASE("Bunch of FreeRTOS tests", "[freertos]")
+TEST_CASE("Bunch of FreeRTOS tests", "[freertos][ignore]")
 {
     char *tst;
     TaskHandle_t th[12];
index b17e127c284204dd8ba24ed6ab9d23e7113676d9..32dee2d201f66d681250f6c18727d5da6451aa88 100644 (file)
@@ -38,7 +38,7 @@ static void task_event_group_call_response(void *param)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("FreeRTOS Event Groups", "[freertos]")
+TEST_CASE("FreeRTOS Event Groups", "[freertos][ignore]")
 {
     eg = xEventGroupCreate();
 
@@ -89,7 +89,7 @@ static void task_test_sync(void *param)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("FreeRTOS Event Group Sync", "[freertos]")
+TEST_CASE("FreeRTOS Event Group Sync", "[freertos][ignore]")
 {
     eg = xEventGroupCreate();
 
index 3101db25641c105da431b5e811a48837a992184f..d8cc2755ed5274c6d989129c4575e06842434a87 100644 (file)
@@ -13,7 +13,7 @@ static void task_delete_self(void *param)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("FreeRTOS Delete Tasks", "[freertos]")
+TEST_CASE("FreeRTOS Delete Tasks", "[freertos][ignore]")
 {
     xTaskCreatePinnedToCore(task_delete_self, "tsk_self_a", 4096, NULL, configMAX_PRIORITIES - 1, NULL, 0);
     xTaskCreatePinnedToCore(task_delete_self, "tsk_self_a", 4096, NULL, configMAX_PRIORITIES - 1, NULL, 0);
index 782b7a5642f764a3169facf78af30a3d52460bfc..6297d80c0ef9149d372d0f7e4249687bbca1d6f5 100644 (file)
@@ -17,7 +17,7 @@
 #include "soc/io_mux_reg.h"
 
 
-TEST_CASE("Panic handler", "[freertos]")
+TEST_CASE("Panic handler", "[freertos][ignore]")
 {
     volatile int *i;
     i = (volatile int *)0x0;
index 7d3c8788c9fc78e5128cdd6fb70100b46b1aae2f..8f8328532dc6b80dd9a9dede59c7713f7c231442 100644 (file)
@@ -185,12 +185,12 @@ static void testRingbuffer(int type)
 }
 
 // TODO: split this thing into separate orthogonal tests
-TEST_CASE("FreeRTOS ringbuffer test, no splitting items", "[freertos]")
+TEST_CASE("FreeRTOS ringbuffer test, no splitting items", "[freertos][ignore]")
 {
     testRingbuffer(0);
 }
 
-TEST_CASE("FreeRTOS ringbuffer test, w/ splitting items", "[freertos]")
+TEST_CASE("FreeRTOS ringbuffer test, w/ splitting items", "[freertos][ignore]")
 {
     testRingbuffer(1);
 }
index b18169827b9762d647c12bf66060f62f425b784f..2ec3bc347716cea88effc1154bb374403c5b76eb 100644 (file)
@@ -116,7 +116,7 @@ static void tskRunSHA256Test(void *pvParameters)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("mbedtls SHA multithreading", "[mbedtls]")
+TEST_CASE("mbedtls SHA multithreading", "[mbedtls][ignore]")
 {
     done_sem = xSemaphoreCreateCounting(4, 0);
     xTaskCreate(tskRunSHA1Test, "SHA1Task1", 8192, NULL, 3, NULL);
index 1d2a4bf09f378c566fa1a55ca1829cb2b52497a0..36278502093a0e451ec1ba36cd74e900159127b9 100644 (file)
@@ -19,7 +19,7 @@ TEST_CASE("test ctype functions", "[newlib]")
     TEST_ASSERT_FALSE( isspace('0') || isspace('9') || isspace(')') || isspace('A') || isspace('*') || isspace('\x81') || isspace('a'));
 }
 
-TEST_CASE("test atoX functions", "[newlib]")
+TEST_CASE("test atoX functions", "[newlib][ignore]")
 {
     TEST_ASSERT_EQUAL_INT(-2147483648, atoi("-2147483648"));
     TEST_ASSERT_EQUAL_INT(2147483647, atoi("2147483647"));
@@ -153,7 +153,7 @@ TEST_CASE("test 64bit int formats", "[newlib]")
     TEST_ASSERT_EQUAL(val, sval);
 }
 #else
-TEST_CASE("test 64bit int formats", "[newlib]")
+TEST_CASE("test 64bit int formats", "[newlib][ignore]")
 {
     char* res = NULL;
     const uint64_t val = 123456789012LL;
index a4288d8e1d0305efce65043b934f4b8ee8f711a9..a26822280239578361cc3798fea0e92742aaf447 100644 (file)
@@ -26,7 +26,7 @@ TEST_CASE("Can read partition table", "[partition]")
     printf("%d\n", __builtin_clz(count));
 }
 
-TEST_CASE("Can write, read, mmap partition", "[partition]")
+TEST_CASE("Can write, read, mmap partition", "[partition][ignore]")
 {
     const esp_partition_t *p = esp_partition_find_first(ESP_PARTITION_TYPE_DATA, ESP_PARTITION_SUBTYPE_ANY, NULL);
     TEST_ASSERT_NOT_NULL(p);
index 6c2154817fcb219a06be16f853c41e38cb73cc4d..768fecc258c0a7036c5d19d4b9c9b95ab0019da5 100644 (file)
@@ -26,7 +26,7 @@
 #include <sys/time.h>
 
 
-TEST_CASE("can probe SD", "[sd]")
+TEST_CASE("can probe SD", "[sd][ignore]")
 {
     sdmmc_host_t config = SDMMC_HOST_DEFAULT();
     sdmmc_slot_config_t slot_config = SDMMC_SLOT_CONFIG_DEFAULT();
@@ -76,7 +76,7 @@ static void do_single_write_read_test(sdmmc_card_t* card,
     free(buffer);
 }
 
-TEST_CASE("can write and read back blocks", "[sd]")
+TEST_CASE("can write and read back blocks", "[sd][ignore]")
 {
     sdmmc_host_t config = SDMMC_HOST_DEFAULT();
     config.max_freq_khz = SDMMC_FREQ_HIGHSPEED;
index 330e37bb82de30c7af482b1c096081016dd40fff..bf05b64db431841f8521650c8947cdca21ce797c 100644 (file)
@@ -62,7 +62,7 @@ static void flash_test_task(void *arg)
     vTaskDelete(NULL);
 }
 
-TEST_CASE("flash write and erase work both on PRO CPU and on APP CPU", "[spi_flash]")
+TEST_CASE("flash write and erase work both on PRO CPU and on APP CPU", "[spi_flash][ignore]")
 {
     TaskHandle_t procpu_task;
     TaskHandle_t appcpu_task;
index 854eb3ee2055ec03172b6b5c76d067c7eb4813db..f04178623c223af9ee5f33e6ec288b95fe575851 100644 (file)
@@ -64,7 +64,7 @@ TEST_CASE("ulp add test", "[ulp]")
     TEST_ASSERT_EQUAL(10 + 11, RTC_SLOW_MEM[18] & 0xffff);
 }
 
-TEST_CASE("ulp branch test", "[ulp]")
+TEST_CASE("ulp branch test", "[ulp][ignore]")
 {
     assert(CONFIG_ULP_COPROC_RESERVE_MEM >= 260 && "this test needs ULP_COPROC_RESERVE_MEM option set in menuconfig");
     memset(RTC_SLOW_MEM, 0, CONFIG_ULP_COPROC_RESERVE_MEM);
@@ -95,7 +95,7 @@ TEST_CASE("ulp branch test", "[ulp]")
     TEST_ASSERT_EQUAL(0, RTC_SLOW_MEM[64]);
 }
 
-TEST_CASE("ulp wakeup test", "[ulp]")
+TEST_CASE("ulp wakeup test", "[ulp][ignore]")
 {
     assert(CONFIG_ULP_COPROC_RESERVE_MEM >= 260 && "this test needs ULP_COPROC_RESERVE_MEM option set in menuconfig");
     memset(RTC_SLOW_MEM, 0, CONFIG_ULP_COPROC_RESERVE_MEM);
@@ -121,7 +121,7 @@ TEST_CASE("ulp wakeup test", "[ulp]")
     esp_deep_sleep_start();
 }
 
-TEST_CASE("ulp controls RTC_IO", "[ulp]")
+TEST_CASE("ulp controls RTC_IO", "[ulp][ignore]")
 {
     assert(CONFIG_ULP_COPROC_RESERVE_MEM >= 260 && "this test needs ULP_COPROC_RESERVE_MEM option set in menuconfig");
     memset(RTC_SLOW_MEM, 0, CONFIG_ULP_COPROC_RESERVE_MEM);