view smoketest-all.sh @ 755:38534e7a4844

Largely cosmetic change.
author Rob Landley <rob@landley.net>
date Sun, 21 Jun 2009 19:41:40 -0500
parents 5b063eb13fd0
children 75835debe6b5
line wrap: on
line source

#!/bin/bash

# Test all targets to see whether or not they can compile and run "hello world"

ls -pd build/system-image-* | sed -n 's@.*/system-image-\(.*\)/@\1@p' | while read i
do
  echo -n "Testing $i:"
  RESULT="$(./smoketest.sh "$i" 2>&1 | grep 'Hello world!')"
  [ -z "$RESULT" ] && echo "FAIL" || echo "PASS"
  rm -f build/system-image-"$i"/hdb.img 2>/dev/null
done