Back to home page

LXR

 
 

    


Warning, /testsuites/libtests/block06/block06.doc is written in an unsupported language. File is not indexed.

0001 # SPDX-License-Identifier: BSD-2-Clause
0002 
0003 # Copyright 2008-2014 Chris Johns (chrisj@rtems.org)
0004 #
0005 # Redistribution and use in source and binary forms, with or without
0006 # modification, are permitted provided that the following conditions
0007 # are met:
0008 # 1. Redistributions of source code must retain the above copyright
0009 #    notice, this list of conditions and the following disclaimer.
0010 # 2. Redistributions in binary form must reproduce the above copyright
0011 #    notice, this list of conditions and the following disclaimer in the
0012 #    documentation and/or other materials provided with the distribution.
0013 #
0014 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0015 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0016 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0017 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
0018 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0019 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0020 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0021 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0022 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0023 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0024 # POSSIBILITY OF SUCH DAMAGE.
0025 #
0026 
0027 This file describes the directives and concepts tested by this test set.
0028 
0029 test set name: block06
0030 
0031 Test 1: Get task 0 to get buffer 0 from the pool then release it twice.
0032 
0033 Test 2: Get task 0 to get buffers 0 -> 4 from the pool hold them. Then get
0034         task 1 and task 2 to get them with blocking. The 2 tasks tests the
0035         priority blocking on the buffer.
0036 
0037 Test 3: Read a block from disk into the buffer, modify the block and release
0038         it modified. Use a block great then 4 because 0 -> 4 are in the cache.
0039 
0040 Test 4: Read every buffer in the pool and hold. Then get task 1 to ask for
0041         another buffer that is being accessed. It will block waiting for it to
0042                 appear.
0043  
0044 Test 5: Read every buffer in the pool and hold. Then get task 1 to ask for a
0045         new buffer. It will block waiting for one to appear.
0046 
0047 Test 6: Get 5 buffers, release modify 4 then sync the last.
0048 
0049 Test 7: Get 5 buffers, release modify them all then sync the device.
0050 
0051 Test 8: Get 5 buffers, release modify the last 2 then the reset from 0.
0052 
0053 TODO: if possible, break into separate tests
0054