forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliroot-guntest.sh
39 lines (35 loc) · 1.12 KB
/
aliroot-guntest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package: AliRoot-guntest
version: v1
force_rebuild: 1
requires:
- AliRoot
- AliRoot-OCDB
---
#!/bin/bash -e
# A simple regression test launching a Geant3 + Geant4 gun simulation + reconstruction.
# Tests if the processing runs through and yields a reasonable ESD.
# Note that the test is limited to the default OCDB.
env
rsync -a "$ALIROOT_ROOT"/test/vmctest/gun test
cd test/gun
# launch the simulation
./runtest.sh
# test outcome and return the error code
WITHESDCHECK=${ALIPHYSICS_REVISION:+yes} ./finalcheck.sh
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0 AliRoot/$ALIROOT_VERSION-$ALIROOT_REVISION AliRoot-OCDB/$ALIROOT_OCDB_VERSION-$ALIROOT_OCDB_REVISION
# Our environment
set ALIROOT_GUNTEST_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
EoF