Date: 2022-03-31T04:46:19+00:00

Actual source code: googledriveupload.c

      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: {
     10:   char           access_token[512];

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

     19: /*TEST

     21:    build:
     22:      requires: ssl

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

     27: TEST*/