mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-18 01:27:00 +08:00
Format code and header
This commit is contained in:
parent
c1a16582ff
commit
73c63d117f
@ -5,7 +5,7 @@
|
|||||||
# Test File : deb-installation-test.sh
|
# Test File : deb-installation-test.sh
|
||||||
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
|
# File Authors : sanchuanhehe <wyihe5520@gmail.com>
|
||||||
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
# Contributors : Aoran Zeng <ccmywish@qq.com>
|
||||||
# |
|
# |
|
||||||
# Created On : <2025-06-14>
|
# Created On : <2025-06-14>
|
||||||
# Last Modified : <2025-06-16>
|
# Last Modified : <2025-06-16>
|
||||||
#
|
#
|
||||||
@ -18,38 +18,38 @@ echo "Testing installation of deb package 'chsrc' ..."
|
|||||||
|
|
||||||
# Test 1: Check if chsrc binary exists and is executable
|
# Test 1: Check if chsrc binary exists and is executable
|
||||||
if [ ! -f "/usr/bin/chsrc" ]; then
|
if [ ! -f "/usr/bin/chsrc" ]; then
|
||||||
echo "ERROR: /usr/bin/chsrc not found"
|
echo "ERROR: /usr/bin/chsrc not found"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -x "/usr/bin/chsrc" ]; then
|
if [ ! -x "/usr/bin/chsrc" ]; then
|
||||||
echo "ERROR: /usr/bin/chsrc is not executable"
|
echo "ERROR: /usr/bin/chsrc is not executable"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "✓ /usr/bin/chsrc binary exists and is executable"
|
echo "✓ /usr/bin/chsrc binary exists and is executable"
|
||||||
|
|
||||||
# Test 2: Check if man page exists
|
# Test 2: Check if man page exists
|
||||||
if [ ! -f "/usr/share/man/man1/chsrc.1" ]; then
|
if [ ! -f "/usr/share/man/man1/chsrc.1" ]; then
|
||||||
echo "WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
|
echo "WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
|
||||||
else
|
else
|
||||||
echo "✓ chsrc man page exists"
|
echo "✓ chsrc man page exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test 3: Test basic functionality
|
# Test 3: Test basic functionality
|
||||||
echo "Testing basic chsrc functionality..."
|
echo "Testing basic chsrc functionality..."
|
||||||
if /usr/bin/chsrc help >/dev/null 2>&1; then
|
if /usr/bin/chsrc help >/dev/null 2>&1; then
|
||||||
echo "✓ command 'chsrc help' works"
|
echo "✓ command 'chsrc help' works"
|
||||||
else
|
else
|
||||||
echo "ERROR: command 'chsrc help' failed"
|
echo "ERROR: command 'chsrc help' failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if /usr/bin/chsrc list >/dev/null 2>&1; then
|
if /usr/bin/chsrc list >/dev/null 2>&1; then
|
||||||
echo "✓ command 'chsrc list' works"
|
echo "✓ command 'chsrc list' works"
|
||||||
else
|
else
|
||||||
echo "ERROR: command 'chsrc list' failed"
|
echo "ERROR: command 'chsrc list' failed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "All installation tests of deb package 'chsrc' passed!"
|
echo "All installation tests of deb package 'chsrc' passed!"
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
||||||
* |
|
* |
|
||||||
* Created On : <2023-08-28>
|
* Created On : <2023-08-28>
|
||||||
* Last Modified : <2025-06-16>
|
* Last Modified : <2025-06-17>
|
||||||
*
|
*
|
||||||
* chsrc: Change Source —— 全平台通用命令行换源工具
|
* chsrc: Change Source —— 全平台通用命令行换源工具
|
||||||
* ------------------------------------------------------------*/
|
* ------------------------------------------------------------*/
|
||||||
|
|
||||||
#define Chsrc_Version "0.2.1.2"
|
#define Chsrc_Version "0.2.1.2-dev1"
|
||||||
#define Chsrc_Release_Date "2025/06/16"
|
#define Chsrc_Release_Date "2025/06/16"
|
||||||
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL "https://github.com/RubyMetric/chsrc"
|
||||||
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
#define Chsrc_Maintain_URL2 "https://gitee.com/RubyMetric/chsrc"
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** ------------------------------------------------------------
|
/** ------------------------------------------------------------
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : Mikachu2333 <mikachu.23333@zohomail.com>
|
||||||
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
|
||||||
* |
|
* |
|
||||||
* Created On : <2023-08-30>
|
* Created On : <2023-08-30>
|
||||||
* Last Modified : <2025-06-17>
|
* Last Modified : <2025-06-17>
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
/** ------------------------------------------------------------
|
/** ------------------------------------------------------------
|
||||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
* -------------------------------------------------------------
|
* -------------------------------------------------------------
|
||||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||||
* Contributors : Nil Null <nil@null.org>
|
* Contributors : Mikachu2333 <mikachu.23333@zohomail.com>
|
||||||
* | Mikachu2333 <mikachu.23333@zohomail.com>
|
|
||||||
* |
|
* |
|
||||||
* Created On : <2023-09-01>
|
* Created On : <2023-09-01>
|
||||||
* Major Revision : 1
|
* Major Revision : 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user