@@ -23,17 +23,29 @@ setup_log=/root/src/logs/setup.log
2323compile_log=/root/src/logs/build.log
2424test_log=/root/src/logs/test.log
2525
26+ touch $setup_log $compile_log $test_log
27+
28+ echo Logs:
29+
30+ ls -l $setup_log
31+ ls -l $compile_log
32+ ls -l $test_log
33+
34+
2635echo " > Geant-config: $( which geant4-config) : $( geant4-config --version) " > $setup_log
2736echo " > Root-config: $( which root-config) : $( root-config --version) " >> $setup_log
2837
2938setup_options=" --native-file=core.ini $meson_option -Dprefix=$GEMC --wipe "
3039
3140echo " > Running build Configure with setup build options: $setup_options " >> $setup_log
32- meson setup build $=setup_options
41+ meson setup build $=setup_options >> $setup_log
3342if [ $? -ne 0 ]; then
3443 echo " Build Configure failed. Log: "
3544 cat $setup_log
3645 exit 1
46+ else
47+ echo Build Configure Successful
48+ echo ; echo
3749fi
3850
3951cd build || exit 1
@@ -44,7 +56,12 @@ if [ $? -ne 0 ]; then
4456 echo " Compile failed. Log: "
4557 cat $compile_log
4658 exit 1
59+ else
60+ echo Compile Successful
61+ echo ; echo
4762fi
63+
64+
4865echo " > Current directory: $( pwd) content:" >> $compile_log
4966ls -l >> $compile_log
5067
@@ -54,18 +71,25 @@ if [ $? -ne 0 ]; then
5471 echo " Install failed. Log: "
5572 cat $compile_log
5673 exit 1
74+ else
75+ echo Install Successful
76+ echo ; echo
5777fi
78+
5879echo " > $GEMC recursive content:" >> $compile_log
5980ls -lR $GEMC >> $compile_log
6081
6182# if $1 is NOT one of sanitize option, run meson test
6283if [[ $1 != @ (address| thread| undefined| memory| leak) ]]; then
6384 echo " > Running meson test" > $test_log
64- meson test -v -j 1 >> $test_log
85+ meson test -j 1 --print-errorlogs >> $test_log
6586 if [ $? -ne 0 ]; then
6687 echo " Test failed. Log: "
6788 cat $test_log
6889 exit 1
90+ else
91+ echo Install Successful
92+ echo ; echo
6993 fi
7094fi
7195
0 commit comments