forked from rsasaki0109/CudaRobotics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-entrypoint.sh
More file actions
29 lines (28 loc) · 877 Bytes
/
Copy pathdocker-entrypoint.sh
File metadata and controls
29 lines (28 loc) · 877 Bytes
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
#!/bin/bash
set -e
mkdir -p build
case "${1}" in
benchmark)
echo "=== Diff-MPPI Benchmark ==="
./bin/benchmark_diff_mppi --quick --csv build/benchmark_diff_mppi.csv
python3 scripts/summarize_diff_mppi.py --csv build/benchmark_diff_mppi.csv
;;
benchmark-7dof)
echo "=== 7-DOF Manipulator Benchmark ==="
./bin/benchmark_diff_mppi_manipulator_7dof --seed-count 4 --csv build/benchmark_7dof.csv
;;
test)
echo "=== Running Tests ==="
./bin/test_autodiff && echo "test_autodiff: PASSED"
./bin/test_gpu_mlp && echo "test_gpu_mlp: PASSED"
python3 scripts/validate_design_workflow.py && echo "validate_design_workflow: PASSED"
python3 scripts/check_design_regressions.py && echo "check_design_regressions: PASSED"
echo "=== All Tests Passed ==="
;;
bash)
exec /bin/bash "${@:2}"
;;
*)
exec "$@"
;;
esac