55# Test File : deb-installation-test.sh
66# File Authors : sanchuanhehe <[email protected] >77# Contributors : Aoran Zeng <[email protected] >8- # |
8+ # |
99# Created On : <2025-06-14>
1010# Last Modified : <2025-06-16>
1111#
@@ -18,38 +18,38 @@ echo "Testing installation of deb package 'chsrc' ..."
1818
1919# Test 1: Check if chsrc binary exists and is executable
2020if [ ! -f " /usr/bin/chsrc" ]; then
21- echo " ERROR: /usr/bin/chsrc not found"
22- exit 1
21+ echo " ERROR: /usr/bin/chsrc not found"
22+ exit 1
2323fi
2424
2525if [ ! -x " /usr/bin/chsrc" ]; then
26- echo " ERROR: /usr/bin/chsrc is not executable"
27- exit 1
26+ echo " ERROR: /usr/bin/chsrc is not executable"
27+ exit 1
2828fi
2929
3030echo " ✓ /usr/bin/chsrc binary exists and is executable"
3131
3232# Test 2: Check if man page exists
3333if [ ! -f " /usr/share/man/man1/chsrc.1" ]; then
34- echo " WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
34+ echo " WARNING: chsrc man page not found at /usr/share/man/man1/chsrc.1"
3535else
36- echo " ✓ chsrc man page exists"
36+ echo " ✓ chsrc man page exists"
3737fi
3838
3939# Test 3: Test basic functionality
4040echo " Testing basic chsrc functionality..."
4141if /usr/bin/chsrc help > /dev/null 2>&1 ; then
42- echo " ✓ command 'chsrc help' works"
42+ echo " ✓ command 'chsrc help' works"
4343else
44- echo " ERROR: command 'chsrc help' failed"
45- exit 1
44+ echo " ERROR: command 'chsrc help' failed"
45+ exit 1
4646fi
4747
4848if /usr/bin/chsrc list > /dev/null 2>&1 ; then
49- echo " ✓ command 'chsrc list' works"
49+ echo " ✓ command 'chsrc list' works"
5050else
51- echo " ERROR: command 'chsrc list' failed"
52- exit 1
51+ echo " ERROR: command 'chsrc list' failed"
52+ exit 1
5353fi
5454
5555echo " All installation tests of deb package 'chsrc' passed!"
0 commit comments