Skip to content

Commit

Permalink
tests: 08-cqfd_shell: use to run shell script
Browse files Browse the repository at this point in the history
This tests cqfd to run shell script via cqfd shell ./script.sh.
  • Loading branch information
gportay authored and florentsfl committed Feb 19, 2025
1 parent f1f516c commit 7dbac57
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/08-cqfd_shell
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ else
jtest_result fail
fi

jtest_prepare "cqfd shell is usable to run shell script"
if $cqfd shell ./whereami.sh 2>&1 | grep '^Ubuntu .* LTS$'; then
jtest_result pass
else
jtest_result fail
fi

jtest_prepare "cqfd bash is usable to run shell script"
if $cqfd bash ./whereami.sh 2>&1 | grep '^Ubuntu .* LTS$'; then
jtest_result pass
else
jtest_result fail
fi

jtest_prepare "cqfd shell is usable as a shell interpreter script"
if PATH="$TDIR/.cqfd:$PATH"; ./whereami.sh 2>&1 | grep '^Ubuntu .* LTS$'; then
jtest_result pass
Expand Down

0 comments on commit 7dbac57

Please sign in to comment.