Path errors when running `make test`
Created by: skylian
After mkdir build && cd build
and cmake ..
, running make test
under the folder build
will fail on the following tests:
24 - test_PyDataProvider (Failed) 26 - test_RecurrentGradientMachine (Failed) 27 - test_NetworkCompare (Failed) 28 - test_PyDataProvider2 (Failed) 32 - test_Prediction (Failed) 33 - test_Compare (Failed) 34 - test_Trainer (Failed) 35 - test_TrainerOnePass (Failed) 36 - test_CompareTwoNets (Failed) 37 - test_CompareTwoOpts (Failed) 38 - test_CompareSparse (Failed) 39 - test_recurrent_machine_generation (Failed) 40 - test_PyDataProviderWrapper (Failed) 41 - test_config_parser (Failed) 42 - test_swig_api (Failed) 43 - layers_test (Failed)
The causes are all about path errors. For example, on line 39 of test_PyDataProvider.cpp , the required file is not under build/paddle/gserver/tests
, but under paddle/gserver/tests
.
Copying all necessary files into build
folder will solve the problems.