-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrun_examples.sh
executable file
·63 lines (50 loc) · 1.69 KB
/
run_examples.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
export PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}."
PYTHON_BINARY=python3
set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
cd "$(dirname "$0")"
function run_example {
printf "Running $1..."
$PYTHON_BINARY $1 > /dev/null
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "(success)"
else
echo "(failed)"
exit 111
fi
}
# Should be somewhere else (maybe add to unit tests)
# run_example examples/simple_choice_of_choice.py
run_example examples/geml/classifier_example.py
run_example examples/geml/regressor_example.py
run_example examples/benchmarks/classification.py
run_example examples/benchmarks/classification_lexicase.py
run_example examples/benchmarks/domino.py
run_example examples/benchmarks/game_of_life_vectorial.py
run_example examples/benchmarks/mario_level.py
run_example examples/benchmarks/pymax.py
run_example examples/benchmarks/regression.py
run_example examples/benchmarks/regression_lexicase.py
run_example examples/benchmarks/santafe.py
run_example examples/benchmarks/string_match.py
run_example examples/benchmarks/vectorialgp.py
run_example examples/progsys/Number_IO.py
run_example examples/progsys/Median.py
run_example examples/progsys/Smallest.py
run_example examples/progsys/Sum_of_Squares.py
# Other features
run_example examples/example.py
run_example examples/classification_unknown_length_objectives.py
run_example examples/binary.py
run_example examples/multi_target_lexicase.py
run_example examples/pcfg_example.py
run_example examples/recurrence.py
run_example examples/synthetic_grammar_example.py
run_example examples/tutorial_example.py
run_example examples/logging_example.py