Skip to content

Commit d942210

Browse files
v1.0.4 (#42)
# New Features * Rename cobc, the compile command, to cobj. * -fserial-variable option * By default, Java variable names are f_{COBOL variable name} or b_{COBOL variable name}. With -fvar-number option, Java variable names are f_{serial number}. * Improve the performance of control statements. * In v1.0.3 and earlier, the memory consumption increases the number of GOTO loops increases. In v1.0.4, the memory problem is solved. * Due to the fix, the number of class files that cobj command genearates increase compared to earlier version in some cases. * Implement -ftrace and -ftraceall options. * Change the license of libcobj to LGPL3. # Bug fixes * Fix the problem of signed comp-3 data. * Fix the problem of MOVE statement. * Fix the problem of EXTERNAL # Miscellaneous * Remove some unnecessary directories(bin/, vbisam/). * Remove dependencies on ncurses and gmp. * Fix the build system of tests/ directory. * Add test cases for new features and bug fixes. * When converting COBOL source code with EXTERNAL to Java source code, insert line breaks to make them easier to read * Update CI to run NIST and other tests.
1 parent 597711f commit d942210

File tree

230 files changed

+395150
-161737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+395150
-161737
lines changed

.github/workflows/cicd.yml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: NIST COBOL85 tests
2+
on:
3+
push:
4+
pull_request:
5+
types: [opened, reopened, review_requested, synchronize]
6+
7+
jobs:
8+
run-tests:
9+
runs-on: ubuntu-latest
10+
steps:
11+
# Checkout opensource COBOL
12+
- name: Checkout opensource COBOL 4j
13+
uses: actions/checkout@v2
14+
15+
- name: Install dependencies
16+
run: |
17+
sudo apt-get update
18+
sudo apt-get install default-jdk
19+
sudo apt-get install -y build-essential bison flex gettext texinfo
20+
21+
- name: Install opensource COBOL 4j
22+
run: |
23+
mkdir ~/.java_lib
24+
curl -L -o ~/.java_lib/sqlite.jar https://github.com/xerial/sqlite-jdbc/releases/download/3.36.0.3/sqlite-jdbc-3.36.0.3.jar
25+
export CLASSPATH=":$HOME/.java_lib/sqlite.jar"
26+
./configure --prefix=/usr/
27+
make
28+
sudo make install
29+
cp libcobj/build/libcobj.jar ~/.java_lib
30+
export CLASSPATH="$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
31+
32+
- name: Make test scripts
33+
run: |
34+
cd tests/
35+
make
36+
cd ../
37+
38+
- name: Run tests "command-line-options"
39+
run: |
40+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
41+
cd tests/
42+
./command-line-options
43+
cd ../
44+
45+
- name: Run tests "misc"
46+
run: |
47+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
48+
cd tests/
49+
./misc
50+
cd ../
51+
52+
- name: Run tests "data-rep"
53+
run: |
54+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
55+
cd tests/
56+
./data-rep || true
57+
cd ../
58+
59+
- name: Run tests "i18n_sjis"
60+
run: |
61+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
62+
cd tests/
63+
./i18n_sjis || true
64+
65+
- name: Run tests "jp-compat"
66+
run: |
67+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
68+
cd tests/
69+
./jp-compat || true
70+
cd ../
71+
72+
#- name: Run tests "run"
73+
# run: |
74+
# export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
75+
# cd tests/
76+
# ./run || true
77+
# cd ../
78+
79+
- name: Run tests "syntax"
80+
run: |
81+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
82+
cd tests/
83+
./syntax || true
84+
cd ../
85+
86+
- name: Run NIST test
87+
run: |
88+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
89+
cd tests/cobol85/
90+
make test
91+
92+
- name: Run tests "i18n_utf8"
93+
run: |
94+
export CLASSPATH=":$HOME/.java_lib/sqlite.jar"
95+
./configure --prefix=/usr/ --with-vbisam --enable-utf8
96+
make
97+
sudo make install
98+
cp libcobj/build/libcobj.jar ~/.java_lib
99+
export CLASSPATH=":$HOME/.java_lib/libcobj.jar:$HOME/.java_lib/sqlite.jar"
100+
./i18n_utf8 || true
101+
cd ../

.github/workflows/run_test.yml

-10
This file was deleted.

.gitignore

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Makefile
2+
autom4te.cache/
3+
cobj/.deps/
4+
cobj/Makefile
5+
cobj/cobj
6+
cobj/*.o
7+
config.h
8+
config.log
9+
config.status
10+
config/Makefile
11+
copy/Makefile
12+
defaults.h
13+
lib/.deps/
14+
lib/Makefile
15+
lib/*.o
16+
lib/*.a
17+
libcob/.deps/
18+
libcob/.libs/
19+
libcob/Makefile
20+
libcob/*.la
21+
libcob/*.lo
22+
libcob/*.o
23+
libcobj/build/
24+
libtool
25+
m4/libtool.m4
26+
m4/ltoptions.m4
27+
m4/ltsugar.m4
28+
m4/ltversion.m4
29+
m4/lt~obsolete.m4
30+
po/Makefile
31+
po/Makefile.in
32+
po/POTFILES
33+
po/ja.po~
34+
po/*.pot
35+
po/remove-potcdate.sed
36+
stamp-h1
37+
test-driver
38+
tests/Makefile
39+
tests/atconfig
40+
tests/atlocal
41+
tests/cobol85/Makefile
42+
tests/command-line-options
43+
tests/data-rep
44+
tests/i18n_sjis
45+
tests/i18n_utf8
46+
tests/jp-compat
47+
tests/misc
48+
tests/run
49+
tests/syntax
50+
texi/Makefile

0 commit comments

Comments
 (0)