Changeset 3290 for monitoring/plugins/mpi/integration_test.R
- Timestamp:
- 08/06/13 15:42:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
monitoring/plugins/mpi/integration_test.R
r3289 r3290 13 13 ## test_results has a value equal to the exit status of the scripts with arguments command_line_arguments run. 14 14 15 test_results <-15 check_exit_status <- 16 16 base:::integer(length = base:::nrow(checks_info)); 17 test_stdout <-17 check_stdout <- 18 18 base:::character(length = base:::nrow(checks_info)); 19 19 #test_stderr … … 26 26 for (test_index in 1L:base:::nrow(checks_info)) 27 27 { 28 base:::message(base:::paste(" Running test", test_index));28 base:::message(base:::paste("Checking", checks_info[test_index,]$description, "...")); 29 29 30 30 command_line <- … … 37 37 '-u', checks_info[test_index,]$`-u`); 38 38 } 39 if (checks_info[test_index,]$`-b` != "") { 40 command_line <- 41 base:::c(command_line, 42 '-b', checks_info[test_index,]$`-b`); 43 } 39 44 40 45 test_output <- … … 46 51 ## Fetch exit status codes. 47 52 if(!base:::is.null(base:::attr(test_output, "status"))) { 48 test_results[test_index] <-53 check_exit_status[test_index] <- 49 54 base:::as.integer(base:::attr(test_output, "status")); 50 55 } else { 51 test_results[test_index] <-56 check_exit_status[test_index] <- 52 57 0L; 53 58 }; 54 59 55 test_stdout[test_index] <-60 check_stdout[test_index] <- 56 61 base:::paste(test_output, 57 62 sep = "\n", … … 69 74 base:::data.frame(description = checks_info$description, 70 75 command_line = base:::unlist(command_lines), 71 test_results = test_results,72 test_stdout = test_stdout,76 check_exit_status = check_exit_status, 77 check_stdout = check_stdout, 73 78 stringsAsFactors = FALSE); 74 79 … … 76 81 77 82 test_results_file_path <- 78 "/tmp/ test_results.tab";83 "/tmp/Nagios_checks_test.tab"; 79 84 80 85 utils:::write.table(test_results_df,
Note: See TracChangeset
for help on using the changeset viewer.