Mercurial > hg > toybox
view test.sh @ 266:2ba3b8dce3ef
Add an install script, with --long --symlink --force and --uninstall options.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 24 Feb 2008 01:34:01 -0600 |
parents | c7645fab8d73 |
children |
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