Unverified Commit afa89302 authored by Tommaso Tocci's avatar Tommaso Tocci
Browse files

Add rename tests to gitlabCI

parent 5fc988e5
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -109,3 +109,15 @@ test path resolution:
  artifacts:
    paths:
     - "${LOG_PATH}"

test rename:
  stage: test
  script:
    - mkdir -p "${LOG_PATH}"
    - ${BUILD_PATH}/bin/adafs_daemon --mount /tmp/mountdir --root /tmp/adafs_root &
    - sleep 4
    - LD_PRELOAD=${BUILD_PATH}/lib/libadafs_preload_client.so ${TESTS_BUILD_PATH}/gkfs_test_rename
  artifacts:
    paths:
     - "${LOG_PATH}"
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ int main(int argc, char* argv[]) {


    /* Create target */
    fd = open(source_int.c_str(), O_WRONLY | O_CREAT, 0770);
    fd = open(source_int.c_str(), O_WRONLY | O_CREAT, S_IRWXU | S_IRWXG);
    if(fd < 0){
        std::cerr << "ERROR: opening target for write" << strerror(errno) << std::endl;
        return -1;