]> Cypherpunks.ru repositories - goredo.git/blob - t/redo-sh.tests/dependency_ne_nobuild_1/test
Import tests from apenwarr/redo and redo.sh
[goredo.git] / t / redo-sh.tests / dependency_ne_nobuild_1 / test
1 #!/bin/sh -eu
2 # A target must not be rebuilt when a non-existence dependency does not exist.
3
4 >all.do printf 'redo-ifchange a\n'
5 >a.do printf 'test -e b || redo-ifcreate b\ndate +%s\n'
6
7 redo
8 <a read -r timestamp_a1
9
10 sleep 1
11
12 redo
13 <a read -r timestamp_a2
14
15 test ${timestamp_a2} -eq ${timestamp_a1}