From 2e1d4d538de47805999a56367bac51ad98786044 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Vi=C3=B1as?= Date: Mon, 11 Dec 2023 11:18:19 +0100 Subject: [PATCH] Cobol HELLO-CONSOLE test --- .github/workflows/cobol.yml | 4 +++- cobol/src/main/cobol/HELLO-CONSOLE.CBL | 1 + cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut diff --git a/.github/workflows/cobol.yml b/.github/workflows/cobol.yml index 786059e..3264a3a 100644 --- a/.github/workflows/cobol.yml +++ b/.github/workflows/cobol.yml @@ -39,7 +39,9 @@ jobs: cobc --version - name: Test - run: ./cobolcheck -p HELLO + run: | + ./cobolcheck -p HELLO + ./cobolcheck -p HELLO-CONSOLE - name: Test Report uses: dorny/test-reporter@v1 diff --git a/cobol/src/main/cobol/HELLO-CONSOLE.CBL b/cobol/src/main/cobol/HELLO-CONSOLE.CBL index 9a09f7d..6ec79c6 100644 --- a/cobol/src/main/cobol/HELLO-CONSOLE.CBL +++ b/cobol/src/main/cobol/HELLO-CONSOLE.CBL @@ -6,4 +6,5 @@ 01 MSG PIC A(20). PROCEDURE DIVISION USING MSG. + HELLO-CONSOLE. DISPLAY MSG. diff --git a/cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut b/cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut new file mode 100644 index 0000000..bc83bd7 --- /dev/null +++ b/cobol/src/test/cobol/HELLO-CONSOLE/HELLO-CONSOLE.cut @@ -0,0 +1,5 @@ +TestSuite "HELLO-CONSOLE" + +TestCase "SHOULD DISPLAY HELLO MESSAGE" + MOVE "HELLO TEST!" TO MSG + PERFORM HELLO-CONSOLE