mirror of
https://github.com/mirror/make.git
synced 2025-01-10 12:20:18 +08:00
32 lines
714 B
Plaintext
32 lines
714 B
Plaintext
|
# -*-mode: perl-*-
|
||
|
|
||
|
$description = "Test the directory cache behavior.";
|
||
|
|
||
|
# The first wildcard should bring the entire directory into the cache Then we
|
||
|
# create a new file "behind make's back" then see if the next wildcard detects
|
||
|
# it.
|
||
|
|
||
|
run_make_test(q!
|
||
|
_orig := $(wildcard ./*)
|
||
|
$(shell echo > anewfile)
|
||
|
_new := $(wildcard ./*)
|
||
|
$(info diff=$(filter-out $(_orig),$(_new)))
|
||
|
all:;@:
|
||
|
!,
|
||
|
'', "diff=./anewfile\n");
|
||
|
|
||
|
rmfiles('anewfile');
|
||
|
|
||
|
run_make_test(q!
|
||
|
_orig := $(wildcard ./*)
|
||
|
$(file >anewfile)
|
||
|
_new := $(wildcard ./*)
|
||
|
$(info diff=$(filter-out $(_orig),$(_new)))
|
||
|
all:;@:
|
||
|
!,
|
||
|
'', "diff=./anewfile\n");
|
||
|
|
||
|
rmfiles('anewfile');
|
||
|
|
||
|
1;
|