History log of /openbmc/libcper/tests/ir-tests.cpp (Results 1 – 16 of 16)
Revision Date Author Comments
# ae8f6d9a 29-Jan-2025 Aushim Nagarkatti <anagarkatti@nvidia.com>

Remove validation bits

Discard invalid properties from json decode. JSON output should only
contain valid properties. This saves time in preventing post
processing of output for valid fields.

Ensur

Remove validation bits

Discard invalid properties from json decode. JSON output should only
contain valid properties. This saves time in preventing post
processing of output for valid fields.

Ensure round trip validity with validation bits removed and required
properties populated.

Fix bugs in json decode.

Overhaul unit tests to use valijson. Add tests with static examples
to validate against schema. Use and nlohmann for better schema
validation over intrinsic libcper validation.

Example json output before:
{
"ValidationBits": {
"LevelValid": false,
"CorrectedValid": true
},
"Level": 1,
"Corrected": true
}

After:
{
"Corrected": true
}

Change-Id: I188bdc2827a57d938c22a431238fadfcdc939ab8
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>

show more ...


# e42fb487 15-Oct-2024 Thu Nguyen <thu@os.amperecomputing.com>

Change include style to use system includes

The libcper header files in `libcper` are installed to
`usr/include/libcper`. Use that system includes in `libcper` source
instead of using the project in

Change include style to use system includes

The libcper header files in `libcper` are installed to
`usr/include/libcper`. Use that system includes in `libcper` source
instead of using the project includes.

Change-Id: I596edc2c754dae4829844f535a1e34caa246fb43
Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>

show more ...


# 2d17acec 27-Aug-2024 Ed Tanous <etanous@nvidia.com>

Improve Nvidia CPER decode

Add decoding of registers to the structure. Note, this requires
COUNTED_BY support which is borrowed from LIBPLDM.

Also add unit-tests for NVIDIA section, and update sch

Improve Nvidia CPER decode

Add decoding of registers to the structure. Note, this requires
COUNTED_BY support which is borrowed from LIBPLDM.

Also add unit-tests for NVIDIA section, and update schema to match
existing register decoding.

Change-Id: If1c9cae97de35ba6a5dad1f462d3989ec6ac6a90
Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>
Signed-off-by: Ed Tanous <etanous@nvidia.com>

show more ...


# 255bd81a 06-Sep-2024 Karthik Rajagopalan <krajagopalan@nvidia.com>

Use extern C guards in all headers

The project uses a mix of C and C++ requiring
extern "C" guards from C++ code both within the
project & from C++ apps that use libcper. That
won't be required with

Use extern C guards in all headers

The project uses a mix of C and C++ requiring
extern "C" guards from C++ code both within the
project & from C++ apps that use libcper. That
won't be required with this change.

Change-Id: I835dd05166732ca213c72eae2904815a8769599b
Signed-off-by: Karthik Rajagopalan <krajagopalan@nvidia.com>

show more ...


# 358c7e16 15-Jul-2024 Ed Tanous <ed@tanous.net>

Remove json-schema install

This code just copies the json-schema from the source dir to the compile
dir. It doesn't actually accomplish anything.

Move the source dir to a compile flag, and let uni

Remove json-schema install

This code just copies the json-schema from the source dir to the compile
dir. It doesn't actually accomplish anything.

Move the source dir to a compile flag, and let unit tests read in the
schema directly.

Note: Copy was actually done in two places.

Change-Id: I26aee9edbac5b253ca426d32118b71cc5f905e10
Signed-off-by: Ed Tanous <ed@tanous.net>

show more ...


# fedd457d 12-Jul-2024 Ed Tanous <ed@tanous.net>

Remove trailing whitespace

clang-format won't remove trailing whitespace if that's the only change.
Fix them all.

Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812
Signed-off-by: Ed Tanous <ed@t

Remove trailing whitespace

clang-format won't remove trailing whitespace if that's the only change.
Fix them all.

Change-Id: Ic6e14af43cdd11905d3b58430d49b9ec1484f812
Signed-off-by: Ed Tanous <ed@tanous.net>

show more ...


# f8fc7052 03-May-2024 John Chung <john.chung@arm.com>

Formatting .c/.h files and fix memory leakage issues

Signed-off-by: John Chung <john.chung@arm.com>
Change-Id: Id8328f412c2724992d80c0b3f895c8f85bc4ae68


# 40519cb4 24-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Add documentation for generator extensions.

Change-Id: I889021a26e89e7d60a0f44cbe7665e359dbd7307


# 8f977457 24-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Switch to modular includes for generator.

Change-Id: Ie2926938912400b86c32733f04d59377c447c66c


# 580423fe 24-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Shift section definitions into separate file, add testing.

Change-Id: Idb0b41d7fa2999485580fca770958a27c1086f65


# 5202bbb4 12-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Source json.h non-locally.

Change-Id: Ia42c41fde74596b394a1f7ae0021f1a5510991a8


# a4f662f1 08-Aug-2022 Lawrence Tang <lawrence.tang@arm.com>

Add testing for single section CPER.


# e407b4c8 21-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Partial reformat to kernel code style.


# aacf0e26 20-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add fixes based on test fuzzing.


# cd505205 19-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add initial tests for binary equality.


# d34f2b11 19-Jul-2022 Lawrence Tang <lawrence.tang@arm.com>

Add test suite, fix a mountain of small errors.