Fixed test code headers to be consistent and accurate having been derived from original C files. (#1087)

This commit is contained in:
Steve Karg
2025-09-04 11:44:24 -05:00
committed by GitHub
parent a70a02a6f9
commit 8a9c808b76
140 changed files with 542 additions and 673 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
* @author Steve Karg <skarg@users.sourceforge.net>
* @date 2023-June
*
* SPDX-License-Identifier: MIT
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <bacnet/datalink/automac.h>
+9 -8
View File
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
*/
/* @file
/**
* @file
* @brief test of bsc-socket interface
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Kirill Neznamov <kirill.neznamov@dsr-corporation.com>
* @author Mikhail Antropov <michail.antropov@dsr-corporation.com>
* @author Ondřej Hruška <ondra@ondrovo.com>
* @author Patrick Grimm <patrick@lunatiki.de>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+10 -9
View File
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief test of BACnet/SC Node interface
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Kirill Neznamov <kirill.neznamov@dsr-corporation.com>
* @author Mikhail Antropov <michail.antropov@dsr-corporation.com>
* @author Ondřej Hruška <ondra@ondrovo.com>
* @author Patrick Grimm <patrick@lunatiki.de>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test of bsc-socket interface
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+10 -9
View File
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief test of BACnet/SC Socket interface
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Kirill Neznamov <kirill.neznamov@dsr-corporation.com>
* @author Mikhail Antropov <michail.antropov@dsr-corporation.com>
* @author Ondřej Hruška <ondra@ondrovo.com>
* @author Patrick Grimm <patrick@lunatiki.de>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test of bsc-socket interface
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+7 -10
View File
@@ -1,14 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief test BACnet BVLC datalink encoding and decoding API
* @author Steve Karg <skarg@users.sourceforge.net>
* @date 2004
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test BACnet integer encode/decode APIs
*/
#include <stdlib.h> /* For calloc() */
#include <stdlib.h>
#include <zephyr/ztest.h>
#include <bacnet/bactext.h>
#include <bacnet/datalink/bvlc.h>
+5 -8
View File
@@ -1,13 +1,10 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
*/
/* @file
/**
* @file
* @brief test BACnet COBS encode/decode APIs
* @author Steve Karg <skarg@users.sourceforge.net>
* @date 2014
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdlib.h>
#include <bacnet/datalink/cobs.h>
+6 -9
View File
@@ -1,13 +1,10 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief test BACnet CRC8, CRC16, and CRC32K datalink encoding and decoding API
* @author Steve Karg <skarg@users.sourceforge.net>
* @date 2004
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test BACnet integer encode/decode APIs
*/
#include <zephyr/ztest.h>
#include <bacnet/datalink/crc.h>
#include <bacnet/basic/sys/bytes.h>
+10 -9
View File
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief test of BACnet/SC Hub Connector
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Kirill Neznamov <kirill.neznamov@dsr-corporation.com>
* @author Mikhail Antropov <michail.antropov@dsr-corporation.com>
* @author Ondřej Hruška <ondra@ondrovo.com>
* @author Patrick Grimm <patrick@lunatiki.de>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test of bsc-socket interface
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+7 -5
View File
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the ARCNET datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdint.h>
#include "bacnet/datalink/arcnet.h"
+7 -5
View File
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the BACnet/IP datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdint.h> /* for standard integer types uint8_t etc. */
#include <stdbool.h> /* for the standard bool type. */
+7 -5
View File
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the BACnet/IPv6 datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdio.h>
#include <stdlib.h>
+7 -5
View File
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the BACnet/SC datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <ztest.h>
#include <stdint.h> /* for standard integer types uint8_t etc. */
#include <stdbool.h> /* for the standard bool type. */
+7 -5
View File
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the BACnet MS/TP datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdio.h>
#include <stdlib.h>
@@ -1,9 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for the BACnet Ethernet datalink
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <zephyr/ztest.h>
#include <stdio.h>
#include <stdlib.h>
+7 -9
View File
@@ -1,13 +1,11 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
/**
* @file
* @brief Mock for all the BACnet datalinks
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Greg Shue <greg.shue@outlook.com>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
/* @file
* @brief test BACnet datalink return codes
*/
#include <stdlib.h> /* For calloc() */
#include <zephyr/ztest.h>
#include <bacnet/datalink/datalink.h>
+1 -1
View File
@@ -3,7 +3,7 @@
* @author Steve Karg <skarg@users.sourceforge.net>
* @brief test BACnet MSTP datalink state machines
*
* SPDX-License-Identifier: MIT
* @copyright SPDX-License-Identifier: MIT
*/
#include <assert.h>
#include <stdlib.h>
+9 -8
View File
@@ -1,13 +1,14 @@
/*
* Copyright (c) 2020 Legrand North America, LLC.
*
* SPDX-License-Identifier: MIT
*/
/* @file
/**
* @file
* @brief test server/client websocket interface
* @author Steve Karg <skarg@users.sourceforge.net>
* @author Kirill Neznamov <kirill.neznamov@dsr-corporation.com>
* @author Mikhail Antropov <michail.antropov@dsr-corporation.com>
* @author Ondřej Hruška <ondra@ondrovo.com>
* @author Patrick Grimm <patrick@lunatiki.de>
* @date 2020
* @copyright SPDX-License-Identifier: MIT
*/
#include <stdlib.h>
#include <string.h>
#include <stdio.h>