diff --git a/.travis.yml b/.travis.yml index 3f75afbb..4d2254bd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,51 @@ matrix: include: - os: linux language: minimal - env: TEST=fih-tests + env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=RELEASE SKIP_SIZE=2,4,6,8,10 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 FIH_LEVEL=LOW TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + - os: linux + language: minimal + env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=8,10 FIH_LEVEL=MEDIUM TEST=fih-tests DAMAGE_TYPE=SIGNATURE + + ## Corrupt image hash is not tested as it is in the unprotected TLV section + ## and is easy to calculate a valid hash for a changed image + #- os: linux + # language: minimal + # env: BUILD_TYPE=MINSIZEREL SKIP_SIZE=2,4,6 TEST=fih-tests DAMAGE_TYPE=IMAGE_HASH + + ## Max profile is not tested as it requires HW entropy source which is not + ## present in the QEMU system being used for the tests. + #- os: linux + # language: minimal + # env: FIH_LEVEL=MAX TEST=fih-tests before_install: - | diff --git a/ci/fih-tests_run.sh b/ci/fih-tests_run.sh index 7728c49e..7948a3ec 100755 --- a/ci/fih-tests_run.sh +++ b/ci/fih-tests_run.sh @@ -16,4 +16,8 @@ set -e -docker run mcuboot/fih-test /bin/sh -c '/root/execute_test.sh $0 $1 $2' 2,4,6,8,10 RELEASE SIGNATURE \ No newline at end of file +if test -z "$FIH_LEVEL"; then + docker run mcuboot/fih-test /bin/sh -c '/root/execute_test.sh $0 $1 $2' $SKIP_SIZE $BUILD_TYPE $DAMAGE_TYPE +else + docker run mcuboot/fih-test /bin/sh -c '/root/execute_test.sh $0 $1 $2 $3' $SKIP_SIZE $BUILD_TYPE $DAMAGE_TYPE $FIH_LEVEL +fi \ No newline at end of file