Skip to content

Instantly share code, notes, and snippets.

View daparic's full-sized avatar

daparic

  • 15:31 (UTC +08:00)
View GitHub Profile
Starting "Run Unit Tests" (Execution) for bladerunner\bladerunner ...
Collecting tests to be executed...
...done.
Preparing execution flow...
Finding test cases...
...done.
[main.cpp] Precompiling source: bladerunner\bladerunner\Source Files\main.cpp ...
[helper.c] Precompiling source: bladerunner\bladerunner\Source Files\helper.c ...
Solution Details
1. Make sure that the network card is configured properly. Once that has been determined and the behavior still persists please proceed to #2
2. The Machine ID algorithm scans for ethernet configuration names of eth0-eth9. If the ethernet configuration is named with a numeric value with greater than 2 digits, then the Machine ID algorithm will fail, which will produce LINUX2-0. Administrator privilege will be required for the following.
a. Back up the file /etc/udev/rules.d/70-persistent-net.rules
b. Edit the file mentioned in (a) and look for the PCI device that is discovered when the command "ifconfig -a" is executed.
c. Change the "NAME" of the attribute, such that, there will only be 1 digit in the name (e.g. change <NAME="eth10"> to <NAME="eth0">).
d. Be sure to assign the ethernet configuration to the proper IP using "Network Preferences".
e. Restart the machine and try to get the Machine ID from the License Page in the Preferences dialog again.
Parasoft C/C++test Professional 2023.2.0 (10.6.3.20231205B2318) -- Copyright (C) 2023 Parasoft Corporation
Using default workspace "/home/dx/parasoft/workspace".
Machine id: LINUX2-6db5ee26 (Default)
[INTERFACE]
NAME: lo
QUALITY: 17
CUSTOM: false
#!/bin/sh
#
P=~/Install/C_Linux_parasoft/cpptest
$P/bin/jre/bin/java \
-cp $P/ide/eclipse/plugins/org.eclipse.equinox.launcher_1.5.600.v20191014-2022.jar \
-verbose:class \
-Dcpptestcli.vendor=Parasoft \
-Dcpptestcli.name=C/C++test \
@daparic
daparic / Makefile
Created November 6, 2023 14:05
Visual Studio Makefile
# Makefile for Visual Studio 2019 C/C++ project
# Compiler
CC = cl.exe
# Compiler flags
CFLAGS = /EHsc /W3
# Source file
SOURCE = main.c
<?xml version='1.0' encoding='UTF-8'?><ResultsSession buildId="Default Project-2023-10-24" date="10/24/23 10:01:24" machine="LAPTOP-1QQN8248" project="Default Project" tag="Run Unit Tests" time="2023-10-24T10:01:24+08:00" toolName="C++test" toolVer="2023.1.0.20230525B2127" user="dx">
<TestConfig machine="LAPTOP-1QQN8248" name="Run Unit Tests" pseudoUrl="c++test.builtin://Run Unit Tests" user="dx"/>
<Authors>
<Author id="dev1" name="dx"/>
</Authors>
<VersionInfos>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.execution" resultId="IExecutionViolation" ver="2"/>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.execution" resultId="InsureViolation" ver="3"/>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.scope" resultId="IScopeProjectInfo" ver="3"/>
<StorageInfo ownerId="com.parasoft.xtest.checkers.api.standards" resultId="IMetricsViolation" ver="2"/>
@daparic
daparic / MYCWE362.properties
Created October 19, 2023 23:31
Only CWE-362 Rules
#Fri Oct 20 07:21:10 PST 2023
APSC_DV-000480-a-isNumericalDataNotTainted=false
APSC_DV-000480-a-reportUnvalidatedViolations=true
APSC_DV-000480-a-taintedDataSourceSocket=true
APSC_DV-000480-a-taintedInputFiles=true
APSC_DV-000480-a-taintedInputLowLevel=true
APSC_DV-000480-a-taintedInputNetwork=true
APSC_DV-000480-a-taintedInputPipes=true
APSC_DV-000480-a-taintedInputStreams=false
APSC_DV-000480-a-taintedInputSystem=true
@daparic
daparic / list-configs.txt.md
Created October 10, 2023 09:37
CONFIGS Parasoft C/C++test 2023.1.0 (10.6.2.20230525B3938)
  builtin://CWE Top 25 + On the Cusp 2022
  builtin://DISA-ASD-STIG
  builtin://UL 2900
  builtin://Flow Analysis Aggressive
  builtin://Run VxWorks Application with Mem Monitoring - RTP (PassFS)
  builtin://Run Unit Tests (File Scope)
  builtin://Run DS-5 Application with Memory Monitoring (FVP simulator)
  builtin://Build Test Executable
  builtin://Build Renesas Rx Application Monitoring Executable in e2 Studio
@daparic
daparic / list-compilers.txt.md
Last active October 10, 2023 09:37
COMPILERS Parasoft C/C++test 2023.1.0 (10.6.2.20230525B3938)
  Clang C/C++ Compiler 10.0 (x86_64) - clang_10_0
  Clang C/C++ Compiler 12.0 (x86_64) - clang_12_0
  Clang C/C++ Compiler 5.0 - clang_5_0
  Clang C/C++ Compiler 6.0 - clang_6_0
  Clang C/C++ Compiler 8.0 (x86_64) - clang_8_0
  GNU GCC 10.x (x86_64) - gcc_10-64
  GNU GCC 11.x (x86_64) - gcc_11-64
  GNU GCC 12.x (x86_64) - gcc_12-64
  GNU GCC 5.x - gcc_5
@daparic
daparic / parasoft-ninja.md
Created October 10, 2023 05:24
Parasoft C/C++test Ninja Support