diff options
author | Victor Westerhuis <victor@westerhu.is> | 2021-12-05 11:00:33 +0100 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2021-12-05 11:53:29 -0800 |
commit | 84f40a088bb20ec3050007ae9dfede9da3f0b0f7 (patch) | |
tree | 46313bc715794980868ad8eeaf0ac4fda35b412a | |
parent | a43ce5eb8b0917770d74ed2fa3ea8cade98005e5 (diff) | |
download | colm-84f40a088bb20ec3050007ae9dfede9da3f0b0f7.tar.gz |
Delete test cases in out-of-tree build
While 7e3709188833f72ca7a0808942d3a9da6464675f deleted too much, the fix
in f9708db3960b95457c1efaf092efc65d3b486c9f actually deleted too little.
The cleaning is now guarded by the same condition as the initial linking
or copying.
-rw-r--r-- | test/aapl.d/Makefile.am | 3 | ||||
-rw-r--r-- | test/colm.d/Makefile.am | 3 | ||||
-rw-r--r-- | test/rlhc.d/Makefile.am | 4 | ||||
-rw-r--r-- | test/rlparse.d/Makefile.am | 4 | ||||
-rw-r--r-- | test/trans.d/Makefile.am | 4 |
5 files changed, 18 insertions, 0 deletions
diff --git a/test/aapl.d/Makefile.am b/test/aapl.d/Makefile.am index 7d6cc48b..6d107699 100644 --- a/test/aapl.d/Makefile.am +++ b/test/aapl.d/Makefile.am @@ -105,6 +105,9 @@ CLEANFILES = gentests clean-local: rm -Rf working + if test '$(builddir)' != '$(srcdir)'; then \ + rm -f *.exp; \ + fi check-local: if test '$(builddir)' != '$(srcdir)'; then \ diff --git a/test/colm.d/Makefile.am b/test/colm.d/Makefile.am index 49b9a960..0438dc4d 100644 --- a/test/colm.d/Makefile.am +++ b/test/colm.d/Makefile.am @@ -189,6 +189,9 @@ CLEANFILES = gentests clean-local: rm -Rf working + if test '$(builddir)' != '$(srcdir)'; then \ + rm -f *.lm *.lmi *.in; \ + fi check-local: if test '$(builddir)' != '$(srcdir)'; then \ diff --git a/test/rlhc.d/Makefile.am b/test/rlhc.d/Makefile.am index edcc5979..2d7e6857 100644 --- a/test/rlhc.d/Makefile.am +++ b/test/rlhc.d/Makefile.am @@ -1093,6 +1093,10 @@ CLEANFILES = rlhc.c clean-local: rm -Rf working + if test '$(builddir)' != '$(srcdir)'; then \ + rm -Rf case; \ + rm -f gentests; \ + fi check-local: if test '$(builddir)' != '$(srcdir)'; then \ diff --git a/test/rlparse.d/Makefile.am b/test/rlparse.d/Makefile.am index fbd50d0b..bc7241dc 100644 --- a/test/rlparse.d/Makefile.am +++ b/test/rlparse.d/Makefile.am @@ -45,6 +45,10 @@ CLEANFILES = parse.c if.h if.cc commit.cc clean-local: rm -Rf working + if test '$(builddir)' != '$(srcdir)'; then \ + rm -Rf case; \ + rm -f gentests; \ + fi check-local: if test '$(builddir)' != '$(srcdir)'; then \ diff --git a/test/trans.d/Makefile.am b/test/trans.d/Makefile.am index 9d61772c..57ef1e8d 100644 --- a/test/trans.d/Makefile.am +++ b/test/trans.d/Makefile.am @@ -380,6 +380,10 @@ CLEANFILES = trans.c clean-local: rm -Rf working + if test '$(builddir)' != '$(srcdir)'; then \ + rm -Rf case; \ + rm -f gentests; \ + fi check-local: if test '$(builddir)' != '$(srcdir)'; then \ |