Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add scripts to run samples automatically #829

Merged
merged 4 commits into from
Sep 23, 2020
Merged

Commits on Sep 18, 2020

  1. samples: Fix dotnet sample

    When trying to run the dotnet sample the following error happened:
    
    ```
    FailFast:
    Couldn't find a valid ICU package installed on the system. Set the
    configuration flag System.Globalization.Invariant to true if you want to
    run with no globalization support.
    ```
    
    By adding this file, the configuration flag mentioned in the error
    message is set to true, and the sample works again. [1]
    
    [1] dotnet/core#2186 (comment)
    AntonioND committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    31cd4b8 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2020

  1. samples: Simplify helloworld demo to match helloworld test

    The helloworld demo used a really complicated system to build the elf
    file on the host and then transfer it to the docker image. It's better
    to simply build it inside docker, as the test does.
    
    This commit copies Dockerfile, Makefile and helloworld.c from the test
    to the sample. The Makefile has been modified to still use
    enclave_config.json (the test wasn't using it).
    AntonioND committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    2b297eb View commit details
    Browse the repository at this point in the history
  2. samples: Fix java sample

    When the number of ethreads is 1 the java app hangs after printing the
    message. With a higher number of ethreads it exits as expected.
    AntonioND committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    46430b4 View commit details
    Browse the repository at this point in the history
  3. CI: Add scripts to run samples automatically

    The scripts are a mix of bash and a bit of GNU expect for flexibility,
    as each sample needs to be tested in slightly different ways.
    
    Each sample must have a test.sh script in its folder so that the CI
    detects it and runs it. They are executed by run_sample.sh script,
    created using run_test.sh as an example.
    
    This commit adds several samples to the CI, but not all of them:
    
    - The ml folder samples, for example, take far too long to be part of a
      regular CI run, and need caching of docker images, which is a task on
      its own.
    
    - The openmp and nodejs samples seem to be broken.
    AntonioND committed Sep 23, 2020
    Configuration menu
    Copy the full SHA
    570c78a View commit details
    Browse the repository at this point in the history