Home | History | Annotate | Download | only in sh

Lines Matching refs:OF

9 # 1. Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer.
12 # notice, this list of conditions and the following disclaimer in the
17 # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 # POSSIBILITY OF SUCH DAMAGE.
27 # the implementation of "sh" to test
30 # This set of tests checks the low level shell (script) input
55 # tests, even minor changes can defeat the purpose of the test
57 # a line of commentary that does nothing
58 # another line of comments (these just make the script bigger)
86 # at each location try varying the number of \0's inserted
89 OF="helper-${N}@${loc}.sh"
93 of="${OF}" >/dev/null 2>&1
96 of="${OF}" >/dev/null 2>&1
98 test "$(stat -f %z "${OF}")" -eq "$(( size + N ))" ||
102 ${TEST_SH} "${OF}"
104 rm -f "${OF}"
121 OF="helper-${*}.sh"
127 of="${OF}" >/dev/null 2>&1
134 printf '\0' >> "${OF}"
138 of="${OF}" >/dev/null 2>&1
147 oseek="$(( loc + G ))" of="${OF}" >/dev/null 2>&1
149 printf '\0' >> "${OF}"
152 test "$(stat -f %z "${OF}")" -eq "$(( size + gaps ))" ||
156 ${TEST_SH} "${OF}"
158 rm -f "${OF}"
164 # eventually Murphy will prevail, and one of these tests will catch it.