Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XML PARSE Review #153

Draft
wants to merge 3 commits into
base: xml-parse
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

image: gitpod/workspace-c

tasks:

- name: setup coding environment on Ubuntu 20.04
before: |
# note: sadly we need this to be done every time as only /workspace is kept, but linked
# against those dependencies; and also we do want to recompile after adjustments
# this can all be dropped as soon as we would use a prepared docker
sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential libgmp-dev libdb-dev libjson-c-dev ncurses-dev libxml2-dev \
automake libtool flex bison help2man texinfo \
lcov
# sudo apt install gettext texlive-base # for make dist (po/*, doc/gnucobol.pdf)
gp sync-done system-prepare

- name: building GnuCOBOL
init: |
mkdir -p $GITPOD_REPO_ROOTS/_build
cd $GITPOD_REPO_ROOTS/_build
gp sync-await system-prepare
../autogen.sh
../configure --enable-cobc-internal-checks --enable-debug --enable-code-coverage
make --jobs=$(nproc)
command: |
cd $GITPOD_REPO_ROOTS/_build
gp sync-done build-finish

- name: running GnuCOBOL tests with coverage
command: |
gp sync-await build-finish
cd $GITPOD_REPO_ROOTS/_build
half_jobs=$(( $(nproc) / 2 ))
nice make --jobs=${half_jobs} check-code-coverage TESTSUITEFLAGS="--jobs=${half_jobs}"

- name: running NIST85 tests
command: |
gp sync-await build-finish
cd $GITPOD_REPO_ROOTS/_build
half_jobs=$(( $(nproc) / 2 ))
nice make -C tests/cobol85 --jobs=${half_jobs} test

# disabled as the download takes too long
#- name: running GnuCOBOL distribution tests with testuite
# command: |
# gp sync-await build-finish
# cd $GITPOD_REPO_ROOTS/_build
# half_jobs=$(( $(nproc) / 2 ))
# nice make --jobs=${half_jobs} distcheck TESTSUITEFLAGS="--jobs=${half_jobs}"

vscode:
extensions:
- llvm-vs-code-extensions.vscode-clangd
- maelvalais.autoconf
- Dizy.lex-flex-yacc-bison
- ryanluker.vscode-coverage-gutters
- tenninebt.vscode-koverage
- meronz.manpages
- webfreak.debug
4 changes: 4 additions & 0 deletions cobc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

2024-06-19 David Declerck <[email protected]>

* cobc.c (process_compile): fix MSVC build command

2024-05-15 Simon Sobisch <[email protected]>

* replace.c: fix compile warnings and formatting
Expand Down
2 changes: 1 addition & 1 deletion cobc/cobc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8217,7 +8217,7 @@ process_compile (struct filename *fn)
"%s /c %s %s /Od /MDd /Zi /FR /c /Fa\"%s\" /Fo\"%s\" \"%s\"" :
"%s /c %s %s /MD /c /Fa\"%s\" /Fo\"%s\" \"%s\"",
cobc_cc, cobc_cflags, cobc_include, name,
name, fn->translate);
fn->object, fn->translate);
if (verbose_output > 1) {
return process (cobc_buffer);
} else {
Expand Down
28 changes: 4 additions & 24 deletions tests/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

2024-06-19 David Declerck <[email protected]>

* atlocal_win: fix path-related issues in Windows builds

2023-07-10 Simon Sobisch <[email protected]>

* atlocal_win: updated to current atlocal.in
Expand Down Expand Up @@ -38,11 +42,6 @@
* testsuite.src/run_misc.at: fix linking/dlopen issue happening
on some systems (mostly win32) in test CALL RETURNING POINTER

2023-01-23 David Declerck <[email protected]>

* testsuite.src/configuration.at: test reading translation
tables from an external file

2022-12-08 Simon Sobisch <[email protected]>

* atlocal.in, atlocal_win, atlocal_valgrind: added COB_MODULE_EXT
Expand Down Expand Up @@ -84,16 +83,6 @@

* atlocal_valgrind, atlocal_win: updated to match atlocal.in

2022-07-19 Nicolas Berthier <[email protected]>

* testsuite.src/general: fix area A in testsuite

2022-03-29 Nicolas Berthier <[email protected]>

* testsuite.src/configuration.at, testsuite.at/syn_misc.at: new
tests for sections and paragraphs that do not end with a period
* testsuite.src/run_misc.at: fix lines in trace test

2022-07-28 Simon Sobisch <[email protected]>

* atlocal.in: option to run part of the testsuite via perf -stat
Expand All @@ -103,15 +92,6 @@
run_prog_manual.sh where used
* testsuite.src: added missing $COBCRUN_DIRECT

2022-03-29 Nicolas Berthier <[email protected]>

* testsuite.src/syn_copy.at: test partial replacing with SPACES
figurative constant

2022-01-25 Nicolas Berthier <[email protected]>

* testsuite.src/syn_copy.at: test partial replacing with literal

2022-02-10 Simon Sobisch <[email protected]>

* testsuite_manual.at [MANUAL_CHECK]: new macro for running every
Expand Down
4 changes: 2 additions & 2 deletions tests/atlocal_win
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ _unset_option () {
_return_path () {
# For later reference only
#echo "$1" | sed 's/\//\\/g' | sed 's/^\\\([a-z]\)\\/\1:\\/g')
if test "$OSTYPE" = "cygwin"; then
cygpath -pw "$1"
if test "$OSTYPE" = "cygwin" -o x$MSYSTEM_CHOST != x; then
cygpath -pm "$1"
else
# check for WSL / Bash on Windows; ignore error messages (file not available)
if $(grep -q "Microsoft" /proc/sys/kernel/osrelease 2>/dev/null); then
Expand Down
Loading