Remove hard-coded subdirectory paths for configs
Previously, the subdirectories in which the sub-json files were searched in were hardcoded. Now, DRAMSys simply searches in the directory of the base config, making this approach more flexible.
This commit is contained in:
@@ -288,12 +288,6 @@ TEST_F(ConfigurationTest, DumpConfiguration)
|
||||
std::cout << json.dump(4) << std::endl;
|
||||
}
|
||||
|
||||
TEST(Configuration, ResourceDirectory)
|
||||
{
|
||||
// Test should not throw exceptions
|
||||
Configuration config = from_path("resources/ddr5-example.json");
|
||||
}
|
||||
|
||||
TEST(Configuration, FromPath)
|
||||
{
|
||||
// Test should not throw exceptions
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 533,
|
||||
"name": "trace_test2.stl"
|
||||
"name": "traces/trace_test2.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 933,
|
||||
"name": "trace_test3.stl"
|
||||
"name": "traces/trace_test3.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 1600,
|
||||
"name": "trace_test3.stl"
|
||||
"name": "traces/trace_test3.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -126,11 +126,11 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 1000,
|
||||
"name": "trace1_test4.stl"
|
||||
"name": "traces/trace1_test4.stl"
|
||||
},
|
||||
{
|
||||
"clkMhz": 1000,
|
||||
"name": "trace2_test4.stl"
|
||||
"name": "traces/trace2_test4.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -129,11 +129,11 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 1600,
|
||||
"name": "trace1_test4.stl"
|
||||
"name": "traces/trace1_test4.stl"
|
||||
},
|
||||
{
|
||||
"clkMhz": 1600,
|
||||
"name": "trace2_test4.stl"
|
||||
"name": "traces/trace2_test4.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 1600,
|
||||
"name": "trace_lpddr4.stl"
|
||||
"name": "traces/trace_lpddr4.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
"tracesetup": [
|
||||
{
|
||||
"clkMhz": 1600,
|
||||
"name": "trace_lpddr5.stl"
|
||||
"name": "traces/trace_lpddr5.stl"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user