view sources/more/test.sh @ 1110:716ad74e0598

Make smoketest.sh more efficient, no need to create hdb.img or use run-from-build.sh.
author Rob Landley <rob@landley.net>
date Sun, 13 Jun 2010 02:47:49 -0500
parents b7efc55a3b09
children
line wrap: on
line source

#!/bin/bash

# Run a command with sources/include.sh and an architecture loaded

if [ $# -eq 0 ]
then
  echo "Usage: test.sh ARCH COMMAND..." >&2
  echo "You generally want to set STAGE_NAME= too."
  exit 1
fi

. sources/include.sh || exit 1

read_arch_dir "$1"
shift
eval "$@"