Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests do not work when pmdk is installed in custom directory #18

Open
mramotowski opened this issue Feb 2, 2018 · 0 comments
Open

tests do not work when pmdk is installed in custom directory #18

mramotowski opened this issue Feb 2, 2018 · 0 comments

Comments

@mramotowski
Copy link
Contributor

Found on 51de7f7

+ LD_LIBRARY_PATH=../../install/lib/ make -j4
Scanning dependencies of target gtest
Scanning dependencies of target pugixml
[  5%] Creating directories for 'gtest'
[  5%] Creating directories for 'pugixml'
[ 10%] Performing download step (download, verify and extract) for 'pugixml'
[ 10%] Performing download step (download, verify and extract) for 'gtest'
-- Downloading...
   dst='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/pugixml/pugixml-1.8.1.tar.gz'
   timeout='none'
-- Downloading...
   dst='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/gtest/googletest-1.8.0.zip'
   timeout='none'
-- Using src='https://github.com/zeux/pugixml/releases/download/v1.8.1/pugixml-1.8.1.tar.gz'
-- Using src='https://github.com/google/googletest/archive/release-1.8.0.zip'
-- [download 0% complete]
-- [download 5% complete]
-- [download 0% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 14% complete]
-- [download 1% complete]
-- [download 19% complete]
-- [download 2% complete]
-- [download 24% complete]
-- [download 29% complete]
-- [download 34% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 39% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 53% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 58% complete]
-- [download 63% complete]
-- [download 68% complete]
-- [download 73% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 87% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 92% complete]
-- [download 97% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/pugixml/pugixml-1.8.1.tar.gz'
-- Downloading... done
-- [download 22% complete]
-- [download 23% complete]
-- extracting...
     src='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/pugixml/pugixml-1.8.1.tar.gz'
     dst='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/build/ext/pugixml/src/pugixml'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
[ 15%] No patch step for 'pugixml'
[ 15%] No update step for 'pugixml'
[ 17%] Performing configure step for 'pugixml'
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- The C compiler identification is GNU 7.2.0
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- Detecting C compiler ABI info - done
-- [download 63% complete]
-- [download 64% complete]
-- Detecting C compile features
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
       file='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/gtest/googletest-1.8.0.zip'
-- Downloading... done
-- extracting...
     src='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/ext/gtest/googletest-1.8.0.zip'
     dst='/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/build/ext/gtest/src/gtest'
-- extracting... [tar xfz]
-- Detecting CXX compiler ABI info - done
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
-- Detecting CXX compile features
[ 20%] No patch step for 'gtest'
[ 22%] No update step for 'gtest'
[ 25%] Performing configure step for 'gtest'
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/build/ext/pugixml/src/pugixml-build
[ 27%] Performing build step for 'pugixml'
Scanning dependencies of target pugixml
[ 50%] Building CXX object CMakeFiles/pugixml.dir/src/pugixml.cpp.o
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.14") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/build/ext/gtest/src/gtest-build
[ 30%] Performing build step for 'gtest'
Scanning dependencies of target gtest
Scanning dependencies of target gmock
[  9%] Building CXX object googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 18%] Building CXX object googlemock/CMakeFiles/gmock.dir/__/googletest/src/gtest-all.cc.o
Scanning dependencies of target gmock_main
[ 27%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/__/googletest/src/gtest-all.cc.o
[100%] Linking CXX static library libpugixml.a
[100%] Built target pugixml
[ 32%] No install step for 'pugixml'
[ 35%] Completed 'pugixml'
[ 35%] Built target pugixml
[ 36%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o
[ 45%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 54%] Linking CXX static library libgtest.a
[ 63%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[ 63%] Built target gtest
Scanning dependencies of target gtest_main
[ 72%] Building CXX object googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[ 81%] Linking CXX static library libgtest_main.a
[ 81%] Built target gtest_main
[ 90%] Linking CXX static library libgmock_main.a
[ 90%] Built target gmock_main
[100%] Linking CXX static library libgmock.a
[100%] Built target gmock
[ 37%] No install step for 'gtest'
[ 40%] Completed 'gtest'
[ 40%] Built target gtest
Scanning dependencies of target Utils
[ 47%] Building CXX object CMakeFiles/Utils.dir/src/utils/api_c/windows_api.cc.o
[ 47%] Building CXX object CMakeFiles/Utils.dir/src/utils/api_c/api_c.cc.o
[ 47%] Building CXX object CMakeFiles/Utils.dir/src/utils/api_c/linux_api.cc.o
[ 50%] Building CXX object CMakeFiles/Utils.dir/src/utils/configXML/local_configuration.cc.o
[ 52%] Building CXX object CMakeFiles/Utils.dir/src/utils/poolset/poolset.cc.o
[ 55%] Building CXX object CMakeFiles/Utils.dir/src/utils/poolset/poolset_management.cc.o
[ 57%] Building CXX object CMakeFiles/Utils.dir/src/utils/poolset/replica.cc.o
[ 60%] Building CXX object CMakeFiles/Utils.dir/src/utils/shell/i_shell.cc.o
[ 62%] Linking CXX static library libUtils.a
[ 62%] Built target Utils
Scanning dependencies of target PMEMOBJ
Scanning dependencies of target PMEMPOOLS
[ 65%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/main.cc.o
[ 67%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/obj_ctl/alloc_class/alloc_class.cc.o
[ 70%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/obj_ctl/alloc_class/alloc_class_test.cc.o
[ 72%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/main.cc.o
[ 75%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/invalid_arguments.cc.o
[ 77%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/invalid_arguments_tests.cc.o
[ 80%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/obj_ctl/alloc_class/alloc_class_utils.cc.o
[ 82%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/obj_ctl/alloc_class/ext_cfg.cc.o
[ 85%] Building CXX object CMakeFiles/PMEMOBJ.dir/src/tests/pmemobj/obj_ctl/alloc_class/ext_cfg_test.cc.o
[ 87%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/pmempool_create.cc.o
[ 90%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/pmempool_create_tests_CLI.cc.o
[ 92%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/valid_arguments.cc.o
[ 95%] Building CXX object CMakeFiles/PMEMPOOLS.dir/src/tests/pmempools/pmempool_create/valid_arguments_tests.cc.o
[ 97%] Linking CXX executable PMEMOBJ
[ 97%] Built target PMEMOBJ
[100%] Linking CXX executable PMEMPOOLS
[100%] Built target PMEMPOOLS
[Pipeline] sh
[pmdk-tests_all_tests] Running shell script
+ cp /home/jenkins/config.xml pmdk-tests/build/
[Pipeline] sh
[pmdk-tests_all_tests] Running shell script
+ pmdk-tests/build/PMEMPOOLS --gtest_output=xml:result.xml
[==========] Running 39 tests from 7 test cases.
[----------] Global test environment set-up.
[----------] 4 tests from PmempoolCreate
[ RUN      ] PmempoolCreate.PMEMPOOL_CREATE_INVALID_INHERIT
/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/src/tests/pmempools/pmempool_create/pmempool_create_tests_CLI.cc:47: Failure
      Expected: 0
To be equal to: CreatePool(PoolArgs{PoolType::Log, {{Option::Size, OptionType::Short, "10M"}}}, pool_path_)
      Which is: 127
sh: 1: pmempool: not found

/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/src/tests/pmempools/pmempool_create/pmempool_create_tests_CLI.cc:53: Failure
      Expected: 1
To be equal to: CreatePool(PoolArgs{PoolType::Log, {{Option::Inherit, OptionType::Long, pool_path_}}}, pool_path_)
      Which is: 127
sh: 1: pmempool: not found

/home/jenkins/workspace/pmdk-tests_all_tests/pmdk-tests/src/tests/pmempools/pmempool_create/pmempool_create_tests_CLI.cc:57: Failure
Value of: string_utils::IsSubstrFound<char>( "error: creating pool file failed", GetOutputContent())
  Actual: false
Expected: true
Expected: error: creating pool file failed
Actual: sh: 1: pmempool: not found

[  FAILED  ] PmempoolCreate.PMEMPOOL_CREATE_INVALID_INHERIT (4 ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant