Skip to content

Commit 7f0061b

Browse files
committed
Debug commit
1 parent 0cdcff3 commit 7f0061b

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

MC/config/examples/ini/tests/GeneratorEPOS4.C

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
int External()
22
{
3+
// Print the content of the o2sim_serverlog file
4+
std::ifstream serverLog("o2sim_serverlog");
5+
if (!serverLog.is_open())
6+
{
7+
std::cerr << "Cannot open o2sim_serverlog file\n";
8+
return 1;
9+
}
10+
std::string line;
11+
while (std::getline(serverLog, line))
12+
{
13+
std::cout << line << "\n";
14+
}
15+
serverLog.close();
16+
// Print the content of the z-example.mtr file
17+
std::ifstream mtrLog("z-example.mtr");
18+
if (!mtrLog.is_open())
19+
{
20+
std::cerr << "Cannot open z-example.mtr file\n";
21+
return 1;
22+
}
23+
while (std::getline(mtrLog, line))
24+
{
25+
std::cout << line << "\n";
26+
}
27+
mtrLog.close();
328
std::string path{"o2sim_Kine.root"};
429
// Check that file exists, can be opened and has the correct tree
530
TFile file(path.c_str(), "READ");
@@ -61,4 +86,4 @@ int External()
6186
}
6287
}
6388
return 0;
64-
}
89+
}

test/run_generator_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ exec_test()
104104

105105
# now run the test script that we know at this point exists
106106
cp ${test_script} ${generator}.C
107-
root -l -b -q ${generator}.C >> ${LOG_FILE_KINE} 2>&1
107+
root -l -b -q ${generator}.C
108108
local ret_test=${?}
109109
[[ "${RET}" != "0" ]] || RET=${ret_test}
110110
rm ${generator}.C

0 commit comments

Comments
 (0)