diff options
| author | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
|---|---|---|
| committer | Ján Sučan <sucanjan@fit.cvut.cz> | 2017-05-10 15:13:29 +0200 |
| commit | 02e24f0f533fe904c3a5275c4060c10c38d7c17a (patch) | |
| tree | 19d05c60e3d6a6782c4712de960a8f6705054063 /tests/st10f269 | |
Uvodny commit, subory su rovnake ako na CD prilozenom k vytlacenemu texu bakalarskej prace, naviac je pridany len subor LICENCIA
Diffstat (limited to 'tests/st10f269')
59 files changed, 59 insertions, 0 deletions
diff --git a/tests/st10f269/CMakeLists.txt b/tests/st10f269/CMakeLists.txt new file mode 100755 index 0000000..677259c --- /dev/null +++ b/tests/st10f269/CMakeLists.txt @@ -0,0 +1,53 @@ +include (${CMAKE_SOURCE_DIR}/tests/functions.cmake) + +set (TestConfigurations st10f269) +set (SerialPortSpeed 230400) +set (TestNamespace 269_) + +include (${CMAKE_SOURCE_DIR}/tests/CMakeLists.txt) + +set (TestDataDir "${CMAKE_SOURCE_DIR}/tests/st10f269/erase") + +add_normal_test (IgnoreFrequencyOpt "ident -f 22.1" 0) + +add_erase_test (EraseWhole "" 0 ${TestDataDir}/ok_ones ${TestDataDir}/zeros) +add_erase_test (EraseBlock0 "-b 0" 0 ${TestDataDir}/ok_b0_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock1 "-b 1" 0 ${TestDataDir}/ok_b1_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock2 "-b 2" 0 ${TestDataDir}/ok_b2_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock3 "-b 3" 0 ${TestDataDir}/ok_b3_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock4 "-b 4" 0 ${TestDataDir}/ok_b4_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock5 "-b 5" 0 ${TestDataDir}/ok_b5_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlock6 "-b 6" 0 ${TestDataDir}/ok_b6_erased ${TestDataDir}/zeros) +add_erase_test (EraseBlocks1246 "-b 2,4,1,6" 0 ${TestDataDir}/ok_b1246_erased ${TestDataDir}/zeros) + +set (TestDataDir "${CMAKE_SOURCE_DIR}/tests/st10f269/write") + +add_write_test (WriteWhole1 "" 0 ${TestDataDir}/random ${TestDataDir}/random) +add_write_test (WriteZeros "" 0 ${TestDataDir}/zeros ${TestDataDir}/zeros) +add_write_test (Write0B "-e" 6 ${TestDataDir}/ok_ones ${TestDataDir}/0B) +add_write_test (Write1B "" 0 ${TestDataDir}/ok_1B ${TestDataDir}/1B) +# Tests of automatic block erasing +add_write_test (WriteZeros2 "" 0 ${TestDataDir}/zeros ${TestDataDir}/zeros) +add_write_test (Write16K "" 0 ${TestDataDir}/ok_16K ${TestDataDir}/16K) +add_write_test (Write16K_1B "" 0 ${TestDataDir}/ok_16K_1B ${TestDataDir}/16K_1B) +add_write_test (Write24K "" 0 ${TestDataDir}/ok_24K ${TestDataDir}/24K) +add_write_test (Write24K_1B "" 0 ${TestDataDir}/ok_24K_1B ${TestDataDir}/24K_1B) +add_write_test (Write32K+Progress "-g" 0 ${TestDataDir}/ok_32K ${TestDataDir}/32K) +add_write_test (Write32K_1B "" 0 ${TestDataDir}/ok_32K_1B ${TestDataDir}/32K_1B) +add_write_test (Write64K "" 0 ${TestDataDir}/ok_64K ${TestDataDir}/64K) +add_write_test (Write64K_1B "" 0 ${TestDataDir}/ok_64K_1B ${TestDataDir}/64K_1B) +add_write_test (Write128K "" 0 ${TestDataDir}/ok_128K ${TestDataDir}/128K) +add_write_test (Write128K_1B+Progress "-g" 0 ${TestDataDir}/ok_128K_1B ${TestDataDir}/128K_1B) +add_write_test (Write192K "" 0 ${TestDataDir}/ok_192K ${TestDataDir}/192K) +add_write_test (Write192K_1B "" 0 ${TestDataDir}/ok_192K_1B ${TestDataDir}/192K_1B) +# Test of write over size and erasing blocks with mas 0x00 (no block) +add_write_test (Write256K_1B "" 6 ${TestDataDir}/ok_192K_1B ${TestDataDir}/256K_1B) + +set (TestDataDir "${CMAKE_SOURCE_DIR}/tests/st10f269/read") + +add_write_test (ReadWriteRandom "" 0 ${TestDataDir}/random ${TestDataDir}/random) +add_read_test (Read0B "-n 0" 6 "X") +add_read_test (Read256K_1B "-n 262145" 6 "X") +add_read_test (Read1B+Progress "-g -n 1" 0 ${TestDataDir}/ok_1B) +add_read_test (Read100003B "-n 100003" 0 ${TestDataDir}/ok_100003B) +add_read_test (Read262144B+Progress "-g -n 262144" 0 ${TestDataDir}/ok_262144B) diff --git a/tests/st10f269/erase/ok_b0_erased b/tests/st10f269/erase/ok_b0_erased new file mode 100755 index 0000000..95e0f78 --- /dev/null +++ b/tests/st10f269/erase/ok_b0_erased @@ -0,0 +1 @@ + diff --git a/tests/st10f269/erase/ok_b1246_erased b/tests/st10f269/erase/ok_b1246_erased Binary files differnew file mode 100755 index 0000000..0c7ec6e --- /dev/null +++ b/tests/st10f269/erase/ok_b1246_erased diff --git a/tests/st10f269/erase/ok_b1_erased b/tests/st10f269/erase/ok_b1_erased Binary files differnew file mode 100755 index 0000000..d19e238 --- /dev/null +++ b/tests/st10f269/erase/ok_b1_erased diff --git a/tests/st10f269/erase/ok_b2_erased b/tests/st10f269/erase/ok_b2_erased Binary files differnew file mode 100755 index 0000000..c6dced9 --- /dev/null +++ b/tests/st10f269/erase/ok_b2_erased diff --git a/tests/st10f269/erase/ok_b3_erased b/tests/st10f269/erase/ok_b3_erased Binary files differnew file mode 100755 index 0000000..19fccaf --- /dev/null +++ b/tests/st10f269/erase/ok_b3_erased diff --git a/tests/st10f269/erase/ok_b4_erased b/tests/st10f269/erase/ok_b4_erased Binary files differnew file mode 100755 index 0000000..ef74ce9 --- /dev/null +++ b/tests/st10f269/erase/ok_b4_erased diff --git a/tests/st10f269/erase/ok_b5_erased b/tests/st10f269/erase/ok_b5_erased Binary files differnew file mode 100755 index 0000000..354977e --- /dev/null +++ b/tests/st10f269/erase/ok_b5_erased diff --git a/tests/st10f269/erase/ok_b6_erased b/tests/st10f269/erase/ok_b6_erased Binary files differnew file mode 100755 index 0000000..8299aa6 --- /dev/null +++ b/tests/st10f269/erase/ok_b6_erased diff --git a/tests/st10f269/erase/ok_ones b/tests/st10f269/erase/ok_ones new file mode 100755 index 0000000..7145947 --- /dev/null +++ b/tests/st10f269/erase/ok_ones @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/tests/st10f269/erase/zeros b/tests/st10f269/erase/zeros Binary files differnew file mode 100755 index 0000000..6d23118 --- /dev/null +++ b/tests/st10f269/erase/zeros diff --git a/tests/st10f269/read/ok_100003B b/tests/st10f269/read/ok_100003B Binary files differnew file mode 100755 index 0000000..23885fd --- /dev/null +++ b/tests/st10f269/read/ok_100003B diff --git a/tests/st10f269/read/ok_1B b/tests/st10f269/read/ok_1B new file mode 100755 index 0000000..080c324 --- /dev/null +++ b/tests/st10f269/read/ok_1B @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/tests/st10f269/read/ok_262144B b/tests/st10f269/read/ok_262144B Binary files differnew file mode 100755 index 0000000..2f8fd38 --- /dev/null +++ b/tests/st10f269/read/ok_262144B diff --git a/tests/st10f269/read/random b/tests/st10f269/read/random Binary files differnew file mode 100755 index 0000000..2f8fd38 --- /dev/null +++ b/tests/st10f269/read/random diff --git a/tests/st10f269/write/0B b/tests/st10f269/write/0B new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/tests/st10f269/write/0B diff --git a/tests/st10f269/write/128K b/tests/st10f269/write/128K Binary files differnew file mode 100755 index 0000000..296125e --- /dev/null +++ b/tests/st10f269/write/128K diff --git a/tests/st10f269/write/128K_1B b/tests/st10f269/write/128K_1B Binary files differnew file mode 100755 index 0000000..c240692 --- /dev/null +++ b/tests/st10f269/write/128K_1B diff --git a/tests/st10f269/write/16K b/tests/st10f269/write/16K Binary files differnew file mode 100755 index 0000000..eb86315 --- /dev/null +++ b/tests/st10f269/write/16K diff --git a/tests/st10f269/write/16K_1B b/tests/st10f269/write/16K_1B Binary files differnew file mode 100755 index 0000000..3e2e673 --- /dev/null +++ b/tests/st10f269/write/16K_1B diff --git a/tests/st10f269/write/192K b/tests/st10f269/write/192K Binary files differnew file mode 100755 index 0000000..aeaad4e --- /dev/null +++ b/tests/st10f269/write/192K diff --git a/tests/st10f269/write/192K_1B b/tests/st10f269/write/192K_1B Binary files differnew file mode 100755 index 0000000..6530b32 --- /dev/null +++ b/tests/st10f269/write/192K_1B diff --git a/tests/st10f269/write/1B b/tests/st10f269/write/1B new file mode 100755 index 0000000..79b7e4b --- /dev/null +++ b/tests/st10f269/write/1B @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/tests/st10f269/write/24K b/tests/st10f269/write/24K Binary files differnew file mode 100755 index 0000000..085be42 --- /dev/null +++ b/tests/st10f269/write/24K diff --git a/tests/st10f269/write/24K_1B b/tests/st10f269/write/24K_1B Binary files differnew file mode 100755 index 0000000..56d5125 --- /dev/null +++ b/tests/st10f269/write/24K_1B diff --git a/tests/st10f269/write/256K_1B b/tests/st10f269/write/256K_1B Binary files differnew file mode 100755 index 0000000..a17fc91 --- /dev/null +++ b/tests/st10f269/write/256K_1B diff --git a/tests/st10f269/write/32K b/tests/st10f269/write/32K Binary files differnew file mode 100755 index 0000000..bf94e24 --- /dev/null +++ b/tests/st10f269/write/32K diff --git a/tests/st10f269/write/32K_1B b/tests/st10f269/write/32K_1B Binary files differnew file mode 100755 index 0000000..29353a3 --- /dev/null +++ b/tests/st10f269/write/32K_1B diff --git a/tests/st10f269/write/64K b/tests/st10f269/write/64K Binary files differnew file mode 100755 index 0000000..a658eda --- /dev/null +++ b/tests/st10f269/write/64K diff --git a/tests/st10f269/write/64K_1B b/tests/st10f269/write/64K_1B Binary files differnew file mode 100755 index 0000000..8eed060 --- /dev/null +++ b/tests/st10f269/write/64K_1B diff --git a/tests/st10f269/write/mod/backup/128K_1B b/tests/st10f269/write/mod/backup/128K_1B Binary files differnew file mode 100755 index 0000000..492a243 --- /dev/null +++ b/tests/st10f269/write/mod/backup/128K_1B diff --git a/tests/st10f269/write/mod/backup/16K_1B b/tests/st10f269/write/mod/backup/16K_1B Binary files differnew file mode 100755 index 0000000..7e46f7f --- /dev/null +++ b/tests/st10f269/write/mod/backup/16K_1B diff --git a/tests/st10f269/write/mod/backup/192K_1B b/tests/st10f269/write/mod/backup/192K_1B Binary files differnew file mode 100755 index 0000000..def4d66 --- /dev/null +++ b/tests/st10f269/write/mod/backup/192K_1B diff --git a/tests/st10f269/write/mod/backup/24K_1B b/tests/st10f269/write/mod/backup/24K_1B Binary files differnew file mode 100755 index 0000000..4dcd1ad --- /dev/null +++ b/tests/st10f269/write/mod/backup/24K_1B diff --git a/tests/st10f269/write/mod/backup/32K_1B b/tests/st10f269/write/mod/backup/32K_1B Binary files differnew file mode 100755 index 0000000..65d9f6d --- /dev/null +++ b/tests/st10f269/write/mod/backup/32K_1B diff --git a/tests/st10f269/write/mod/backup/64K_1B b/tests/st10f269/write/mod/backup/64K_1B Binary files differnew file mode 100755 index 0000000..1a1e997 --- /dev/null +++ b/tests/st10f269/write/mod/backup/64K_1B diff --git a/tests/st10f269/write/mod/ok/ok_128K_1B b/tests/st10f269/write/mod/ok/ok_128K_1B Binary files differnew file mode 100755 index 0000000..2e6b6e5 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_128K_1B diff --git a/tests/st10f269/write/mod/ok/ok_16K_1B b/tests/st10f269/write/mod/ok/ok_16K_1B Binary files differnew file mode 100755 index 0000000..af32479 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_16K_1B diff --git a/tests/st10f269/write/mod/ok/ok_192K_1B b/tests/st10f269/write/mod/ok/ok_192K_1B Binary files differnew file mode 100755 index 0000000..f732165 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_192K_1B diff --git a/tests/st10f269/write/mod/ok/ok_24K_1B b/tests/st10f269/write/mod/ok/ok_24K_1B Binary files differnew file mode 100755 index 0000000..883e4d5 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_24K_1B diff --git a/tests/st10f269/write/mod/ok/ok_32K_1B b/tests/st10f269/write/mod/ok/ok_32K_1B Binary files differnew file mode 100755 index 0000000..a6415e4 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_32K_1B diff --git a/tests/st10f269/write/mod/ok/ok_64K_1B b/tests/st10f269/write/mod/ok/ok_64K_1B Binary files differnew file mode 100755 index 0000000..e7f7433 --- /dev/null +++ b/tests/st10f269/write/mod/ok/ok_64K_1B diff --git a/tests/st10f269/write/mod/r.bin b/tests/st10f269/write/mod/r.bin Binary files differnew file mode 100755 index 0000000..0a11c71 --- /dev/null +++ b/tests/st10f269/write/mod/r.bin diff --git a/tests/st10f269/write/ok_128K b/tests/st10f269/write/ok_128K Binary files differnew file mode 100755 index 0000000..4b32c68 --- /dev/null +++ b/tests/st10f269/write/ok_128K diff --git a/tests/st10f269/write/ok_128K_1B b/tests/st10f269/write/ok_128K_1B Binary files differnew file mode 100755 index 0000000..2e6b6e5 --- /dev/null +++ b/tests/st10f269/write/ok_128K_1B diff --git a/tests/st10f269/write/ok_16K b/tests/st10f269/write/ok_16K Binary files differnew file mode 100755 index 0000000..247e716 --- /dev/null +++ b/tests/st10f269/write/ok_16K diff --git a/tests/st10f269/write/ok_16K_1B b/tests/st10f269/write/ok_16K_1B Binary files differnew file mode 100755 index 0000000..af32479 --- /dev/null +++ b/tests/st10f269/write/ok_16K_1B diff --git a/tests/st10f269/write/ok_192K b/tests/st10f269/write/ok_192K Binary files differnew file mode 100755 index 0000000..fcd454b --- /dev/null +++ b/tests/st10f269/write/ok_192K diff --git a/tests/st10f269/write/ok_192K_1B b/tests/st10f269/write/ok_192K_1B Binary files differnew file mode 100755 index 0000000..f732165 --- /dev/null +++ b/tests/st10f269/write/ok_192K_1B diff --git a/tests/st10f269/write/ok_1B b/tests/st10f269/write/ok_1B new file mode 100755 index 0000000..6b839e2 --- /dev/null +++ b/tests/st10f269/write/ok_1B @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/tests/st10f269/write/ok_24K b/tests/st10f269/write/ok_24K Binary files differnew file mode 100755 index 0000000..96bf91e --- /dev/null +++ b/tests/st10f269/write/ok_24K diff --git a/tests/st10f269/write/ok_24K_1B b/tests/st10f269/write/ok_24K_1B Binary files differnew file mode 100755 index 0000000..883e4d5 --- /dev/null +++ b/tests/st10f269/write/ok_24K_1B diff --git a/tests/st10f269/write/ok_32K b/tests/st10f269/write/ok_32K Binary files differnew file mode 100755 index 0000000..acec7cb --- /dev/null +++ b/tests/st10f269/write/ok_32K diff --git a/tests/st10f269/write/ok_32K_1B b/tests/st10f269/write/ok_32K_1B Binary files differnew file mode 100755 index 0000000..a6415e4 --- /dev/null +++ b/tests/st10f269/write/ok_32K_1B diff --git a/tests/st10f269/write/ok_64K b/tests/st10f269/write/ok_64K Binary files differnew file mode 100755 index 0000000..a8453c3 --- /dev/null +++ b/tests/st10f269/write/ok_64K diff --git a/tests/st10f269/write/ok_64K_1B b/tests/st10f269/write/ok_64K_1B Binary files differnew file mode 100755 index 0000000..e7f7433 --- /dev/null +++ b/tests/st10f269/write/ok_64K_1B diff --git a/tests/st10f269/write/ok_ones b/tests/st10f269/write/ok_ones new file mode 100755 index 0000000..7145947 --- /dev/null +++ b/tests/st10f269/write/ok_ones @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/tests/st10f269/write/random b/tests/st10f269/write/random Binary files differnew file mode 100755 index 0000000..c362624 --- /dev/null +++ b/tests/st10f269/write/random diff --git a/tests/st10f269/write/zeros b/tests/st10f269/write/zeros Binary files differnew file mode 100755 index 0000000..6d23118 --- /dev/null +++ b/tests/st10f269/write/zeros |
