diff mbox series

[isar-cip-core,2/2] .reproducible-check-ci.yml: use repro-tests.sh in the CI check

Message ID 20230523135611.31234-3-venkata.pyla@toshiba-tsip.com (mailing list archive)
State Accepted
Headers show
Series Test different artifacts are bit identical | expand

Commit Message

Venkata Pyla May 23, 2023, 1:56 p.m. UTC
From: venkata pyla <venkata.pyla@toshiba-tsip.com>

The repro-test in CI helps to check all different artifacts produced by
the target build and gives the report.

Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
---
 .reproducible-check-ci.yml | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/.reproducible-check-ci.yml b/.reproducible-check-ci.yml
index d42359c..d8bfb40 100644
--- a/.reproducible-check-ci.yml
+++ b/.reproducible-check-ci.yml
@@ -28,16 +28,17 @@ 
     - if [ -f kas/opt/reproducible.yml ]; then base_yaml="${base_yaml}:kas/opt/reproducible.yml"; fi
     # Build 1st time
     - !reference [.build_base, script]
-    - mv build/tmp/deploy/images/${target}/cip-core-image-cip-core-${release}-${target}${artifact_suffix} image1
+    - mv build/tmp/deploy/images/${target} image1
     # clean
     - sudo rm -rf build/tmp
     - sudo rm -rf build/sstate-cache
     # Build 2nd time
     - !reference [.build_base, script]
-    - mv build/tmp/deploy/images/${target}/cip-core-image-cip-core-${release}-${target}${artifact_suffix} image2
+    - mv build/tmp/deploy/images/${target} image2
   artifacts:
     expire_in: 1 day
     paths:
+      - scripts/repro-tests.sh
       - image1
       - image2
 
@@ -54,12 +55,12 @@ 
   before_script:
     - apt update && DEBIAN_FRONTEND=noninteractive apt install -y diffoscope
   script:
-    - diffoscope --text diffoscope_output.txt image1 image2
+    - ./scripts/repro-tests.sh --release ${release} --target ${target} image1 image2
   artifacts:
     when: always
     expire_in: 1 day
     paths:
-      - diffoscope_output.txt
+      - "./*diffoscope_output.txt"
 
 
 # repro build
@@ -85,17 +86,23 @@  build:qemu-arm-base-repro-build:
 test:qemu-amd64-base-repro-test:
   extends:
     - .repro-test
+  variables:
+    target: qemu-amd64
   dependencies:
     - build:qemu-amd64-base-repro-build
 
 test:qemu-arm64-base-repro-test:
   extends:
     - .repro-test
+  variables:
+    target: qemu-arm64
   dependencies:
     - build:qemu-arm64-base-repro-build
 
 test:qemu-arm-base-repro-test:
   extends:
     - .repro-test
+  variables:
+    target: qemu-arm
   dependencies:
     - build:qemu-arm-base-repro-build