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

Unified Diff: src/trusted/validator_ragel/decoder_test_one_file.sh

Issue 9348082: Move unreviewed files to unreviewed subdirectory (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 10 months 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 | « src/trusted/validator_ragel/decoder-x86_64.rl ('k') | src/trusted/validator_ragel/gen-decoder.C » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_ragel/decoder_test_one_file.sh
===================================================================
--- src/trusted/validator_ragel/decoder_test_one_file.sh (revision 7794)
+++ src/trusted/validator_ragel/decoder_test_one_file.sh (working copy)
@@ -1,37 +0,0 @@
-#!/bin/bash
-# Copyright (c) 2012 The Native Client Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-# Checks that a given assembyl file is decoded identically to objdump.
-#
-# Usage:
-# decoder_test_one_file.sh GAS=... OBJDUMP=... DECODER=... ASMFILE=...
-
-set -e
-set -u
-
-# Parse arguments.
-eval "$@"
-
-# Sanity check arguments.
-if [[ ! -x "${GAS% *}" || ! -x "${OBJDUMP% *}" || ! -x "${DECODER% *}" ]] ; then
- echo >&2 "error: GAS or OBJDUMP or DECODER incorrect"
- exit 2
-fi
-
-if [[ ! -f "$ASMFILE" ]] ; then
- echo >&2 "error: ASMFILE is not a regular file: $ASMFILE"
- exit 3
-fi
-
-# Produce an object file, disassemble it in 2 ways and compare results.
-$GAS "$ASMFILE" -o "$ASMFILE.o"
-rm -f "$ASMFILE"
-$DECODER "$ASMFILE.o" > "$ASMFILE.decoder"
-# Take objdump output starting at line 8 to skip the unimportant header that
-# is not emulated in the decoder test.
-$OBJDUMP -d "$ASMFILE.o" |
- tail -n+8 - |
- cmp - "$ASMFILE.decoder"
-rm -f "$ASMFILE.o" "$ASMFILE.decoder"
« no previous file with comments | « src/trusted/validator_ragel/decoder-x86_64.rl ('k') | src/trusted/validator_ragel/gen-decoder.C » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698