Skip to content
Snippets Groups Projects
Commit 48715d1c authored by Marcin's avatar Marcin
Browse files

move reference api tests to separate directories

parent 951c7635
No related branches found
No related tags found
1 merge request!10apitests for ci started with cmake and ctest
Showing
with 17 additions and 17 deletions
...@@ -10,7 +10,7 @@ configure_file("${CMAKE_CURRENT_LIST_DIR}/jsonsocket.py" "${CMAKE_BINARY_DIR}/te ...@@ -10,7 +10,7 @@ configure_file("${CMAKE_CURRENT_LIST_DIR}/jsonsocket.py" "${CMAKE_BINARY_DIR}/te
# @product - hived or hivemind # @product - hived or hivemind
macro(ADD_API_TEST common_working_dir directory_with_test product api_name test_name) macro(ADD_API_TEST common_working_dir directory_with_test product api_name test_name)
set(working_dir ${CMAKE_BINARY_DIR}/tests) set(working_dir ${CMAKE_BINARY_DIR}/tests)
set(api_test_directory ${directory_with_test}/${product}/${api_name}) set(api_test_directory ${directory_with_test}/${product}/reference/${api_name})
set(test_script_path ${api_test_directory}/${test_name}.py) set(test_script_path ${api_test_directory}/${test_name}.py)
message(STATUS "Adding ${api_name}/${test_name} to test list") message(STATUS "Adding ${api_name}/${test_name} to test list")
set(extra_macro_args ${ARGN}) set(extra_macro_args ${ARGN})
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
import os import os
import sys import sys
sys.path.append(os.path.dirname(__file__) + "/../../") sys.path.append(os.path.dirname(__file__) + "/../../../")
import json import json
from testbase import SimpleJsonTest from testbase import SimpleJsonTest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment