Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: tests/golem/golem_tests.dart

Issue 1410233003: Revert test for Golem infrastructure. Doesn't work on Mac. (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/fletch_tests/all_tests.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/golem/golem_tests.dart
diff --git a/tests/golem/golem_tests.dart b/tests/golem/golem_tests.dart
deleted file mode 100644
index fbf68924ffb30690c8336f780f59390c3ca428c4..0000000000000000000000000000000000000000
--- a/tests/golem/golem_tests.dart
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE.md file.
-
-// IF YOU BREAK THIS TEST YOU PROBABLY HAVE TO FIX GOLEM AS WELL!
-
-import 'dart:async' show
- Future;
-
-import 'dart:io' show
- Directory,
- Platform,
- Process,
- ProcessResult;
-
-import 'package:expect/expect.dart' show
- Expect;
-
-import 'package:fletchc/src/guess_configuration.dart' show
- executable;
-
-Future<Null> main() async {
- // Locate the files that are needed.
- Uri benchmarkingFiles = executable.resolve('../../tools/benchmarking_files');
- Directory tempDir = Directory.systemTemp.createTempSync('golem_tests');
- Uri tarFile = tempDir.uri.resolve('golem.tar.gz');
- String buildDir = const String.fromEnvironment('test.dart.build-dir');
-
- try {
- // Package up the files similar to what Golem does.
- ProcessResult tarResult = Process.runSync(
- 'tar',
- ['hczf',
- tarFile.toFilePath(),
- '-T',
- benchmarkingFiles.toFilePath(),
- '$buildDir/fletch-vm',
- '$buildDir/dart',
- '$buildDir/natives.json',
- '--exclude',
- '.svn'],
- workingDirectory: executable.resolve('../..').toFilePath(),
- runInShell: true);
- Expect.equals(0, tarResult.exitCode, 'tarball creation failed');
-
- // Unpack the bundle in the temporary directory.
- ProcessResult untarResult = Process.runSync(
- 'tar',
- ['xvzf', 'golem.tar.gz'],
- workingDirectory: tempDir.path,
- runInShell: true);
- Expect.equals(0, untarResult.exitCode, 'tarball extraction failed');
-
- // Build the snapshot in the temporary directory. Use the dart
- // binary in the archive to test that everything needed is in
- // there.
- ProcessResult snapshotResult = Process.runSync(
- '$buildDir/dart',
- ['-Dsnapshot=out.snapshot',
- 'tests/fletchc/run.dart',
- 'benchmarks/DeltaBlue.dart'],
- workingDirectory: tempDir.path,
- runInShell: true);
- Expect.equals(0, snapshotResult.exitCode);
-
- // Run the snapshot in the temporary directory.Use the fletch-vm
- // binary in the archive to test that everything needed is in
- // there.
- ProcessResult runResult = Process.runSync(
- '$buildDir/fletch-vm',
- ['out.snapshot'],
- workingDirectory: tempDir.path,
- runInShell: true);
- Expect.equals(0, snapshotResult.exitCode);
- Expect.isTrue(runResult.stdout.contains('DeltaBlue(RunTime):'));
- } finally {
- tempDir.deleteSync(recursive: true);
- }
-}
« no previous file with comments | « tests/fletch_tests/all_tests.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698