Skip to content

Commit 41cfe89

Browse files
committed
update test
1 parent 2fa809a commit 41cfe89

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Testing/
12
*.DS_Store
23
*.txt.cpp
34
*CTestTestfile.cmake

test/run run

File renamed without changes.

test/CMakeLists.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ macro (add_test_executable_with_lib _name libs)
55
endmacro()
66

77
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}/")
1010
endmacro()
1111

1212
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+
1516
endmacro()
1617

18+
1719
# Test cases
1820
add_test_case(prg)
1921
add_test_case(hash)

test/garble.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void test(T* netio) {
2323
prg.random_block(a, 128);
2424
prg.random_block(b, 128);
2525

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";
2727
BristolFormat cf(file.c_str());
2828

2929
if (party == BOB) {

0 commit comments

Comments
 (0)