]> gitweb.factorcode.org Git - factor.git/commitdiff
db.tester: perform test-postgresql on all platforms.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 18 Jan 2023 22:19:03 +0000 (14:19 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 18 Jan 2023 22:19:03 +0000 (14:19 -0800)
basis/db/tester/tester.factor

index 825c9e77fa242f566f7d807e60246106961fc1fa..72c7d942e31a00aafb5cff4c0e7e243018e25cf4 100644 (file)
@@ -7,7 +7,7 @@ random sequences system threads tools.test ;
 IN: db.tester
 
 : postgresql-test-db-name ( -- string )
-    cpu name>> "-" "factor-test" 3append
+    os name>> cpu name>> "-" glue "-factor-test" append
     H{ { CHAR: - CHAR: _ } { CHAR: . CHAR: _ } } substitute ;
 
 : postgresql-test-db ( -- postgresql-db )
@@ -34,14 +34,11 @@ IN: db.tester
     ] call ; inline
 
 : test-postgresql ( quot -- )
-
     '[
-        os windows? cpu x86.64? and [
-            postgresql-template1-db [
-                postgresql-test-db-name ensure-database
-            ] with-db
-            [ ] [ postgresql-test-db _ with-db ] unit-test
-        ] unless
+        postgresql-template1-db [
+            postgresql-test-db-name ensure-database
+        ] with-db
+        [ ] [ postgresql-test-db _ with-db ] unit-test
     ] call ; inline