From c7ce4f64a8ebdd8c3cab6b92bde177b77cbb3c92 Mon Sep 17 00:00:00 2001 From: jede Date: Tue, 5 Dec 2023 23:42:41 +0100 Subject: [PATCH] fix --- .github/workflows/main.yml | 5 ++--- .gitignore | 4 +++- tests/unit_test/verify.sh | 12 ++++++++++++ 3 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 tests/unit_test/verify.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93cdf78..df5b044 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -125,14 +125,13 @@ jobs: ls -l && ls -l ../ mv cc65 ../ && mv orix-software ../ && mv orix-sdk ../ && mv md2hlp ../ - - name: Compile project run: CC65_HOME=${GITHUB_WORKSPACE}/../cc65 make - name: List build directory content run: ls -lR build - - name: unit-test/Launch oricutron + - name: Unit-test with oricutron run: | git clone https://github.com/orix-software/docker-unit-test.git cd docker-unit-test && bash install.sh ${GITHUB_WORKSPACE} && cd .. @@ -144,7 +143,7 @@ jobs: - name: Check unit-test run: | ls -l ${GITHUB_WORKSPACE}/oricutron/sdcard/ - ls -l ${GITHUB_WORKSPACE}/oricutron/sdcard/BIN + bash tests/unit_test/verify.sh ${GITHUB_WORKSPACE}/oricutron/sdcard/ - name: Upload Artifact uses: actions/upload-artifact@v2 diff --git a/.gitignore b/.gitignore index efd96b1..f9e3f54 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,6 @@ tmp/ *.r64 *.c02 *.816 -*.log \ No newline at end of file +*.log +build.inc +*.bin diff --git a/tests/unit_test/verify.sh b/tests/unit_test/verify.sh new file mode 100644 index 0000000..d2aeadc --- /dev/null +++ b/tests/unit_test/verify.sh @@ -0,0 +1,12 @@ +#! /bin/bash + +MYPATH=$1 + +if [ -e "$MYPATH/STARTED" ]; then + echo "Le fichier $MYPATH/STARTED existe." +else + echo "Le fichier $MYPATH/STARTED n'existe pas." + echo "Le script submit n'a pas été lancé ou touch à un pb" + exit 1 +fi +