Skip to content

Commit dcbefab

Browse files
committed
Debug commit
1 parent 0cdcff3 commit dcbefab

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

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

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
int External()
22
{
3+
// Print the content of the o2sim_serverlog file
4+
std::ifstream serverLog("o2sim_serverlog");
5+
std::cout << "### o2sim_serverlog ###" << std::endl;
6+
if (!serverLog.is_open())
7+
{
8+
std::cerr << "Cannot open o2sim_serverlog file\n";
9+
return 1;
10+
}
11+
std::string line;
12+
while (std::getline(serverLog, line))
13+
{
14+
std::cout << line << "\n";
15+
}
16+
serverLog.close();
17+
// Print the content of the o2sim_mergerlog file
18+
std::ifstream mergerLog("o2sim_mergerlog");
19+
std::cout << "### o2sim_mergerlog ###" << std::endl;
20+
if (!mergerLog.is_open())
21+
{
22+
std::cerr << "Cannot open o2sim_mergerlog file\n";
23+
return 1;
24+
}
25+
while (std::getline(mergerLog, line))
26+
{
27+
std::cout << line << "\n";
28+
}
29+
mergerLog.close();
30+
// Print the content of the o2sim_workerlog0 file
31+
std::ifstream workerLog("o2sim_workerlog0");
32+
std::cout << "### o2sim_workerlog0 ###" << std::endl;
33+
if (!workerLog.is_open())
34+
{
35+
std::cerr << "Cannot open o2sim_workerlog0 file\n";
36+
return 1;
37+
}
38+
while (std::getline(workerLog, line))
39+
{
40+
std::cout << line << "\n";
41+
}
42+
workerLog.close();
43+
// Print the content of the z-cfg.mtr file
44+
std::ifstream mtrLog("z-cfg.mtr");
45+
std::cout << "### z-cfg.mtr ###" << std::endl;
46+
if (!mtrLog.is_open())
47+
{
48+
std::cerr << "Cannot open z-example.mtr file\n";
49+
return 1;
50+
}
51+
while (std::getline(mtrLog, line))
52+
{
53+
std::cout << line << "\n";
54+
}
55+
mtrLog.close();
356
std::string path{"o2sim_Kine.root"};
457
// Check that file exists, can be opened and has the correct tree
558
TFile file(path.c_str(), "READ");
@@ -61,4 +114,4 @@ int External()
61114
}
62115
}
63116
return 0;
64-
}
117+
}

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)