diff --git a/tests/t1300-ls.sh b/tests/t1300-ls.sh index ca2d81e..c978a08 100755 --- a/tests/t1300-ls.sh +++ b/tests/t1300-ls.sh @@ -54,7 +54,34 @@ TODO: 3 of 3 tasks shown from $HOME/todo.txt EOF # -# check the p command line option +# check the x command line option +# +TEST_TODO3_=todo3.cfg +sed -e "s%^.*export TODOTXT_FINAL_FILTER=.*$%export TODOTXT_FINAL_FILTER=\"grep -v xxx\"%" "${TEST_TODO_}" > "${TEST_TODO3_}" + +cat > todo.txt <>> todo.sh -d "$TEST_TODO3_" ls +3 baz +1 foo +-- +TODO: 2 of 3 tasks shown from $HOME/todo.txt + +>>> todo.sh -d "$TEST_TODO3_" -x ls +2 bar xxx +3 baz +1 foo +-- +TODO: 3 of 3 tasks shown from $HOME/todo.txt +EOF + +# +# check the p command line option # cat > todo.txt <