message: suppressing matrix i/o during tests
diff: @@ -358,9 +358,13 @@ rocsparse_int read_mtx_matrix(const char* filename,
  std::vector<rocsparse_int>& col,
  std::vector<T>& val,
  rocsparse_index_base idx_base)
  +{
  + const char* env = getenv("GTEST_LISTENER");
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  {
  printf("Reading matrix %s...", filename);
  fflush(stdout);
  + }
  FILE* f = fopen(filename, "r");
  if(!f)
  @@ -544,8 +548,11 @@ rocsparse_int read_mtx_matrix(const char* filename,
  val[i] = unsorted_val[perm[i]];
  }
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  + {
  printf("done.\n");
  fflush(stdout);
  + }
  return 0;
  }
  @@ -561,9 +568,13 @@ rocsparse_int read_bin_matrix(const char* filename,
  std::vector<rocsparse_int>& col,
  std::vector<T>& val,
  rocsparse_index_base idx_base)
  +{
  + const char* env = getenv("GTEST_LISTENER");
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  {
  printf("Reading matrix %s...", filename);
  fflush(stdout);
  + }
  FILE* f = fopen(filename, "rb");
  if(!f)
  @@ -624,8 +635,11 @@ rocsparse_int read_bin_matrix(const char* filename,
  }
  }
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  + {
  printf("done.\n");
  fflush(stdout);
  + }
  return 0;
  }
  @@ -641,9 +655,13 @@ rocsparse_int read_rocalution_matrix(const char* filename,
  std::vector<rocsparse_int>& col,
  std::vector<T>& val,
  rocsparse_index_base idx_base)
  +{
  + const char* env = getenv("GTEST_LISTENER");
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  {
  printf("Reading matrix %s...", filename);
  fflush(stdout);
  + }
  std::ifstream in(filename, std::ios::in | std::ios::binary);
  if(!in.is_open())
  @@ -713,8 +731,11 @@ rocsparse_int read_rocalution_matrix(const char* filename,
  }
  }
  + if(!env || strcmp(env, "NO_PASS_LINE_IN_LOG"))
  + {
  printf("done.\n");
  fflush(stdout);
  + }
  return 0;
  }
  