20 lines
882 B
Bash
Executable File
20 lines
882 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Re-measure which MATLAB functions this sandbox actually has.
|
|
#
|
|
# _MATLAB_ONLY in routers/matlab.py must match reality, and reality moves
|
|
# when the image is rebuilt on a newer Debian or a forge package changes.
|
|
# Guessing this list was wrong in BOTH directions the first time: fitlm
|
|
# and imread are present, contains and datetime are not.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
exec docker run --rm --network none -u 10001:10001 \
|
|
-v "$(pwd)/tests/matlab_availability.m":/tmp/avail.m:ro \
|
|
--tmpfs /tmp/octhome:uid=10001 -e HOME=/tmp/octhome \
|
|
--entrypoint bash local/owuitools-octave:latest -c '
|
|
mkdir -p /tmp/octhome
|
|
octave --no-window-system --norc --quiet --eval "
|
|
warning(\"off\",\"all\");
|
|
try, pkg load signal; pkg load control; pkg load statistics; pkg load optim; catch, end
|
|
run(\"/tmp/avail.m\");
|
|
" 2>/dev/null'
|