Lines Matching +full:test +full:- +full:results

18 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
26 # functionality to Compile, Execute and View Results of
27 # LTP test cases.
29 # Author: Manoj Iyer - manjo@mail.utexas.edu
31 # Thanks: Jim Choate - For suggesting the use of dialog command.
33 # History: March 26 2003 - Created.
35 # March 28 2003 - Removed gauges and put make commands in foreground.
36 # Robbie Williamson - robbiew@us.ibm.com
38 # March 31 2003 - Made scenario menu creation dynamic and code
39 # to pull the test descriptions from the scenario files.
40 # Robbie Williamson - robbiew@us.ibm.com
42 # April 17 2003 - Added menu selection to list contents of selected
44 # Robbie Williamson - robbiew@us.ibm.com
46 # April 23 2003 - Added PID to results filename.
47 # - Added code to allow users to redirect output and
48 # specify test execution duration.
49 # Robbie Williamson - robbiew@us.ibm.com
51 # April 30, 2003 - Recoded results display to allow selection
52 # of results file.
53 # - Created variable to hold results filename
54 # - Added time to results filename.
65 rm -f /tmp/runltp.*
76 # Input: $1 - Title the needs to be displayed on the window.
78 # $2 - Message text.
83 dialog --backtitle "Linux Test Project Control Centre" \
84 --title " $1 " \
85 --msgbox " $2 " 10 70
92 # Description: Checks for commands that are pre-reqs for compiling and
105 dialog --backtitle "Linux Test Project Control Centre" \
106 --title "Compiling LTP testsuite"\
107 --yesno "This will compile all the test cases in\
108 LTP test suite and place the executables\
116 if [ $? -ne 0 ] ;
120 required to compile LTP test cases. Please\
127 if [ $? -ne 0 ];then
128 echo "ERROR in \'make clean\' - exiting."
132 if [ $? -ne 0 ];then
133 echo "ERROR in \'make all\' - exiting."
137 if [ $? -ne 0 ];then
138 echo "ERROR in \'make install\' - exiting."
152 # Description: The results generated after the ltp execution located under
153 # ltp-mmddyy/results/ directory in a text (ASCII) file called
154 # results.todaysdate. This function displays this file in a
155 # window. If the results file does not exit it displays an
156 # info message window notifing the user that LTP test cases
157 # need to be executed inorder to view results.
159 # Input: ltp-mmddyy/results/results.todaysdate.time
161 # Output: Window displaying results of testcases that were executed.
166 RESULTS_LIST=$(for i in `ls -1 -A -I "CVS" results`;do echo -n "$i [more...] "; done)
167 if ! [ -z $RESULTS_LIST ] ;then
168 while [ $RC -ne "1" ]
170 dialog --clear
171 dialog --backtitle "Linux Test Project Control Centre" \
172 --title "LTP Test Results" \
173 --menu "Move using[UP] [DOWN], Select using [ENTER]" 15 70 8 \
175 2>/tmp/runltp.results.$$ || RC=$?
176 results_item=$(cat /tmp/runltp.results.$$)
177 if ! [ -z $results_item ];then
178 dialog --clear
179 dialog --backtitle "Linux Test Project Control Centre" \
180 --title "LTP Test Results" \
181 --textbox results/$results_item 17 70
183 dialog --backtitle "Linux Test Project Control Centre" \
184 --title "LTP Test Results." \
185 --yesno "Would you like to share these results with the LTP \
186 community by posting it to the LTP results mailing list?" \
190 mail ltp-results@lists.sourceforge.net < \
191 ./results/$results_item ;
201 dialog --clear
202 dialog --backtitle "Linux Test Project Control Centre" \
203 --title "LTP Test Results" \
204 --msgbox "ERROR: No files to view in /results directory." 5 53
213 # test output direction
220 dialog --backtitle "Linux Test Project Control Centre"\
221 --title "Output Direction" --clear\
222 --yesno "Would you like test output recorded to a file, instead of STDOUT?" 7 80
224 if [ $RC -eq "0" ]
226 dialog --backtitle "Linux Test Project Control Centre"\
227 --title "Output Direction" --clear\
228 --inputbox " Please enter the full path and \
234 RUNALL_FLAGS=" -o $flags_outfile"
237 dialog --backtitle "Linux Test Project Control Centre"\
238 --title "Test Duration" --clear\
239 --yesno "Would you like to specify test duration? \
242 if [ $RC -eq "0" ]
244 dialog --backtitle "Linux Test Project Control Centre"\
245 --title "Test Duration - Interval Selection" --clear\
246 --menu "Move using[UP] [DOWN], Select using [ENTER]" 15 70 4 \
262 dialog --backtitle "Linux Test Project Control Centre"\
263 --title "Test Duration - Length Specification" --clear\
264 --inputbox "$WINDOW_MSG" 7 80 \
268 RUNALL_FLAGS=" $RUNALL_FLAGS -t $flags_duration"
274 # Description: Execute tests by calling runltp, display test status
284 RESULTS_FILE=$(date +%Y-%m-%d.%H.%M.%S).$$
287 ./runltp -q -p $RUNALL_FLAGS -l results.$RESULTS_FILE \
288 -f /tmp/runltp.test.list.$$
303 # The function checks to see if the ltp-mmddyy/testcases/bin
316 # Output: Test selection window, Message window,
325 if ! [ -d ./testcases/bin ]
334 …LIST=$(for i in `ls -1 -A -I "CVS" runtest`; do echo -n "$i "; j=$(head -n1 runtest/$i | cut -d: -
335 dialog --backtitle "Linux Test Project Control Centre"\
336 --title "Execute LTP" --clear\
337 --checklist "Select [SPACEBAR] tests to run" 20 80 5 \
340 size=`wc -m /tmp/runltp.choice.$$|awk '{print $1}'`
341 if [ $size -eq 0 ];then
353 cat ./runtest/$(echo $i | sed -e 's/"//g') \
354 >> /tmp/runltp.test.list.$$ ;
355 if [[ $(echo $i | sed -e 's/"//g') == "tcp_cmds" || \
356 $(echo $i | sed -e 's/"//g') == "tcp_cmds_noexpect" || \
357 $(echo $i | sed -e 's/"//g') == "multicast" || \
358 $(echo $i | sed -e 's/"//g') == "ipv6" || \
359 $(echo $i | sed -e 's/"//g') == "ipv6_noexpect" || \
360 $(echo $i | sed -e 's/"//g') == "nfs" || \
361 $(echo $i | sed -e 's/"//g') == "multicast" ]] ;
367 if ! [ -z $run_net_test ] ;
369 dialog --backtitle "Linux Test Project Control Centre"\
370 --title "Execute LTP test cases" \
371 --clear \
372 --inputbox "You have chosen to execute testcases \
375 name" 17 80 $(hostname --long) \
382 dialog --backtitle "Linux Test Project Control Centre"\
383 --title "Execute LTP test cases" \
384 --clear \
385 --inputbox " Please enter the root password \
394 if ! [ -d ./testcases/bin ] ;
403 dialog --clear ;
433 The Linux Test Project test suite. Written by\
452 SCENARIOS=$(for i in `ls -1 -A -I "CVS" runtest`;do echo -n "$i [more...] "; done)
454 while [ $RC -ne "1" ]
456 dialog --clear
457 dialog --backtitle "Linux Test Project Control Centre" \
458 --title "LTP Scenario Files" \
459 --menu "Move using[UP] [DOWN], Select using [ENTER]" 15 70 8 \
463 if ! [ -z $scenario_item ];then
464 dialog --clear
465 dialog --backtitle "Linux Test Project Control Centre" \
466 --title "LTP Scenario Files" \
467 --textbox runtest/$scenario_item 17 70
477 # provides options to Compile, Execute, and View test execution
478 # results.
497 # test for dialog program exist
498 if [ ! -x /usr/bin/dialog ]; then
511 dialog --clear
512 dialog --backtitle "Linux Test Project Control Centre" \
513 --title "Main Menu" \
514 --menu "Move using[UP] [DOWN], Select using [ENTER]" 15 70 5 \
519 Results "Display a summary of test results" \
531 Results) disp_ltpres ;;
535 "Thank you for using Linux Test Project test suite.\
538 for latest news on The Linux Test Project. "
542 "Thank you for using Linux Test Project test suite.\
545 on The Linux Test Project. "