File tree 4 files changed +8
-5
lines changed
4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ Testing /
1
2
* .DS_Store
2
3
* .txt.cpp
3
4
* CTestTestfile.cmake
File renamed without changes.
Original file line number Diff line number Diff line change @@ -5,15 +5,17 @@ macro (add_test_executable_with_lib _name libs)
5
5
endmacro ()
6
6
7
7
macro (add_test_case _name)
8
- add_test_executable_with_lib(${_name} "${NAME} " )
9
- add_test (NAME ${_name} COMMAND test_${_name} WORKING_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} )
8
+ add_test_executable_with_lib(${_name} "emp-tool " )
9
+ add_test (NAME ${_name} COMMAND " ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} / test_${_name} " WORKING_DIRECTORY " ${CMAKE_SOURCE_DIR} /" )
10
10
endmacro ()
11
11
12
12
macro (add_test_case_with_run _name)
13
- add_test_executable_with_lib(${_name} "${NAME} " )
14
- add_test (NAME ${_name} COMMAND run "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /test_${_name} " )
13
+ add_test_executable_with_lib(${_name} "emp-tool" )
14
+ add_test (NAME ${_name} COMMAND "./run" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /test_${_name} " WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} /" )
15
+
15
16
endmacro ()
16
17
18
+
17
19
# Test cases
18
20
add_test_case(prg)
19
21
add_test_case(hash)
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ void test(T* netio) {
23
23
prg.random_block (a, 128 );
24
24
prg.random_block (b, 128 );
25
25
26
- string file = " .. /emp-tool/circuits/files/bristol_format/AES-non-expanded.txt" ;
26
+ string file = " ./emp-tool/circuits/files/bristol_format/AES-non-expanded.txt" ;
27
27
BristolFormat cf (file.c_str ());
28
28
29
29
if (party == BOB) {
You can’t perform that action at this time.
0 commit comments