commit
ee12c4ee8c
@ -1,55 +1,74 @@
|
|||||||
# Inspired by lucet's Dockerfile.
|
# using ubuntu 20 docker image
|
||||||
|
FROM ubuntu:focal
|
||||||
|
|
||||||
# using ubuntu 18 docker image
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
FROM ubuntu:bionic
|
|
||||||
|
|
||||||
# install some basic packages
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
||||||
|
# General GCC C/C++ Build toolchain
|
||||||
|
# pkg-config, libtool - used by PocketSphinx
|
||||||
|
# cmake - used by cmsis
|
||||||
RUN apt-get install -y --no-install-recommends \
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
automake \
|
||||||
build-essential \
|
build-essential \
|
||||||
curl \
|
binutils-dev \
|
||||||
git \
|
|
||||||
cmake \
|
cmake \
|
||||||
ca-certificates \
|
git \
|
||||||
libssl-dev \
|
libc++-dev \
|
||||||
pkg-config \
|
libtinfo5 \
|
||||||
gcc \
|
libtool \
|
||||||
g++ \
|
pkg-config
|
||||||
|
|
||||||
|
# LLVM Tools
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
clang-8 \
|
clang-8 \
|
||||||
clang-tools-8 \
|
clang-tools-8 \
|
||||||
llvm-8 \
|
llvm-8 \
|
||||||
llvm-8-dev \
|
llvm-8-dev \
|
||||||
libc++-dev \
|
|
||||||
libc++abi-dev \
|
libc++abi-dev \
|
||||||
lld-8 \
|
lld-8 \
|
||||||
lldb-8 \
|
|
||||||
libclang-8-dev \
|
libclang-8-dev \
|
||||||
libclang-common-8-dev \
|
libclang-common-8-dev
|
||||||
vim \
|
|
||||||
binutils-dev \
|
|
||||||
build-essential \
|
|
||||||
automake \
|
|
||||||
libtool \
|
|
||||||
strace \
|
|
||||||
less
|
|
||||||
RUN rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# set to use our installed clang version
|
|
||||||
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
|
RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-8 100
|
||||||
RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 100
|
RUN update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-8 100
|
||||||
|
|
||||||
# set LD_LIBRARY_PATH
|
# Needed to install from http endpoints via curl
|
||||||
ENV LD_LIBRARY_PATH=/usr/local/lib
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
curl \
|
||||||
|
ca-certificates \
|
||||||
|
libssl-dev
|
||||||
|
|
||||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
|
# Rust
|
||||||
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --component rustfmt --target wasm32-wasi -y
|
||||||
ENV PATH=/root/.cargo/bin:$PATH
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
RUN cargo install --debug cargo-audit cargo-watch rsign2
|
||||||
|
|
||||||
RUN rustup component add rustfmt
|
# WASI-SDK
|
||||||
RUN rustup target add wasm32-wasi
|
RUN curl -sS -L -O https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-8/wasi-sdk_8.0_amd64.deb && dpkg -i wasi-sdk_8.0_amd64.deb && rm -f wasi-sdk_8.0_amd64.deb
|
||||||
|
ENV WASI_SDK=/opt/wasi-sdk
|
||||||
|
|
||||||
RUN cargo install --debug cargo-audit cargo-watch rsign2
|
# Test Script Stuff
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
fonts-dejavu \
|
||||||
|
fonts-cascadia-code \
|
||||||
|
fonts-roboto \
|
||||||
|
imagemagick \
|
||||||
|
netpbm \
|
||||||
|
pango1.0-tools \
|
||||||
|
wamerican \
|
||||||
|
wget
|
||||||
|
|
||||||
RUN curl -sS -L -O https://github.com/CraneStation/wasi-sdk/releases/download/wasi-sdk-7/wasi-sdk_7.0_amd64.deb && dpkg -i wasi-sdk_7.0_amd64.deb && rm -f wasi-sdk_7.0_amd64.deb
|
# Interactive Tools
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
less \
|
||||||
|
gdb \
|
||||||
|
strace \
|
||||||
|
vim
|
||||||
|
|
||||||
|
# We need to set the locale for pango-view
|
||||||
|
ENV LANG C.UTF-8
|
||||||
|
ENV LANGUAGE C.UTF-8
|
||||||
|
ENV LC_ALL C.UTF-8
|
||||||
|
|
||||||
ENV WASI_SDK=/opt/wasi-sdk
|
|
||||||
ENV PATH=/opt/sledge/bin:$PATH
|
ENV PATH=/opt/sledge/bin:$PATH
|
||||||
|
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 3060d0102555aab949308247a78252fa75568e45
|
Subproject commit 3bbad277b334744595a64b193e6df6d5d31d9dfd
|
@ -1,53 +1,54 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Test Driver Script
|
# Test Driver Script
|
||||||
|
|
||||||
|
if [[ $0 != "./test.sh" ]]; then
|
||||||
|
echo "Must run in same directory as ./test.sh"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
base_dir=$(pwd)
|
||||||
|
|
||||||
# Awsm
|
# Awsm
|
||||||
cd awsm && cargo build --release && cd ..
|
cd "$base_dir/awsm" && cargo build --release || exit 1
|
||||||
|
|
||||||
# Sledge
|
# Sledge
|
||||||
cd runtime && make clean all && cd ..
|
cd "$base_dir/runtime" && make clean all || exit 1
|
||||||
|
|
||||||
# OCR Build
|
# OCR Build
|
||||||
# FIXME: gocr incorectly reports up to date
|
# FIXME: gocr incorectly reports up to date
|
||||||
cd runtime/tests && make -B clean gocr && cd ../..
|
cd "$base_dir/runtime/tests" && make -B clean gocr || exit 1
|
||||||
|
|
||||||
# OCR Tests
|
# OCR Tests
|
||||||
cd runtime/experiments/applications/ocr/hyde && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/hyde" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/ocr/handwriting && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/handwriting" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/ocr/fivebyeight && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/fivebyeight" && ./run.sh || exit 1
|
||||||
|
cd "$base_dir/runtime/experiments/applications/ocr/by_word" && ./install.sh || exit 1
|
||||||
# FIXME: Install scripts will only work after on Ubuntu 20 LTS
|
cd "$base_dir/runtime/experiments/applications/ocr/by_word" && ./run.sh || exit 1
|
||||||
# cd runtime/experiments/applications/ocr/by_word && ./install.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/by_font" && ./install.sh || exit 1
|
||||||
# cd runtime/experiments/applications/ocr/by_word && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/by_font" && ./run.sh || exit 1
|
||||||
|
cd "$base_dir/runtime/experiments/applications/ocr/by_dpi" && ./install.sh || exit 1
|
||||||
# cd runtime/experiments/applications/ocr/by_font && ./install.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ocr/by_dpi" && ./run.sh || exit 1
|
||||||
# cd runtime/experiments/applications/ocr/by_font && ./run.sh && cd ../../../../..
|
|
||||||
|
|
||||||
# cd runtime/experiments/applications/ocr/by_dpi && ./install.sh && cd ../../../../..
|
|
||||||
# cd runtime/experiments/applications/ocr/by_dpi && ./run.sh && cd ../../../../..
|
|
||||||
|
|
||||||
# EKF Build
|
# EKF Build
|
||||||
cd runtime/tests && make -B clean tinyekf && cd ../..
|
cd "$base_dir/runtime/tests" && make -B clean tinyekf || exit 1
|
||||||
|
|
||||||
# EKF Tests
|
# EKF Tests
|
||||||
cd runtime/experiments/applications/ekf/by_iteration && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ekf/by_iteration" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/ekf/one_iteration && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/ekf/one_iteration" && ./run.sh || exit 1
|
||||||
|
|
||||||
# cifar10 Build
|
# cifar10 Build
|
||||||
cd runtime/tests && make -B clean cifar10 && cd ../..
|
cd "$base_dir/runtime/tests" && make -B clean cifar10 || exit 1
|
||||||
|
|
||||||
# cifar10 Tests
|
# cifar10 Tests
|
||||||
cd runtime/experiments/applications/imageclassification && ./run.sh && cd ../../../..
|
cd "$base_dir/runtime/experiments/applications/imageclassification" && ./run.sh || exit 1
|
||||||
|
|
||||||
# sod Build
|
# sod Build
|
||||||
cd runtime/tests && make -B clean sod && cd ../..
|
cd "$base_dir/runtime/tests" && make -B clean sod || exit 1
|
||||||
|
|
||||||
# sod Tests
|
# sod Tests
|
||||||
cd runtime/experiments/applications/imageresize/test && ./install.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/imageresize/test" && ./install.sh || exit 1
|
||||||
cd runtime/experiments/applications/imageresize/test && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/imageresize/test" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/imageresize/by_resolution && ./install.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/imageresize/by_resolution" && ./install.sh || exit 1
|
||||||
cd runtime/experiments/applications/imageresize/by_resolution && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/imageresize/by_resolution" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/licenseplace/1 && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/licenseplate/by_plate_count" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/licenseplace/2 && ./run.sh && cd ../../../../..
|
cd "$base_dir/runtime/experiments/applications/licenseplate" && ./run.sh || exit 1
|
||||||
cd runtime/experiments/applications/licenseplace/4 && ./run.sh && cd ../../../../..
|
|
||||||
cd runtime/experiments/applications/licenseplace && ./run.sh && cd ../../../..
|
|
||||||
|
Loading…
Reference in new issue