Lines Matching full:test
8 # Invoke this test script from U-Boot base directory as ./test/fs/fs-test.sh
12 # fs-test.sb.ext4.out: Summary: PASS: 23 FAIL: 0
13 # fs-test.ext4.out: Summary: PASS: 23 FAIL: 0
14 # fs-test.fs.ext4.out: Summary: PASS: 23 FAIL: 0
16 # fs-test.sb.fat.out: Summary: PASS: 23 FAIL: 0
17 # fs-test.fat.out: Summary: PASS: 20 FAIL: 3
18 # fs-test.fs.fat.out: Summary: PASS: 20 FAIL: 3
24 # All generated output files from this test will be in $OUT_DIR
26 OUT_DIR="sandbox/test/fs"
43 # $MD5_FILE will have the expected md5s when we do the test
47 # $OUT shall be the prefix of the test output. Their suffix will be .out
48 OUT="${OUT_DIR}/fs-test"
83 # Generate sandbox U-Boot - gleaned from /test/dm/test-dm.sh
94 echo "Please run this script as ./test/fs/`basename $0`"
210 setenv bind 'if test "\$sb" != sb; then sb bind 0 "$1"; fi'
212 # Test Case 1 - ls
218 # Test Case 2 - size of small file
224 # Test Case 3 - size of big file
233 # Test Case 4a - Read full 1MB of small file
236 # Test Case 4b - Read full 1MB of small file
240 # Test Case 5a - First 1MB of big file
243 # Test Case 5b - First 1MB of big file
248 # Test Case 6a - Last 1MB of big file
251 # Test Case 6b - Last 1MB of big file
256 # Test Case 7a - One from the last 1MB chunk of 2GB
259 # Test Case 7b - One from the last 1MB chunk of 2GB
264 # Test Case 8a - One from the start 1MB chunk from 2GB
267 # Test Case 8b - One from the start 1MB chunk from 2GB
272 # Test Case 9a - One 1MB chunk crossing the 2GB boundary
275 # Test Case 9b - One 1MB chunk crossing the 2GB boundary
280 # Test Case 10 - 2MB chunk from the last 1MB of big file
287 # Write it back to test the writes
288 # Test Case 11a - Check that the write succeeded
292 # Test Case 11b - Check md5 of written to is same as the one read from
297 # Next test case checks writing a file whose dirent
300 # Test Case 12 - Check directory traversal
306 # Test Case 13a - Check directory traversal
310 # Test Case 13b - Check md5 of written to is same as the one read from
315 # Test Case 13c - Check md5 of written to is same as the one read from
326 # generated with the appropriate start and length that we use to test.
327 # It creates the necessary files in the image to test.
356 # previous test.
360 # Generate the md5sums of reads that we will test against small file
363 # Generate the md5sums of reads that we will test against big file
442 grep -A6 "Test Case 1 " "$1" | egrep -iq "2621440000 *$4"
446 grep -A6 "Test Case 1 " "$1" | egrep -iq "1048576 *$3"
450 egrep -A3 "Test Case 2 " "$1" | grep -q "filesize=100000"
454 egrep -A3 "Test Case 3 " "$1" | grep -q "filesize=9c400000"
458 grep -A4 "Test Case 4a " "$1" | grep -q "filesize=100000"
460 check_md5 "Test Case 4b " "$1" "$2" 1 "TC4: load from $3"
463 grep -A4 "Test Case 5a " "$1" | grep -q "filesize=100000"
465 check_md5 "Test Case 5b " "$1" "$2" 2 "TC5: load of 1st MB from $4"
468 grep -A4 "Test Case 6a " "$1" | grep -q "filesize=100000"
470 check_md5 "Test Case 6b " "$1" "$2" 3 "TC6: load of last MB from $4"
473 grep -A4 "Test Case 7a " "$1" | grep -q "filesize=100000"
475 check_md5 "Test Case 7b " "$1" "$2" 4 \
479 grep -A4 "Test Case 8a " "$1" | grep -q "filesize=100000"
481 check_md5 "Test Case 8b " "$1" "$2" 5 \
485 grep -A4 "Test Case 9a " "$1" | grep -q "filesize=100000"
487 check_md5 "Test Case 9b " "$1" "$2" 6 \
491 grep -A5 "Test Case 10 " "$1" | grep -q "filesize=100000"
495 grep -A2 "Test Case 11a " "$1" | grep -q '1048576 bytes written'
497 check_md5 "Test Case 11b " "$1" "$2" 1 \
501 grep -A4 "Test Case 12 " "$1" | grep -q 'Unable to write file'
505 grep -A2 "Test Case 13a " "$1" | grep -q '1048576 bytes written'
507 check_md5 "Test Case 13b " "$1" "$2" 1 \
509 check_md5 "Test Case 13c " "$1" "$2" 1 \
516 # if a fs test (size/load/save) or a nonfs test (fatread/extread) needs to
550 # In each loop, for a given file system image, we test both the
560 # sb commands test
564 # Lets mount the image and test sb hostfs commands