| … | … | @@ -1,5 +1,7 @@ |
| 1 | 1 | |
| 2 | 2 | ADD_GUILE_TEST(LoadFileTest load-file-test.scm) |
| 3 | SET_PROPERTY(TEST LoadFileTest APPEND PROPERTY | |
| 4 | ENVIRONMENT "PROJECT_SOURCE_DIR=${PROJECT_SOURCE_DIR}") | |
| 3 | 5 | |
| 4 | 6 | # ----------------------- |
| 5 | 7 | ## Python gorp |
| … | … | @@ -22,11 +22,9 @@ |
| 22 | 22 | (format #t "The current directory is ~A\n" (getcwd)) |
| 23 | 23 | |
| 24 | 24 | ; Fill atomspace from a file's content. |
| 25 | ; | |
| 26 | ; Hack filename to go to the correct directory for the unit tests. | |
| 27 | ; This test runs in the build dir, and the file to load is in the | |
| 28 | ; source dir. | |
| 29 | (load-file "../../../../tests/persist/file/load-file-test-data.scm") | |
| 25 | ; PROJECT_SOURCE_DIR is set by CMake to point to the source directory. | |
| 26 | (load-file (string-append (getenv "PROJECT_SOURCE_DIR") | |
| 27 | "/tests/persist/file/load-file-test-data.scm")) | |
| 30 | 28 | |
| 31 | 29 | (define names (map cog-name (cog-get-atoms "ConceptNode"))) |
| 32 | 30 |