Commit Graph

31 Commits

Author SHA1 Message Date
extempore 99c8042d37 Renamed tests named bugXXX to tXXX, no review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25564 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-24 17:11:55 +00:00
extempore 4324f4584e Added a command line script to ~/tools to count flag usages. I'm
checking this in less out of the enormous demand for flag counting
scripts than because I wanted to lower the barrier to people writing
reusable bash scripts.

  *** DO YOU WANT TO WRITE NICE BASH SCRIPTS? ***

  ***    Look at tools/flag-usages.sh    ***

  *** It's easy to understand and full of helpful comments! ***

I'm not making any claims here about having massive bash expertise,
but I know a lot of people resist learning any of it (I was once like
you) so I wanted to lower the barrier a little. Because as a mechanism
for the composition and modification of the world of existing tools,
nothing comes close to the shell. And I know many of us write way too
many one-offs which we delete in shame and horror shortly after their
immediate purpose is served.

No review.  (I should say r-e-v-i-e-w by everyone but I'm sure
it would give me a nice pile of crucible errors.)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25439 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-08-03 20:53:20 +00:00
extempore 1b6acd5b72 Added a script in tools for deploying maven artifacts locally,
since it always takes me an eternity to figure out slash remember
how to do it.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24774 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-04-15 21:03:44 +00:00
rytz 13d2835f42 fix get-scala-revision script for the case when svn prints some warnings. no review
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24637 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-30 07:06:08 +00:00
extempore b25198b965 Addresses the issues swirling around Double.Epsilon and friends
which were battled out in more than one venue and then aptly summarized
by retronym in #3791.  Thanks to Simon Ochsenreither for submitting
a patch; I wasn't able to use too much of it because the source
code for these types is generated, but effort is always
appreciated.  Closes #3791, and I'm tired and I'd hate to blow
this one at this late date: review by rytz.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24461 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-03-15 04:02:35 +00:00
extempore ebe3e42684 Tackled source generation from a new angle rather than letting
genprod get any more creaky.  This code generates the AnyVal
source files (but those are not included here.) No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@24066 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-01-23 23:06:28 +00:00
extempore 71f2bf943f Some profiler changes. One nice bit is incrementing the object generation
after each phase, so all the allocations are partitionable by phase in the
profiler. I also changed the name of -Yprofile-resident to -Yprofile-memory
and had it snapshot after the run instead of between them, so it
is usable for regular scalac usage as well.

Added tools/profile_scalac which can be used as a drop-in
replacement which handles some tedious setup.  Review by dragos.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23889 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2011-01-04 01:17:32 +00:00
extempore 96e1c971dc Today's Bourne Shell Ultimatum. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23607 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-11-27 07:30:17 +00:00
extempore 1b03fd463b The usual flailing associated with changing a shell script
and using too recent a feature.  Hopefully unbreaks build, no review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23606 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-11-27 05:57:04 +00:00
extempore 60a01c9f4d Moved the painful-in-ant git/svn revision getting logic
into bash where it's at least somewhat less painful.  Made
it more flexible for easy use in more places since we presently
have all kinds of revision figuring logic variations in other
build files (sbaz, installer, scala-documentation, scala-tool-support,
etc.) No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23604 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-11-26 23:53:37 +00:00
prokopec 925f1b4c91 Added a benchmark for mutable hash sets.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23489 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-11-10 16:21:28 +00:00
prokopec ec7d909755 Remote test help improved.
No review

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23400 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-28 12:32:32 +00:00
prokopec 8ea67d9498 Some serious bugfixes in parallel hash tables.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23394 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-28 12:09:52 +00:00
prokopec 17ba0c35f3 Mostly refactored existing test functionality for parallel collections.
Added immutable hash set tests.

No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23393 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-28 12:09:49 +00:00
prokopec ec54a245e9 Modified remote test.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23392 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-28 12:09:46 +00:00
prokopec 63ba377130 Modified remote test.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23391 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-28 12:09:43 +00:00
prokopec 313cb6686c Improved the remotetest script.
No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23331 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-20 20:20:03 +00:00
prokopec 320c6df738 For all those using .git who like their build and tests being run on a different machine - remotetest.
Uses ssh, git and the remote home directory to push the current tree to a bare repo, then check it out remotely and run the full build and tests.

Usage: remotetest [--init] <user> <server> <bare-repo-path> <workspace-repo-path>
Modifying .ssh/authorized_keys on the <server> is recommended.
To be run with --init first time.

No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23311 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-19 18:47:08 +00:00
prokopec ff7dfe4c0c An error previously unnoticed.
Review by extempore.




git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23257 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-14 12:48:00 +00:00
prokopec f0986ab353 Improving scalacheck update script.
These improvements are based upon suggestions given by extempore, so - review by extempore.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@23256 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-10-14 12:45:15 +00:00
prokopec 43aa9d7593 Added scalacheck folder, scalacheck source update script, and scalacheck ant tasks.
Build process will now generate a scalacheck jar in the build/pack/lib directory. It generates it from the scalacheck source in the src/scalacheck dir. If the source there gets out of date, it is to be updated manually using the tools/updatescalacheck script.

Review by phaller.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@22868 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-08-31 09:51:23 +00:00
extempore 9aefab8491 Alterations so the sbt build will run under git-svn.
Review by moix.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@22649 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-07-29 17:36:23 +00:00
extempore 568b5f8877 Two new command line programs in ~/tools: scmp and tokens.
1) scmp: will need a bit more fleshing out to be super useful, but
here is what you can do right now:

  // This means run the given command line first with the options
  // given to p1 and then without, and show the diff in output.
  % tools/scmp --p1 '-no-specialization -nowarn' scalac -Ydebug src/library/scala/Function1.scala

Upcoming features will involve seeing diffs of such things as the
pickled signatures of generated files and the javap disassembly.

2) tokens: tokenizes all the scala files found under any given paths
and prints one token per line.

Example: the five most frequently used tokens under scala/util.

  % tools/tokens src/library/scala/util |sort | uniq -c | sort -r | head -5
   598 ')'
   598 '('
   347 ;
   294 '='
   278 ,

Good to see those parens are balanced.

Example: number of appearances of an identifier called x:

  % tools/tokens src/library/scala/util | grep ^x$ | wc
      137

Way to go, x.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21644 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-04-21 17:06:59 +00:00
extempore ea02e967ce Added a --bare option to ShowPickled so I can diff signatures without
all the explicit indices blowing any points of similarity.  No review.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20995 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-25 22:09:37 +00:00
extempore 576b0eeee5 Some deprecation patrol and minor cleanups. No review.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20945 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-22 00:16:03 +00:00
extempore 84f2293c7d A variety of changes to partest made in a quest to get it to
reveal the classpaths it is using.  No longer will partest
actively sabotage your efforts to pass -Dpartest.debug=true
by inserting "-Dpartest.debug=" after yours! And etc. Review
by haller (if so inclined.)

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20912 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-17 21:26:02 +00:00
extempore 91abb5601b Rewrote my own submitted code of a year ago from trac and added
scalawhich to the tools dir.  Closes #657.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20889 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-15 21:44:28 +00:00
extempore 30c3d186e5 Some new tools for the tools directory. Everything in this commit
amounts to a yak shaving expedition to enable this, which now works:

  tools/diffPickled scala.Either

and since stability is presently broken you will see the following.
(When it's not broken you will see nothing.)

  541,544c541,544
  < 538,4090: EXTref 3: 539(Left) 2
  < 539,4095: TYPEname 4: Left
  < 540,4101: EXTref 3: 541(Right) 2
  < 541,4106: TYPEname 5: Right
  ---
  > 538,4090: EXTref 3: 539(Right) 2
  > 539,4095: TYPEname 5: Right
  > 540,4102: EXTref 3: 541(Left) 2
  > 541,4107: TYPEname 4: Left

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20888 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-15 20:00:36 +00:00
extempore b326352d56 More work on classpaths. This commit also unbreaks fsc, for
which we must have no test cases at all.  In the short term
there will probably be a few more minor disruptions since with
classpaths constructed a half dozen different ways, achieving
consistency requires flushing out the undocumented accidents
upon which any given island might depend.  Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20866 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-11 15:10:45 +00:00
extempore d00d0a14f4 Some work on classpaths. This implements the specification
at https://lampsvn.epfl.ch/trac/scala/wiki/Classpath modulo some
minor details which remain to be investigated.  It is not entirely
integrated, and should not involve any behavioral changes.  The
patch also contains a number of small improvements targetting
widely duplicated code.

PathResolver offers a main method.  If run with no arguments it will
output a pile of information about classpath relevant environment vars
and properties.  If given arguments, it will output the classpath
info that any scala runner script would use if given the same args.
There is a wrapper in the tools directory.  Example:

tools/pathResolver -extdirs /foo -sourcepath /bar | egrep "sourcePath|scalaExtDirs"
  scalaExtDirs         = /foo
  sourcePath           = /bar

There is also a (probably temporary) command line option -Ylog-classpath
which will print out the settings.classpath value anytime it changes.
Review by community.

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20831 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-02-08 22:28:17 +00:00
milessabin d2510e0077 Renamed new bin directory to "tools" to avoid conflict with Eclipse incremental build output directory.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@20615 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
2010-01-20 09:12:10 +00:00