]> gitweb.factorcode.org Git - factor.git/commitdiff
mason.release.tidy: one last fix for tests
authorSlava Pestov <slava@factorcode.org>
Thu, 15 Sep 2011 03:00:15 +0000 (20:00 -0700)
committerSlava Pestov <slava@factorcode.org>
Thu, 15 Sep 2011 03:00:15 +0000 (20:00 -0700)
extra/mason/release/tidy/tidy-tests.factor

index fb1d8855a074b5a001c60894fcf225c80c54a709..01475f026b112e6ad77fb8ef33e8ead55d72a1a4 100644 (file)
@@ -1,15 +1,21 @@
+USING: io.directories mason.config mason.release.tidy namespaces
+sequences system tools.test ;
 IN: mason.release.tidy.tests
-USING: mason.config mason.release.tidy namespaces sequences
-system tools.test ;
 
-[ f ] [
-    macosx target-os [
-        "Factor.app" useless-files member?
-    ] with-variable
-] unit-test
-
-[ t ] [
-    linux target-os [
-        "Factor.app" useless-files member?
-    ] with-variable
-] unit-test
+! Normally, these words are run in the factor subdirectory
+! of the build directory, and they look for a file named
+! build-support/cleanup there. Use with-directory here to
+! ensure we use the file from the current source tree instead.
+"resource:" [
+    [ f ] [
+        macosx target-os [
+            "Factor.app" useless-files member?
+        ] with-variable
+    ] unit-test
+    
+    [ t ] [
+        linux target-os [
+            "Factor.app" useless-files member?
+        ] with-variable
+    ] unit-test
+] with-directory