Skip to content

Commit b8d1876

Browse files
committed
Update to add comments to indicate the need for Elevated privileges to run the tests.
Signed-off-by: Paul Mani <paulmani88@yahoo.com>
1 parent 86bbffb commit b8d1876

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

demos/copilot/src/tests/runtests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/sh
22

33
# License: SPDX-License-Identifier: MIT
4+
# This script is used to run all tests in the current folder that start with "test"
5+
# It will generate a JUnit XML report of the test results.
6+
# This script will need to be run with elevated privileges because some tests may require root access.
47

58
# Initialize counters
69
TOTAL_TESTS=0

demos/copilot/src/tests/test1.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# This script is used to test the lightServer and main_syslog programs
66
# It creates a FIFO named testInput, starts the lightServer and main_syslog programs, and sends a message to the lightServer
7-
# Usage: ./test1.sh
87

98
# Create a FIFO named testInput
109
mkfifo testInput

demos/copilot/src/tests/test2.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
# This script is used to test the lightServer and main_syslog programs
66
# It creates a FIFO named testInput, starts the lightServer and main_syslog programs, and sends a message to the lightServer
7-
# Usage: ./test1.sh
87

98
# Create a FIFO named testInput
109
mkfifo testInput

demos/copilot/src/tests/testRawSock1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This script is used to test the the raw socket implementation of the lightServer and main_syslog programs
66
# It creates a FIFO named testInput, starts the lightServer and main_syslog programs, and sends a message to the lightServer
7-
# Usage: ./test1.sh
7+
# Note: This script requires root privileges to run due to raw socket usage.
88

99
# Create a FIFO named testInput
1010
mkfifo testInput

demos/copilot/src/tests/testRawSock2.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# This script is used to test the raw socket implementation of lightServer and main_syslog programs
66
# It creates a FIFO named testInput, starts the lightServer and main_syslog programs, and sends a message to the lightServer
7-
# Usage: ./test1.sh
7+
# Note : This script requires root privileges to run due to raw socket usage.
88

99
# Create a FIFO named testInput
1010
mkfifo testInput

0 commit comments

Comments
 (0)