Skip to content

Commit

Permalink
Update test framework
Browse files Browse the repository at this point in the history
  • Loading branch information
metopa committed May 2, 2018
1 parent 80f608f commit f3b0e9f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 40 deletions.
2 changes: 0 additions & 2 deletions epi_judge_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ else()
link_libraries(pthread)
endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(a_b_sqrt2 a_b_sqrt2.cc)
add_executable(absent_value_array absent_value_array.cc)
add_executable(adding_credits adding_credits.cc)
Expand Down
13 changes: 0 additions & 13 deletions epi_judge_cpp/test_framework/generic_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "generic_test_handler.h"
#include "json_parser.h"
#include "platform.h"
//#include "test_complexity.h"
#include "test_config.h"
#include "test_timer.h"
#include "test_utils.h"
Expand Down Expand Up @@ -180,18 +179,6 @@ TestResult RunTests(GenericTestHandler<Function, Comparator>& handler,
}

std::string complexity;
/*if (!durations.empty() && config.analyze_complexity) {
std::vector<long long> time;
std::transform(
durations.begin(), durations.end(), std::back_inserter(time),
[](const auto& d) {
return std::chrono::duration_cast<std::chrono::nanoseconds>(d)
.count();
});
complexity = test_complexity::MinimalLeastSqMultipleParams(
handler.MetricNames(), metrics, time);
}*/

std::cout << std::endl;
if (config.verbose) {
Expand Down
2 changes: 0 additions & 2 deletions epi_judge_cpp_solutions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ else()
link_libraries(pthread)
endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(a_b_sqrt2 a_b_sqrt2.cc)
add_executable(absent_value_array absent_value_array.cc)
add_executable(adding_credits adding_credits.cc)
Expand Down
13 changes: 0 additions & 13 deletions epi_judge_cpp_solutions/test_framework/generic_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "generic_test_handler.h"
#include "json_parser.h"
#include "platform.h"
//#include "test_complexity.h"
#include "test_config.h"
#include "test_timer.h"
#include "test_utils.h"
Expand Down Expand Up @@ -180,18 +179,6 @@ TestResult RunTests(GenericTestHandler<Function, Comparator>& handler,
}

std::string complexity;
/*if (!durations.empty() && config.analyze_complexity) {
std::vector<long long> time;
std::transform(
durations.begin(), durations.end(), std::back_inserter(time),
[](const auto& d) {
return std::chrono::duration_cast<std::chrono::nanoseconds>(d)
.count();
});
complexity = test_complexity::MinimalLeastSqMultipleParams(
handler.MetricNames(), metrics, time);
}*/

std::cout << std::endl;
if (config.verbose) {
Expand Down
6 changes: 1 addition & 5 deletions epi_judge_java/epi/test_framework/GenericTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ private static TestResult runTests(GenericTestHandler handler,
}

String complexity = "";
/*if (config.analyzeComplexity) {
complexity = TestComplexity.minimalLeastSqMultipleParams(
handler.metricNames(), metrics, durations);
}*/


System.out.println();

if (!durations.isEmpty() && config.verbose) {
Expand Down
6 changes: 1 addition & 5 deletions epi_judge_java_solutions/epi/test_framework/GenericTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,7 @@ private static TestResult runTests(GenericTestHandler handler,
}

String complexity = "";
/*if (config.analyzeComplexity) {
complexity = TestComplexity.minimalLeastSqMultipleParams(
handler.metricNames(), metrics, durations);
}*/


System.out.println();

if (!durations.isEmpty() && config.verbose) {
Expand Down

0 comments on commit f3b0e9f

Please sign in to comment.