Mercurial > hg > toybox
view test.sh @ 237:7cb15eae1664
Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 20 Jan 2008 17:25:44 -0600 |
parents | a14921912ebc |
children | c7645fab8d73 |
line wrap: on
line source
#!/bin/bash [ -z "$TOPDIR" ] && TOPDIR="$(pwd)" rm -rf testdir mkdir -p testdir if [ -z "$OLD" ] then make install_flat PREFIX=testdir fi cd testdir PATH=.:$PATH . "$TOPDIR"/scripts/test/testing.sh [ -f "$TOPDIR/gen_config.h" ] && export OPTIONFLAGS=:$(echo $(sed -nr 's/^#define CFG_(.*) 1/\1/p' "$TOPDIR/gen_config.h") | sed 's/ /:/g') if [ $# -ne 0 ] then for i in "$@" do . "$TOPDIR"/scripts/test/$i.test done else for i in "$TOPDIR"/scripts/test/*.test do . $i done fi cd .. rm -rf testdir