]> gitweb.factorcode.org Git - factor.git/commitdiff
tools.test: add a --fast option.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 15 Dec 2021 22:54:28 +0000 (14:54 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 15 Dec 2021 22:54:28 +0000 (14:54 -0800)
basis/tools/test/test.factor

index 38769d880c989a9c38ea15d04adeee6c9086ea06..4f3f2ca8a845fa077d39a007e976a3dbd7a68210 100644 (file)
@@ -231,7 +231,10 @@ M: test-failure error. ( error -- )
 : refresh-and-test-all ( -- ) "" refresh-and-test ;
 
 : test-main ( -- )
-    command-line get [
+    command-line get
+    "--fast" swap [ member? ] [ remove ] 2bi swap
+    [ f long-unit-tests-enabled? set-global ] when
+    [
         dup vocab-roots get member? [
             "" vocabs-to-load [ require-all ] keep
         ] [