|
iPXE
|
MIME image tests. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| ARCHIVE_TEST (hello_world, &mime_image_type, "hw.mime", NULL, "hw", TEXTFILE("Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n"), TEXTFILE("#!ipxe\n" "\n" "echo Hello world\n" "shell\n")) | |
| "Hello world" | |
| ARCHIVE_TEST (multipart, &mime_image_type, "user-data", NULL, "user-data", TEXTFILE("Content-Type: multipart/mixed; " "boundary=\"===============5227682047807177400==\"\r\n" "MIME-Version: 1.0\r\n" "\r\n" "--===============5227682047807177400==\r\n" "Content-Type: text/cloud-config; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"conf.yml\"\r\n" "\r\n" "LS0tCmNvbmZpZzoKICB0aGluZ3M6CiAgICAtIG9uZQogICAgLSB0d2\r\n" "8KICBvdGhlcnRoaW5nOiAid29vaG9vIgo=\r\n" "\r\n" "--===============5227682047807177400==\r\n" "Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n" "\r\n" "--===============5227682047807177400==--\r\n"), TEXTFILE("Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n" "\r\n")) | |
| Multipart test. | |
| ARCHIVE_TEST (no_encoding, &mime_image_type, "noenc.mime", NULL, "noenc", TEXTFILE("Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "\r\n" "#!ipxe\r\n" "echo Default encoding\r\n"), TEXTFILE("#!ipxe\r\n" "echo Default encoding\r\n")) | |
| No explicit encoding. | |
| static void | mime_test_exec (void) |
| Perform mime self-test. | |
Variables | |
| struct self_test mime_test | __self_test |
| MIME self-test. | |
MIME image tests.
Definition in file mime_test.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| ARCHIVE_TEST | ( | hello_world | , |
| & | mime_image_type, | ||
| "hw.mime" | , | ||
| NULL | , | ||
| "hw" | , | ||
| TEXTFILE("Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n") | , | ||
| TEXTFILE("#!ipxe\n" "\n" "echo Hello world\n" "shell\n") | ) |
| ARCHIVE_TEST | ( | multipart | , |
| & | mime_image_type, | ||
| "user-data" | , | ||
| NULL | , | ||
| "user-data" | , | ||
| TEXTFILE("Content-Type: multipart/mixed; " "boundary=\"===============5227682047807177400==\"\r\n" "MIME-Version: 1.0\r\n" "\r\n" "--===============5227682047807177400==\r\n" "Content-Type: text/cloud-config; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"conf.yml\"\r\n" "\r\n" "LS0tCmNvbmZpZzoKICB0aGluZ3M6CiAgICAtIG9uZQogICAgLSB0d2\r\n" "8KICBvdGhlcnRoaW5nOiAid29vaG9vIgo=\r\n" "\r\n" "--===============5227682047807177400==\r\n" "Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n" "\r\n" "--===============5227682047807177400==--\r\n") | , | ||
| TEXTFILE("Content-Type: text/x-ipxe; charset=\"utf-8\"\r\n" "MIME-Version: 1.0\r\n" "Content-Transfer-Encoding: base64\r\n" "Content-Disposition: attachment; filename=\"hw.ipxe\"\r\n" "\r\n" "IyFpcHhlCgplY2hvIEhlbGxvIHdvcmxkCnNoZWxsCg==\r\n" "\r\n") | ) |
|
static |
Perform mime self-test.
Definition at line 98 of file mime_test.c.
References archive_ok.
| struct self_test mime_test __self_test |
MIME self-test.
Definition at line 106 of file mime_test.c.