]> gitweb.factorcode.org Git - factor.git/commitdiff
macho: removing files that notarytool doesn't like
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 22:36:22 +0000 (14:36 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 20 Jan 2023 22:36:22 +0000 (14:36 -0800)
extra/macho/a.macho [deleted file]
extra/macho/a2.macho [deleted file]
extra/macho/macho-tests.factor

diff --git a/extra/macho/a.macho b/extra/macho/a.macho
deleted file mode 100644 (file)
index bc233d7..0000000
Binary files a/extra/macho/a.macho and /dev/null differ
diff --git a/extra/macho/a2.macho b/extra/macho/a2.macho
deleted file mode 100644 (file)
index ed9a3a9..0000000
Binary files a/extra/macho/a2.macho and /dev/null differ
index 5d8fd3646f8f9ec9dccf60362c795594afeefd50..00f008ec10ab27f448376830a08180158fb75928 100644 (file)
@@ -1,7 +1,8 @@
 ! Copyright (C) 2010 Erik Charlebois.
 ! See https://factorcode.org/license.txt for BSD license.
-USING: accessors alien io io.streams.string kernel literals macho
-multiline sequences strings system tools.test ;
+USING: accessors alien http.client io io.files.temp
+io.streams.string kernel literals macho multiline sequences
+strings system tools.test urls ;
 IN: macho.tests
 
 STRING: validation-output
@@ -21,13 +22,21 @@ STRING: validation-output
 
 ;
 
+: a.macho ( -- path )
+    URL" https://downloads.factorcode.org/misc/a.macho"
+    "a.macho" cache-file [ ?download-to ] keep ;
+
+: a2.macho ( -- path )
+    URL" https://downloads.factorcode.org/misc/a2.macho"
+    "a2.macho" cache-file [ ?download-to ] keep ;
+
 cpu ppc? [
     { $ validation-output }
-    [ [ "resource:extra/macho/a.macho" macho-nm ] with-string-writer ]
+    [ [ a.macho macho-nm ] with-string-writer ]
     unit-test
 
     { t } [
-        "resource:extra/macho/a2.macho" [
+        a2.macho [
             >c-ptr fat-binary-members first data>> >c-ptr macho-header 64-bit?
         ] with-mapped-macho
     ] unit-test