Actual source code: googledriveupload.c

petsc-3.11.4 2019-09-28
Report Typos and Errors

  2: /*
  3:     Run with -google_refresh_token XXX to allow access to your Google Drive or else it will prompt you to enter log in information for Google Drive.
  4: */

  6:  #include <petscsys.h>

  8: int main(int argc,char **argv)
  9: {
 11:   char           access_token[512];

 13:   PetscInitialize(&argc,&argv,NULL,NULL);if (ierr) return ierr;
 14:   PetscGoogleDriveRefresh(PETSC_COMM_WORLD,NULL,access_token,sizeof(access_token));
 15:   PetscGoogleDriveUpload(PETSC_COMM_WORLD,access_token,"googledriveupload.c");
 16:   PetscFinalize();
 17:   return ierr;
 18: }

 20: /*TEST

 22:    build:
 23:      requires: ssl

 25:    test:
 26:      TODO: determine how to run this test without making a google refresh token public

 28: TEST*/