diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-07-17 09:19:06 -0300 |
commit | 9fe9310ccf4971f0d1976f9bdaafd04a68ea314b (patch) | |
tree | ff1d5d677d5b3c33ac7eb6252029f2a9d165d9b3 /.config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish | |
parent | 743caecfc68bb6d28f8de2e80bce671e42601c6a (diff) |
Deleted fisher stuff
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish')
-rw-r--r-- | .config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish deleted file mode 100644 index 2ce12051..00000000 --- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_section_jobs.test.fish +++ /dev/null @@ -1,120 +0,0 @@ -source $DIRNAME/spacefish_test_setup.fish - -function setup - spacefish_test_setup -end - -function teardown - killall sleep # Kill any previous background jobs -end - -test "Test a single background job" - ( - sleep 5 & # Background process - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end - -test "Test with two background jobs" - ( - sleep 5 & # Background process #1 - sleep 5 & # Background process #2 - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦2" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end - -test "Test with five background jobs" - ( - sleep 5 & # Background process #1 - sleep 5 & # Background process #2 - sleep 5 & # Background process #3 - sleep 5 & # Background process #4 - sleep 5 & # Background process #5 - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦5" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end - -test "Test with less than threshold of background jobs" - ( - set SPACEFISH_JOBS_AMOUNT_THRESHOLD 4 - - sleep 5 & # Background process #1 - sleep 5 & # Background process #2 - sleep 5 & # Background process #3 - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end - -test "Test with equal threshold of background jobs" - ( - set SPACEFISH_JOBS_AMOUNT_THRESHOLD 4 - - sleep 5 & # Background process #1 - sleep 5 & # Background process #2 - sleep 5 & # Background process #3 - sleep 5 & # Background process #4 - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end - -test "Test with more than threshold of background jobs" - ( - set SPACEFISH_JOBS_AMOUNT_THRESHOLD 4 - - sleep 5 & # Background process #1 - sleep 5 & # Background process #2 - sleep 5 & # Background process #3 - sleep 5 & # Background process #4 - sleep 5 & # Background process #5 - sleep 5 & # Background process #6 - - set_color --bold - set_color normal - set_color --bold blue - echo -n "✦6" - set_color normal - set_color --bold - echo -n " " - set_color normal - ) = (__sf_section_jobs) -end |