-
Notifications
You must be signed in to change notification settings - Fork 4
/
standalones.bats
111 lines (93 loc) · 4.07 KB
/
standalones.bats
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env bats
#
# Tests of standalones in bats framework. See e.g. https://github.com/sstephenson/bats
#
# Written by A. Fowlie.
load funcs
setup() {
rm -f SM_Z
rm -f MSSM_H
rm -f MSSM_Z
}
# Echo information on teardown, if error
teardown() {
error "$output"
rm -rf runs
}
@test "build DarkBit_standalone_WIMP" {
cd "$GAMBIT"/build
run make DarkBit_standalone_WIMP
[ $status = 0 ]
}
@test "build DarkBit_standalone_MSSM" {
cd "$GAMBIT"/build
run make DarkBit_standalone_MSSM
[ $status = 0 ]
}
DATA_1705_07920="$GAMBIT"/DarkBit/data/benchmarks
@test "DarkBit_standalone_MSSM_1705.07920_Model_1" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/HA_funnel_gaugino.slha2 | tail -n15 > data_gambit/1705.07920_Model_1.txt
run id_ascii_files data_gambit/1705.07920_Model_1.txt data_expected/1705.07920_Model_1.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_2" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/HA_funnel_mixed.slha2 | tail -n15 > data_gambit/1705.07920_Model_2.txt
run id_ascii_files data_gambit/1705.07920_Model_2.txt data_expected/1705.07920_Model_2.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_3" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/HA_funnel_higgsino.slha2 | tail -n15 > data_gambit/1705.07920_Model_3.txt
run id_ascii_files data_gambit/1705.07920_Model_3.txt data_expected/1705.07920_Model_3.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_4" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/hZ_funnel.slha2 | tail -n15 > data_gambit/1705.07920_Model_4.txt
run id_ascii_files data_gambit/1705.07920_Model_4.txt data_expected/1705.07920_Model_4.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_5" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/stau_coannihilation.slha2 | tail -n15 > data_gambit/1705.07920_Model_5.txt
run id_ascii_files data_gambit/1705.07920_Model_5.txt data_expected/1705.07920_Model_5.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_6" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/stop_coannihilation_gaugino.slha2 | tail -n15 > data_gambit/1705.07920_Model_6.txt
run id_ascii_files data_gambit/1705.07920_Model_6.txt data_expected/1705.07920_Model_6.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_7" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/stop_coannihilation_mixed.slha2 | tail -n15 > data_gambit/1705.07920_Model_7.txt
run id_ascii_files data_gambit/1705.07920_Model_7.txt data_expected/1705.07920_Model_7.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_8" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/stop_coannihilation_higgsino.slha2 | tail -n15 > data_gambit/1705.07920_Model_8.txt
run id_ascii_files data_gambit/1705.07920_Model_8.txt data_expected/1705.07920_Model_8.txt 0.01 0.01
[ $status = 0 ]
}
@test "DarkBit_standalone_MSSM_1705.07920_Model_9" {
"$GAMBIT"/DarkBit_standalone_MSSM "$DATA_1705_07920"/chargino_coannihilation.slha2 | tail -n15 > data_gambit/1705.07920_Model_9.txt
run id_ascii_files data_gambit/1705.07920_Model_9.txt data_expected/1705.07920_Model_9.txt 0.01 0.01
[ $status = 0 ]
}
@test "SM_Z" {
g++ -std=c++11 -o SM_Z ./examples/SM_Z.cpp -I"$GAMBIT"/DecayBit/include/gambit/DecayBit/
rm -f data_gambit/SM_Z.dat
./SM_Z > data_gambit/SM_Z.dat
run id_ascii_files data_gambit/SM_Z.dat data_expected/SM_Z.dat 0.01 0.01
[ $status = 0 ]
}
@test "MSSM_H" {
g++ -std=c++11 -o MSSM_H ./examples/MSSM_H.cpp -I"$GAMBIT"/DecayBit/include/gambit/DecayBit/
rm -f data_gambit/MSSM_H.dat
./MSSM_H > data_gambit/MSSM_H.dat
run id_ascii_files data_gambit/MSSM_H.dat data_expected/MSSM_H.dat 0.01 0.01
[ $status = 0 ]
}
@test "MSSM_Z" {
g++ -std=c++11 -o MSSM_Z ./examples/MSSM_Z.cpp -I"$GAMBIT"/DecayBit/include/gambit/DecayBit/
rm -f data_gambit/MSSM_Z.dat
./MSSM_Z > data_gambit/MSSM_Z.dat
run id_ascii_files data_gambit/MSSM_Z.dat data_expected/MSSM_Z.dat 0.01 0.01
[ $status = 0 ]
}