Beispiel #1
0
int main(int argc , char ** argv) {
  const char * rel_path_file = argv[1];
  const char * abs_path_file = argv[2];
  const char * rel_directory = argv[3];

  create_test_area("STORE-TEST" , true );
  create_test_area("DEL-TEST" , false);
  test_install_file_exists( rel_path_file );
  test_install_file_exists( abs_path_file );
  test_copy_directory( rel_directory );
  test_input();
  test_get_cwd();
  test_get_original_cwd();

  test_copy_file( rel_path_file );
  test_copy_file( abs_path_file );

  test_copy_parent_directory( rel_path_file );
  test_copy_parent_directory( abs_path_file );

  test_copy_parent_content( rel_path_file );
  test_copy_parent_content( abs_path_file );

  test_with_prefix();
  test_update_store();

  exit(0);
}
Beispiel #2
0
int main(int argc , char ** argv) {
   const char * executable = argv[1];
   test_copy_file( executable );
   exit(0);
}