Skip to content

Commit

Permalink
Fix test binary (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Donneaux <[email protected]>
  • Loading branch information
btlogy authored Jun 13, 2024
1 parent 71a82e5 commit 4513156
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ jobs:
- name: Test binary
id: test_binary
run: |
# Run some basic test on the binary built earlier
echo -n "Test for a static executable: "
ldd ../trac2gitea | grep -q 'not a dynamic executable' \
# some basic tests on the binary built earlier
echo -n "Test for a static executable... "
ldd ./trac2gitea 2>&1 | grep -q 'not a dynamic executable' \
&& echo PASS \
|| { echo FAIL; exit 1; }
echo -n "Test for usage prompt on execution: "
echo -n "Test for usage prompt on execution... "
./trac2gitea --help 2>&1 | grep -q '^Usage' \
&& echo 'PASS' \
|| { echo 'FAIL'; exit 1; }

0 comments on commit 4513156

Please sign in to comment.