make/tests/scripts/targets/FORCE
Paul Smith 45bf0e3a67 Portability changes for the test suite.
* tests/test_driver.pl: Save error strings for later comparison.
* tests/run_make_tests.pl: Create portable commands for later use.
* tests/*: Use these new variables.
2016-12-26 09:01:59 -05:00

20 lines
484 B
Perl

# -*-perl-*-
$description = "The following tests rules without Commands or Dependencies.";
# Create a file named "clean". This is the same name as the target clean
# and tricks the target into thinking that it is up to date. (Unless you
# use the .PHONY target.
touch('clean');
run_make_test(qq!
.IGNORE :
clean: FORCE ; $CMD_rmfile clean
FORCE:
!,
'', "$CMD_rmfile clean");
rmfiles('clean');
1;