From 2c709e087af4ae3d18ad3a4e0624de6e9bb7f91a Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Sun, 27 Nov 2022 15:43:17 +0000 Subject: [PATCH] unit-test: Update to cover all the releases including beta --- test/configs/bootconf-2021-03-04.txt | 5 +++++ test/configs/bootconf-2021-03-17.txt | 5 +++++ test/configs/bootconf-2021-05-19.txt | 5 +++++ test/configs/bootconf-2021-06-11.txt | 5 +++++ test/configs/bootconf-2021-06-17.txt | 5 +++++ test/configs/bootconf-2021-06-25.txt | 5 +++++ test/configs/bootconf-2021-07-06.txt | 5 +++++ test/configs/bootconf-2021-09-23.txt | 5 +++++ test/configs/bootconf-2021-09-27.txt | 5 +++++ test/configs/bootconf-2021-10-04.txt | 5 +++++ test/configs/bootconf-2021-10-05.txt | 5 +++++ test/configs/bootconf-2021-10-27.txt | 5 +++++ test/configs/bootconf-2021-11-22.txt | 5 +++++ test/configs/bootconf-2021-12-02.txt | 5 +++++ test/configs/bootconf-2022-01-20.txt | 5 +++++ test/configs/bootconf-2022-01-25.txt | 5 +++++ test/configs/bootconf-2022-02-04.txt | 5 +++++ test/configs/bootconf-2022-02-16.txt | 5 +++++ test/configs/bootconf-2022-02-28.txt | 5 +++++ test/configs/bootconf-2022-03-10.txt | 5 +++++ test/configs/bootconf-2022-04-14.txt | 5 +++++ test/configs/bootconf-2022-04-26.txt | 5 +++++ test/configs/bootconf-2022-05-20.txt | 5 +++++ test/configs/bootconf-2022-07-14.txt | 5 +++++ test/configs/bootconf-2022-07-19.txt | 5 +++++ test/configs/bootconf-2022-07-22.txt | 5 +++++ test/configs/bootconf-2022-07-26.txt | 5 +++++ test/configs/bootconf-2022-08-02.txt | 5 +++++ test/configs/bootconf-2022-09-02.txt | 5 +++++ test/configs/bootconf-2022-10-03.txt | 5 +++++ test/configs/bootconf-2022-10-06.txt | 5 +++++ test/configs/bootconf-2022-10-12.txt | 5 +++++ test/configs/bootconf-2022-10-18.txt | 5 +++++ test/configs/bootconf-2022-11-02.txt | 5 +++++ test/configs/bootconf-2022-11-04.txt | 5 +++++ test/configs/bootconf-2022-11-25.txt | 5 +++++ test/test-rpi-eeprom-config | 7 ++++++- 37 files changed, 186 insertions(+), 1 deletion(-) create mode 100644 test/configs/bootconf-2021-03-04.txt create mode 100644 test/configs/bootconf-2021-03-17.txt create mode 100644 test/configs/bootconf-2021-05-19.txt create mode 100644 test/configs/bootconf-2021-06-11.txt create mode 100644 test/configs/bootconf-2021-06-17.txt create mode 100644 test/configs/bootconf-2021-06-25.txt create mode 100644 test/configs/bootconf-2021-07-06.txt create mode 100644 test/configs/bootconf-2021-09-23.txt create mode 100644 test/configs/bootconf-2021-09-27.txt create mode 100644 test/configs/bootconf-2021-10-04.txt create mode 100644 test/configs/bootconf-2021-10-05.txt create mode 100644 test/configs/bootconf-2021-10-27.txt create mode 100644 test/configs/bootconf-2021-11-22.txt create mode 100644 test/configs/bootconf-2021-12-02.txt create mode 100644 test/configs/bootconf-2022-01-20.txt create mode 100644 test/configs/bootconf-2022-01-25.txt create mode 100644 test/configs/bootconf-2022-02-04.txt create mode 100644 test/configs/bootconf-2022-02-16.txt create mode 100644 test/configs/bootconf-2022-02-28.txt create mode 100644 test/configs/bootconf-2022-03-10.txt create mode 100644 test/configs/bootconf-2022-04-14.txt create mode 100644 test/configs/bootconf-2022-04-26.txt create mode 100644 test/configs/bootconf-2022-05-20.txt create mode 100644 test/configs/bootconf-2022-07-14.txt create mode 100644 test/configs/bootconf-2022-07-19.txt create mode 100644 test/configs/bootconf-2022-07-22.txt create mode 100644 test/configs/bootconf-2022-07-26.txt create mode 100644 test/configs/bootconf-2022-08-02.txt create mode 100644 test/configs/bootconf-2022-09-02.txt create mode 100644 test/configs/bootconf-2022-10-03.txt create mode 100644 test/configs/bootconf-2022-10-06.txt create mode 100644 test/configs/bootconf-2022-10-12.txt create mode 100644 test/configs/bootconf-2022-10-18.txt create mode 100644 test/configs/bootconf-2022-11-02.txt create mode 100644 test/configs/bootconf-2022-11-04.txt create mode 100644 test/configs/bootconf-2022-11-25.txt diff --git a/test/configs/bootconf-2021-03-04.txt b/test/configs/bootconf-2021-03-04.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-03-04.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-03-17.txt b/test/configs/bootconf-2021-03-17.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-03-17.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-05-19.txt b/test/configs/bootconf-2021-05-19.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-05-19.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-06-11.txt b/test/configs/bootconf-2021-06-11.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-06-11.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-06-17.txt b/test/configs/bootconf-2021-06-17.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-06-17.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-06-25.txt b/test/configs/bootconf-2021-06-25.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-06-25.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-07-06.txt b/test/configs/bootconf-2021-07-06.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-07-06.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-09-23.txt b/test/configs/bootconf-2021-09-23.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-09-23.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-09-27.txt b/test/configs/bootconf-2021-09-27.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-09-27.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-10-04.txt b/test/configs/bootconf-2021-10-04.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-10-04.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-10-05.txt b/test/configs/bootconf-2021-10-05.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-10-05.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-10-27.txt b/test/configs/bootconf-2021-10-27.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-10-27.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-11-22.txt b/test/configs/bootconf-2021-11-22.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-11-22.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2021-12-02.txt b/test/configs/bootconf-2021-12-02.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2021-12-02.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-01-20.txt b/test/configs/bootconf-2022-01-20.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-01-20.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-01-25.txt b/test/configs/bootconf-2022-01-25.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-01-25.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-02-04.txt b/test/configs/bootconf-2022-02-04.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-02-04.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-02-16.txt b/test/configs/bootconf-2022-02-16.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-02-16.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-02-28.txt b/test/configs/bootconf-2022-02-28.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-02-28.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-03-10.txt b/test/configs/bootconf-2022-03-10.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-03-10.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-04-14.txt b/test/configs/bootconf-2022-04-14.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-04-14.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-04-26.txt b/test/configs/bootconf-2022-04-26.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-04-26.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-05-20.txt b/test/configs/bootconf-2022-05-20.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-05-20.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-07-14.txt b/test/configs/bootconf-2022-07-14.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-07-14.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-07-19.txt b/test/configs/bootconf-2022-07-19.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-07-19.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-07-22.txt b/test/configs/bootconf-2022-07-22.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-07-22.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-07-26.txt b/test/configs/bootconf-2022-07-26.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-07-26.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-08-02.txt b/test/configs/bootconf-2022-08-02.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-08-02.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-09-02.txt b/test/configs/bootconf-2022-09-02.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-09-02.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-10-03.txt b/test/configs/bootconf-2022-10-03.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-10-03.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-10-06.txt b/test/configs/bootconf-2022-10-06.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-10-06.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-10-12.txt b/test/configs/bootconf-2022-10-12.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-10-12.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-10-18.txt b/test/configs/bootconf-2022-10-18.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-10-18.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-11-02.txt b/test/configs/bootconf-2022-11-02.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-11-02.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-11-04.txt b/test/configs/bootconf-2022-11-04.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-11-04.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/configs/bootconf-2022-11-25.txt b/test/configs/bootconf-2022-11-25.txt new file mode 100644 index 0000000..e85498a --- /dev/null +++ b/test/configs/bootconf-2022-11-25.txt @@ -0,0 +1,5 @@ +[all] +BOOT_UART=0 +WAKE_ON_GPIO=1 +POWER_OFF_ON_HALT=0 + diff --git a/test/test-rpi-eeprom-config b/test/test-rpi-eeprom-config index baec697..366afa5 100755 --- a/test/test-rpi-eeprom-config +++ b/test/test-rpi-eeprom-config @@ -167,7 +167,12 @@ check_conf_size_too_large() echo "Check config read and loopback read/write against reference config files" versions="$(cd configs; ls *.txt | sed 's/bootconf-//g' | sed 's/.txt//g')" for ver in ${versions}; do - check_loopback "../firmware/old/beta/pieeprom-${ver}.bin" "configs/bootconf-${ver}.txt" + if [ -f "../firmware/old/beta/pieeprom-${ver}.bin" ]; then + # Use this directory if the bootloader has been archived + check_loopback "../firmware/old/beta/pieeprom-${ver}.bin" "configs/bootconf-${ver}.txt" + else + check_loopback "../firmware/beta/pieeprom-${ver}.bin" "configs/bootconf-${ver}.txt" + fi cleanup done