]> granicus.if.org Git - icu/commitdiff
ICU-21323 Adds BRS task 'test ICU4C without data' to GHA, triggered by
authorgnrunge <nrunge@google.com>
Fri, 26 Feb 2021 19:15:08 +0000 (11:15 -0800)
committerNorbert Runge <41129501+gnrunge@users.noreply.github.com>
Fri, 26 Feb 2021 22:19:01 +0000 (14:19 -0800)
each pull request. This test has a high catch rate.

ICU-21323 Work in review feedback.

.github/workflows/icu_ci.yml

index 58bf4fac41dc9751a4d115b35a138000ce3a6be3..1bb143aaceb5638cb6048c059a51a45fb3659b46 100644 (file)
@@ -170,6 +170,27 @@ jobs:
           PYTHON=python3 ./runConfigureICU MacOSX;
           make -j2 check
 
+  # Run ICU4C tests with stubdata.
+  run-with-stubdata:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+
+      - name: ICU4C tests with stubdata
+        run: |
+          cd icu4c/source;
+          ./runConfigureICU Linux;
+          make -j2 check;
+          rm lib/libicudata.so*;
+          cp -P stubdata/libicudata.so* lib;
+          cd test/cintltst;
+          echo 'Running ICU4C cintltst with stubdata.';
+          # Note: 'Elapsed Time: ' is printed by makefile upon final success.
+          CINTLTST_OPTS=-w make check 2>&1 | grep 'Elapsed Time: ';
+          cd ../intltest;
+          echo 'Running ICU4C intltest with stubdata.';
+          INTLTEST_OPTS=-w make check 2>&1 | grep 'Elapsed Time: '
+
   # Copyright scan
   copyright-scan:
     runs-on: ubuntu-latest