run.sh 551 B

1234567891011121314
  1. #!/bin/bash
  2. echo "Running with \"${*}\"..."
  3. # Assume we're in wolfssl/Docker
  4. WOLFSSL_DIR=$(builtin cd ${BASH_SOURCE%/*}/..; pwd)
  5. docker build -t wolfssl --build-arg UID=$(id -u) --build-arg GID=$(id -g) "${WOLFSSL_DIR}/Docker" && \
  6. docker run -it -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash -c "./autogen.sh && ./configure ${*@Q} && make && ./testsuite/testsuite.test" && \
  7. docker run -it -v "${WOLFSSL_DIR}:/tmp/wolfssl" -w /tmp/wolfssl wolfssl /bin/bash
  8. exitval=$?
  9. echo "Exited with error code $exitval"
  10. exit $exitval