forked from OCamlPro/gnucobol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
54 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,27 +154,23 @@ jobs: | |
run: | | ||
pacman --needed --noconfirm -S $MSYSPKGS | ||
- name: Build testsuite | ||
- name: Adjust testsuite | ||
shell: C:\shells\msys2bash.cmd {0} | ||
run: | | ||
cd tests | ||
echo at_testdir=\'tests\' > atconfig | ||
echo abs_builddir=\'$(pwd)\' >> atconfig | ||
echo at_srcdir=\'./\' >> atconfig | ||
echo abs_srcdir=\'$(pwd)/\' >> atconfig | ||
echo at_top_srcdir=\'../\' >> atconfig | ||
echo abs_top_srcdir=\'$(pwd)/../\' >> atconfig | ||
echo at_top_build_prefix=\'../\' >> atconfig | ||
echo abs_top_builddir=\'$(pwd)/../\' >> atconfig | ||
echo at_top_builddir=\$at_top_build_prefix >> atconfig | ||
echo EXEEXT=\'.exe\' >> atconfig | ||
echo AUTOTEST_PATH=\'tests\' >> atconfig | ||
echo SHELL=\${CONFIG_SHELL-\'/bin/sh\'} >> atconfig | ||
echo m4_define\([AT_PACKAGE_STRING], [$GC_VERSION]\) > package.m4 | ||
echo m4_define\([AT_PACKAGE_BUGREPORT], [[email protected]]\) >> package.m4 | ||
sed 's/x64\/Debug/${{ env.ARCHDIR }}\/${{ matrix.target }}/g' atlocal_win > atlocal | ||
sed -i '/AT_SETUP(\[runtime check: write to internal storage (1)\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_misc.at | ||
- name: Adjust testsuite for Debug target | ||
if: ${{ matrix.target == 'Debug' }} | ||
shell: C:\shells\msys2bash.cmd {0} | ||
run: | | ||
cd tests | ||
sed -i '/AT_SETUP(\[MF FIGURATIVE to NUMERIC\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_misc.at | ||
sed -i '/AT_SETUP(\[Default file external name\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_file.at | ||
sed -i '/AT_SETUP(\[EXTFH: SEQUENTIAL files\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_file.at | ||
sed -i '/AT_SETUP(\[System routine CBL_GC_HOSTED\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_extensions.at | ||
sed -i '/AT_SETUP(\[MOVE to edited item (4)\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_fundamental.at | ||
sed -i '/AT_SETUP(\[MOVE to item with simple and floating insertion\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_fundamental.at | ||
sed -i '/AT_SETUP(\[Numeric operations (1)\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_fundamental.at | ||
|
@@ -189,6 +185,7 @@ jobs: | |
sed -i '/AT_SETUP(\[OSVS Arithmetic Test (2)\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_misc.at | ||
sed -i '/AT_SETUP(\[FUNCTION ACOS\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_functions.at | ||
sed -i '/AT_SETUP(\[FUNCTION ASIN\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_functions.at | ||
sed -i '/AT_SETUP(\[FUNCTION RANDOM\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_functions.at | ||
sed -i '/AT_SETUP(\[MOVE of non-integer to alphanumeric\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_extensions.at | ||
sed -i '/AT_SETUP(\[XML GENERATE trimming\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_ml.at | ||
sed -i '/AT_SETUP(\[JSON GENERATE trimming\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_ml.at | ||
|
@@ -209,18 +206,30 @@ jobs: | |
sed -i '/AT_SETUP(\[BCD ADD and SUBTRACT, all ROUNDED MODEs\])/a AT_SKIP_IF(\[true\])' testsuite.src/data_packed.at | ||
sed -i '/AT_SETUP(\[CURRENCY SIGN WITH PICTURE SYMBOL\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_misc.at | ||
sed -i '/AT_SETUP(\[MF FIGURATIVE to NUMERIC\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_misc.at | ||
sed -i '/AT_SETUP(\[Default file external name\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_file.at | ||
sed -i '/AT_SETUP(\[EXTFH: SEQUENTIAL files\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_file.at | ||
sed -i '/AT_SETUP(\[System routine CBL_GC_HOSTED\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_extensions.at | ||
sed -i '/AT_SETUP(\[FUNCTION RANDOM\])/a AT_SKIP_IF(\[true\])' testsuite.src/run_functions.at | ||
# The tests in sed commands above randomly hang (under debug configurations) | ||
|
||
- name: Build testsuite | ||
shell: C:\shells\msys2bash.cmd {0} | ||
run: | | ||
cd tests | ||
echo at_testdir=\'tests\' > atconfig | ||
echo abs_builddir=\'$(pwd)\' >> atconfig | ||
echo at_srcdir=\'./\' >> atconfig | ||
echo abs_srcdir=\'$(pwd)/\' >> atconfig | ||
echo at_top_srcdir=\'../\' >> atconfig | ||
echo abs_top_srcdir=\'$(pwd)/../\' >> atconfig | ||
echo at_top_build_prefix=\'../\' >> atconfig | ||
echo abs_top_builddir=\'$(pwd)/../\' >> atconfig | ||
echo at_top_builddir=\$at_top_build_prefix >> atconfig | ||
echo EXEEXT=\'.exe\' >> atconfig | ||
echo AUTOTEST_PATH=\'tests\' >> atconfig | ||
echo SHELL=\${CONFIG_SHELL-\'/bin/sh\'} >> atconfig | ||
echo m4_define\([AT_PACKAGE_STRING], [$GC_VERSION]\) > package.m4 | ||
echo m4_define\([AT_PACKAGE_BUGREPORT], [[email protected]]\) >> package.m4 | ||
sed 's/x64\/Debug/${{ env.ARCHDIR }}\/${{ matrix.target }}/g' atlocal_win > atlocal | ||
autom4te --lang=autotest -I ./testsuite.src ./testsuite.at -o ./testsuite | ||
# The tests in sed commands above randomly hang (under debug configurations) | ||
|
||
- name: Run testsuite | ||
continue-on-error: true | ||
run: | | ||
cd tests | ||
set CL=/I "%VCPKG_ROOT%\installed\${{ matrix.arch }}-windows\include" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters