Skip to content

Commit

Permalink
precompile modules and goto too
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jan 27, 2020
1 parent 698536f commit a3cd1e4
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions deps/SnoopCompile/snoopCompile.jl
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
using SnoopCompile

# using runtests except modules/goto
################################################################
# disabling inlcude modules/goto
a1 = "include(\"modules.jl\")"
a2 = "include(\"goto.jl\")"

testText = Base.read("test/runtests.jl", String)
testEdited = foldl(replace,
(
a1 => "#"*a1,
a2 => "#"*a2,
),
init = testText)
Base.write("test/runtests.jl", testEdited)
################################################################
@snoopiBot BotConfig("Atom", blacklist = ["realpath′"])
################################################################
# enabling back inlcude modules/goto
Base.write("test/runtests.jl", testText)


# template for exlcuding tests files from precompilation (kept for the record)
# using runtests except badfile
################################################################
# disabling inlcude badfile
# a1 = "include(\"badfile.jl\")"
#
# testText = Base.read("test/runtests.jl", String)
# testEdited = foldl(replace,
# (
# a1 => "#"*a1,
# ),
# init = testText)
# Base.write("test/runtests.jl", testEdited)
################################################################
# @snoopiBot BotConfig("Atom", blacklist = ["realpath′"])
################################################################
# enabling back inlcude goto
# Base.write("test/runtests.jl", testText)
################################################################
# using runtests:
# @snoopiBot "Atom"

0 comments on commit a3cd1e4

Please sign in to comment.