File: clean-test-env.sh

package info (click to toggle)
theme-d 7.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,240 kB
  • sloc: lisp: 9,688; sh: 5,345; makefile: 716; ansic: 477
file content (32 lines) | stat: -rwxr-xr-x 1,047 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

rm compile-tests.log
rm link-test-programs.log
rm run-test-programs.log

make -C ../theme-d-code/examples -f user.mk clean

# We don't delete the target files of modules numerical-test-env and
# matrix-test-env.
rm ../theme-d-code/tests/__intf_test*.go
rm ../theme-d-code/tests/__intf_test*.aux
rm ../theme-d-code/tests/__intf_test*.tree-il
rm ../theme-d-code/tests/__intf_test*.scm
rm ../theme-d-code/tests/__impl_test*.go
rm ../theme-d-code/tests/__impl_test*.aux
rm ../theme-d-code/tests/__impl_test*.tree-il
rm ../theme-d-code/tests/__impl_test*.scm
rm ../theme-d-code/tests/test*.tci
rm ../theme-d-code/tests/test*.tcb
rm ../theme-d-code/tests/test*.tcp
rm ../theme-d-code/tests/test*.tcs
rm ../theme-d-code/tests/test*.go
rm ../theme-d-code/tests/test*.tree-il
rm ../theme-d-code/tests/test*.scm

find ../theme-d-code/tests -name "*.build" -exec sh -c ' \
  rm -f $1/target*.go ; \
  rm -f $1/target*.tree-il ; \
  rm -f $1/target*.scm ; ' _ {} \;
find ../theme-d-code/tests -name "*.build" -exec sh -c ' \
  rmdir $1 ; ' _ {} \;