Skip to content

Commit

Permalink
Manual tests for 'still running' and real-time output emission
Browse files Browse the repository at this point in the history
  • Loading branch information
maximuska committed Jul 28, 2013
1 parent 7955938 commit 22aa5f3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tst4.ninja
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
delay = 20

rule echos
command = for x in `seq $delay` ; do echo $$x; sleep 0.1; done
description = [ECHOS-$delay] $out
rule echos2
command = for x in `seq $delay` ; do echo -n "Running $$x\r"; sleep 0.1; done && echo ""
description = [ECHOS-$delay] $out
rule false
command = for x in `seq $delay` ; do echo $$x; sleep 0.1; done && false
description = [FALSE] $out
rule sleep
command = sleep $delay
description = [SLEEP-$delay] $out

build e1: echos
build e2: echos e1
delay = 10
build e3: sleep
description = SLEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE$
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIING
delay = 10
build e4: false e1
build e5: sleep
delay = 20
build e6: echos2
delay = 20

default e1

0 comments on commit 22aa5f3

Please sign in to comment.