Skip to content

Commit

Permalink
Self-host testing infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes authored and jeff303 committed Sep 28, 2020
1 parent a379893 commit e6cdd45
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 1 deletion.
8 changes: 8 additions & 0 deletions DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ lein do clean, test
lein javac
lein doo node test-build once
```

# Running self-hosted ClojureScript tests

Clone and `lein install` [test.check](https://github.com/clojure/test.check) so that 0.9.1-SNAPSHOT is installed locally.

```
scripts/test-self-host
```
7 changes: 6 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
[org.clojure/clojurescript "1.10.439"]]}
:bench {:dependencies [[org.clojure/clojure "1.9.0"]
[criterium "0.4.4"]]}
:test {:dependencies [[org.clojure/clojure "1.7.0"]]}}
:test {:dependencies [[org.clojure/clojure "1.7.0"]]}

:self-host {:dependencies [[org.clojure/test.check "0.9.1-SNAPSHOT"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.229"]]
:main clojure.main}}

:deploy-repositories
[["clojars" {:url "https://repo.clojars.org"
Expand Down
148 changes: 148 additions & 0 deletions scripts/self-host/com/rpl/specter/self_host/aux.cljs
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
(ns com.rpl.specter.self-host.aux
"This auxiliary namespace is not actually loaded.
Its mere presence cause it to be compiled and thus causes
the libs listed here to be dumped into the compiler output
directory where they can be loaded on demand when running
the tests in self-host mode."
(:require
goog.Delay
goog.Disposable
goog.Promise
goog.Throttle
goog.Timer
goog.Uri
goog.color
goog.color.Hsl
goog.color.Hsv
goog.color.Rgb
goog.color.alpha
goog.color.names
goog.crypt
goog.crypt.Aes
goog.crypt.Arc4
goog.crypt.BlobHasher
goog.crypt.Cbc
goog.crypt.Hash
goog.crypt.Hmac
goog.crypt.Md5
goog.crypt.Sha1
goog.crypt.Sha2
goog.crypt.Sha224
goog.crypt.Sha256
goog.crypt.Sha2_64bit
goog.crypt.Sha512
goog.crypt.Sha512_256
goog.crypt.base64
goog.crypt.baseN
goog.crypt.hash32
goog.crypt.hashTester
goog.crypt.pbkdf2
goog.date.Date
goog.date.DateLike
goog.date.DateRange
goog.date.DateTime
goog.date.Interval
goog.date.UtcDateTime
goog.date.duration
goog.date.month
goog.date.relative.TimeDeltaFormatter
goog.date.relative.Unit
goog.date.relativeWithPlurals
goog.date.weekDay
goog.format
goog.format.EmailAddress
goog.format.HtmlPrettyPrinter
goog.format.InternationalizedEmailAddress
goog.format.JsonPrettyPrinter
goog.i18n.BidiFormatter
goog.i18n.CharListDecompressor
goog.i18n.CharPickerData
goog.i18n.DateTimeFormat
goog.i18n.DateTimeParse
goog.i18n.GraphemeBreak
goog.i18n.MessageFormat
goog.i18n.NumberFormat
goog.i18n.TimeZone
goog.i18n.bidi
goog.i18n.bidi.Dir
goog.i18n.bidi.Format
goog.i18n.collation
goog.i18n.currency
goog.i18n.mime
goog.i18n.ordinalRules
goog.i18n.pluralRules
goog.i18n.uChar
goog.i18n.uChar.LocalNameFetcher
goog.i18n.uChar.RemoteNameFetcher
goog.i18n.uCharNames
goog.iter
goog.iter.Iterable
goog.iter.Iterator
goog.json
goog.json.EvalJsonProcessor
goog.json.HybridJsonProcessor
goog.json.NativeJsonProcessor
goog.json.Replacer
goog.json.Reviver
goog.json.Serializer
goog.json.hybrid
goog.locale
goog.locale.TimeZoneFingerprint
goog.locale.defaultLocaleNameConstants
goog.locale.genericFontNames
goog.locale.timeZoneDetection
goog.math
goog.math.AffineTransform
goog.math.Bezier
goog.math.Box
goog.math.Coordinate
goog.math.Coordinate3
goog.math.ExponentialBackoff
goog.math.Integer
goog.math.Line
goog.math.Long
goog.math.Matrix
goog.math.Path
goog.math.Path.Segment
goog.math.Range
goog.math.RangeSet
goog.math.Rect
goog.math.Size
goog.math.Vec2
goog.math.Vec3
goog.math.interpolator.Linear1
goog.math.interpolator.Pchip1
goog.math.interpolator.Spline1
goog.math.paths
goog.math.tdma
goog.spell.SpellCheck
goog.string
goog.string.Const
goog.string.StringBuffer
goog.string.Unicode
goog.string.format
goog.string.newlines
goog.string.newlines.Line
goog.structs
goog.structs.AvlTree
goog.structs.AvlTree.Node
goog.structs.CircularBuffer
goog.structs.Heap
goog.structs.InversionMap
goog.structs.LinkedMap
goog.structs.Map
goog.structs.Node
goog.structs.Pool
goog.structs.PriorityPool
goog.structs.PriorityQueue
goog.structs.QuadTree
goog.structs.QuadTree.Node
goog.structs.QuadTree.Point
goog.structs.Queue
goog.structs.Set
goog.structs.SimplePool
goog.structs.StringSet
goog.structs.TreeNode
goog.structs.Trie
goog.structs.weak
goog.text.LoremIpsum))
Loading

0 comments on commit e6cdd45

Please sign in to comment.