Skip to content

Commit 4aa4fd5

Browse files
authored
Add make check test for legacy-printer-app (#44)
1 parent 67413b9 commit 4aa4fd5

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,3 +182,6 @@ endif
182182
uninstall-hook:
183183

184184
SUBDIRS =
185+
186+
check:
187+
./test/test-legacy-printer.sh

test/test-legacy-printer.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
3+
echo "Running legacy-printer-app test..."
4+
5+
# Check if binary exists
6+
if [ ! -f "./legacy-printer-app" ]; then
7+
echo "legacy-printer-app binary not found"
8+
exit 1
9+
fi
10+
11+
./legacy-printer-app --help > /dev/null 2>&1
12+
13+
if [ $? -ne 0 ]; then
14+
echo "legacy-printer-app failed to run"
15+
exit 1
16+
fi
17+
18+
echo "legacy-printer-app test passed"
19+
exit 0

0 commit comments

Comments
 (0)