3 .
"${TEST_SCRIPTS_DIR}/unit.sh"
5 tfile
="${TEST_VAR_DIR}/line.$$"
12 test_cleanup remove_files
17 unit_test line_test
"$tfile"
19 printf "\0" > "$tfile"
21 required_result
1 <<EOF
25 unit_test line_test
"$tfile"
27 echo -n "hello" > "$tfile"
30 unit_test line_test
"$tfile"
37 required_result
2 << EOF
41 unit_test line_test
"$tfile"
43 required_result
2 << EOF
47 unit_test line_test
"$tfile"
50 This is a really long long line full of random words and hopefully it will be read properly by the line test program and identified as a single line
53 required_result
1 <<EOF
54 This is a really long long line full of random words and hopefully it will be read properly by the line test program and identified as a single line
56 unit_test line_test
"$tfile"
66 required_result
5 <<EOF
73 unit_test line_test
"$tfile" 64
76 this is line number one
77 this is line number two
78 this is line number three
79 this is line number four
80 this is line number five
83 required_result
5 <<EOF
84 this is line number one
85 this is line number two
86 this is line number three
87 this is line number four
88 this is line number five
90 unit_test line_test
"$tfile" 64