Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5310bbb
upgrade branch1
stingerBoo Feb 24, 2026
9a5968d
Update main.yml
stingerBoo Feb 25, 2026
b71d6a3
Update main.yml
stingerBoo Feb 25, 2026
a09db19
Update main.yml
stingerBoo Feb 25, 2026
99d810a
Update main.yml
stingerBoo Feb 25, 2026
d5f88fa
Update main.yml
stingerBoo Feb 25, 2026
6e89be1
2 files
stingerBoo Feb 25, 2026
8086913
Merge branch 'branch1' of github.com:stingerBoo/ATM into branch1
stingerBoo Feb 25, 2026
443ed21
Update main.yml
stingerBoo Feb 26, 2026
df0eef2
Update main.yml
stingerBoo Feb 26, 2026
7c9f8f2
Update main.yml
stingerBoo Feb 26, 2026
33e3416
Update main.yml
stingerBoo Feb 26, 2026
33127c1
Update main.yml
stingerBoo Feb 26, 2026
dd6547b
add branch1.yml
stingerBoo Feb 26, 2026
7efb854
Update branch1.yml
stingerBoo Feb 26, 2026
42ff68c
remove main.yml
stingerBoo Feb 26, 2026
c1fc42e
update branch1.yml
stingerBoo Feb 26, 2026
279228e
Update branch1.yml
stingerBoo Feb 26, 2026
881e10d
Update branch1.yml
stingerBoo Feb 26, 2026
9d0d64c
Update branch1.yml
stingerBoo Feb 26, 2026
7d0c583
Update branch1.yml
stingerBoo Feb 26, 2026
f44ec73
Update branch1.yml
stingerBoo Feb 26, 2026
eb20af8
Update branch1.yml
stingerBoo Feb 26, 2026
18e3e5e
Update branch1.yml
stingerBoo Feb 26, 2026
7ac6860
Update branch1.yml
stingerBoo Feb 26, 2026
c548b19
Update branch1.yml
stingerBoo Feb 27, 2026
4ec914a
Update branch1.yml
stingerBoo Feb 27, 2026
94226c8
Update branch1.yml
stingerBoo Feb 27, 2026
b750f79
Update branch1.yml
stingerBoo Feb 27, 2026
705eff3
Update branch1.yml
stingerBoo Feb 27, 2026
0f4c776
Update branch1.yml
stingerBoo Feb 27, 2026
6fc07a3
Update branch1.yml
stingerBoo Feb 27, 2026
0d8ba41
Update branch1.yml
stingerBoo Feb 27, 2026
8119f9b
Update branch1.yml
stingerBoo Feb 27, 2026
14cd13e
Update branch1.yml
stingerBoo Feb 27, 2026
f76ad3c
Update branch1.yml
stingerBoo Feb 27, 2026
c69b334
Update branch1.yml
stingerBoo Feb 27, 2026
b7185de
Update branch1.yml
stingerBoo Feb 27, 2026
c85b04c
Update branch1.yml
stingerBoo Feb 27, 2026
0865cef
Update branch1.yml
stingerBoo Feb 27, 2026
c7de614
Update branch1.yml
stingerBoo Feb 27, 2026
5075596
Update branch1.yml
stingerBoo Feb 27, 2026
ad1ead9
Update branch1.yml
stingerBoo Feb 27, 2026
8afea8a
Update branch1.yml
stingerBoo Feb 27, 2026
0243e56
Update branch1.yml
stingerBoo Feb 27, 2026
fe58523
Update branch1.yml
stingerBoo Feb 27, 2026
8f3d170
Update branch1.yml
stingerBoo Feb 27, 2026
083e8e7
Update branch1.yml
stingerBoo Feb 27, 2026
48019e4
Update branch1.yml
stingerBoo Feb 27, 2026
bcbf25c
Update branch1.yml
stingerBoo Feb 27, 2026
b04e6c9
Update branch1.yml
stingerBoo Feb 27, 2026
d2910a1
Update branch1.yml
stingerBoo Feb 27, 2026
4f45ea0
Update branch1.yml
stingerBoo Feb 27, 2026
cad2040
Update branch1.yml
stingerBoo Feb 27, 2026
27434b5
Update branch1.yml
stingerBoo Feb 27, 2026
068f755
Update branch1.yml
stingerBoo Feb 27, 2026
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
136 changes: 136 additions & 0 deletions .github/workflows/branch1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
name: C/C++test with Make

on:
# Triggers the workflow on push or pull request events but only for the master (main) branch.
push:
#branches: [ main, main ]
#branches: [ main ]
branches: [ branch1 ]
pull_request:
#branches: [ main, main ]
#branches: [ main ]
branches: [ branch1 ]

# Allows you to run this workflow manually from the Actions tab.
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel.
jobs:
run-cpptest-make:
name: Analyze project with C/C++test

# Specifies required permissions for upload-sarif action
permissions:
# required for all workflows
security-events: write
# only required for workflows in private repositories
actions: read
contents: read

# Specifies the type of runner that the job will run on.
runs-on: self-hosted

# Steps represent a sequence of tasks that will be executed as part of the job.
steps:

# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
#- name: Checkout code
# uses: actions/checkout@v4

# Builds your Make project using 'cpptesttrace' to collect input data for code analysis.
# Be sure 'cpptesttrace' is available on $PATH.
#- name: Build project
# run: cpptesttrace make clean all
- name: Checkout repository
# Use the 'run-cpptest-action' GitHub action.
uses: actions/checkout@v4
with:
#ref: 'branch1'
fetch-depth: 0

# Runs code analysis with C/C++test.
#- name: show CppTest settings
#shell: cmd
#
# run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) files modify or added" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with naming of branch in Test configuration
#run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# works fine
#run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# works fine
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with branch
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with branch
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest2025.2_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.2_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# branch issue
#run: '"c:\Parasoft\cpptest\2025.2_standard\cpptestcli.exe" -input "d:\workspace\github\cpptest2025.2standard_runner\ATM\ATM_github.bdf" -compiler gcc_9-64 -config "C:\Parasoft\cpptest\2025.2_standard\configs\user\MISRA C 2023 (MISRA C 2012) branch1 main.properties"'
# branch issue
# run: '"c:\Parasoft\cpptest\2025.2_standard\cpptestcli.exe" -showdetails -show-settings'

#- name: Run C/C++test in shell
#shell: cmd
#
# run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) files modify or added" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with naming of branch in Test configuration
#run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# works fine
#run: 'cpptestcli -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# works fine
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with branch
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# issue with branch
#run: '"C:\Parasoft\cpptest\2025.2_standalone\cpptestcli.exe" -data d:\workspace\github\cpptest2025.2_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.2_runner.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
# branch issue
#run: '"c:\Parasoft\cpptest\2025.2_standard\cpptestcli.exe" -input "d:\workspace\github\cpptest2025.2standard_runner\ATM\ATM_github.bdf" -compiler gcc_9-64 -config "C:\Parasoft\cpptest\2025.2_standard\configs\user\MISRA C 2023 (MISRA C 2012) branch1 main.properties"'
# branch issue
#run: '"c:\Parasoft\cpptest\2025.2_standard\cpptestcli.exe" -input "d:\workspace\github\cpptest2025.2standard_runner\ATM\ATM_github.bdf" -compiler gcc_9-64 -config "C:\Parasoft\cpptest\2025.2_standard\configs\builtin\MISRA C 2023 (MISRA C 2012).properties" -showdetails'
# branch issue
#run: '/home/sgrabinski/cpptest/2025.2_standard/cpptestcli -input "/home/sgrabinski/workspace2025.2_standard/ATM/ATM_github.bdf" -compiler gcc_9-64 -config "/home/sgrabinski/cpptest/2025.2_standard/configs/builtin/MISRA C 2023 (MISRA C 2012).properties" -showdetails'

#commandLinePattern: '${cpptestcli} -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1.properties" -property "report.format=sarif"'

- name: Run C/C++test in shell
shell: bash
#working-directory: /home/sgrabinski/workspace2025.2_standard
# works with branch but with below setup in properties file:
# scontrol.rep1.type=git
# scope.scontrol=true
# scope.scontrol.files.filter.mode=branch
# scope.scontrol.ref.branch=main
# scontrol.rep1.git.branch=branch1
# scontrol.rep1.git.url=https\://github.com/stingerBoo/ATM.git
# scontrol.rep1.git.workspace=/home/sgrabinski/workspace2025.2_standard/ATM/
#run: 'sudo -S <<< "password" /home/sgrabinski/cpptest/2025.2_standard/cpptestcli -input "/home/sgrabinski/workspace2025.2_standard/ATM/ATM_github.bdf" -compiler gcc_9-64 -config "/home/sgrabinski/cpptest/2025.2_standard/configs/builtin/MISRA C 2023 (MISRA C 2012).properties" -showdetails'
#
#run: 'sudo /home/sgrabinski/cpptest/2025.2_standard/cpptestcli -input "/home/sgrabinski/workspace2025.2_standard/ATM/ATM_github.bdf" -compiler gcc_9-64 -config "/home/sgrabinski/cpptest/2025.2_standard/configs/user/MISRA C 2023 (MISRA C 2012) branch1 main.properties" -showdetails'
#
run: 'sudo /home/sgrabinski/cpptest/2025.2_standard/cpptestcli -input "/home/sgrabinski/workspace2025.2_standard/ATM/ATM_github.bdf" -compiler gcc_9-64 -config "/home/sgrabinski/cpptest/2025.2_standard/configs/user/MISRA C 2023 (MISRA C 2012) branch1 main.properties" -showdetails'


# Runs code analysis with C/C++test.
#- name: Run C/C++test
# Use the 'run-cpptest-action' GitHub action.
#uses: parasoft/run-cpptest-action@2.0.2
#with:
#
#additionalParams: "-J-Dscontrol.log=true"
#commandLinePattern: '${cpptestcli} -data d:\workspace\github\cpptest_runner -resource ATM -config "user://MISRA C 2023 (MISRA C 2012) branch1 main" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1.properties" -property "report.format=sarif" -appconsole stdout -showdetails'
#commandLinePattern: '${cpptestcli} -data d:\workspace\github\cpptest_runner -resource ATM -config "builtin://MISRA C 2023 (MISRA C 2012)" -report "_report" -localsettings "d:\workspace\cpptest\cpptest2025.1.properties" -property "report.format=sarif"'
#commandLinePattern: '${cpptestcli} -input "d:\workspace\github\cpptest2025.2standard_runner\ATM\ATM_github.bdf" -compiler gcc_9-64 -config "C:\Parasoft\cpptest\2025.2_standard\configs\builtin\MISRA C 2023 (MISRA C 2012).properties" -showdetails'

# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
- name: Upload results (SARIF)
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: _report/report.sarif

# Uploads an archive that includes all report files (.xml, .html, .sarif).
- name: Archive reports
if: always()
uses: actions/upload-artifact@v4
with:
name: Static analysis reports
path: _report/*.*
71 changes: 0 additions & 71 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .settings/language.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider class="org.eclipse.cdt.managedbuilder.language.settings.providers.GCCBuildCommandParser" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser" keep-relative-paths="false" name="CDT GCC Build Output Parser" parameter="([^/\\\\]*)((g?cc)|([gc]\+\+)|(clang))" prefer-non-shared="true"/>
<provider class="org.eclipse.cdt.managedbuilder.internal.language.settings.providers.GCCBuiltinSpecsDetectorCygwin" console="false" env-hash="-42335663275163061" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetectorCygwin" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cygwin" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
<provider class="org.eclipse.cdt.managedbuilder.internal.language.settings.providers.GCCBuiltinSpecsDetectorCygwin" console="false" env-hash="1611164824532835906" id="org.eclipse.cdt.managedbuilder.core.GCCBuiltinSpecsDetectorCygwin" keep-relative-paths="false" name="CDT GCC Built-in Compiler Settings Cygwin" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
Expand Down
10 changes: 10 additions & 0 deletions ATM.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ void ATM::viewAccount(int accountNumber, string password)
myDisplay->showInfoToUser("Invalid account");
//
}
if ( !(myCurrentAccount = myBank->getAccount(accountNumber, password)) )
{
myDisplay->showInfoToUser("Invalid account");
//
}
if ( !(myCurrentAccount = myBank->getAccount(accountNumber, password)) )
{
myDisplay->showInfoToUser("Invalid account");
//
}
}

void ATM::fillUserRequest(UserRequest request, double amount)
Expand Down
Loading